58 Commits

Author SHA1 Message Date
Cássio Zen
4f2dc92bfe Block save/publish buttons while processing 2017-01-11 22:36:49 -02:00
Cássio Souza
48d8077ff0 Editorial workflow Improvements (#212)
* Merge conflicts automatically. Closes #208
* removed unpublished entry route
All entries (either under editorial workflow or not) go through the same edit route.
2017-01-11 20:58:15 -02:00
Cássio Souza
a4d7622ade Asset API (#204)
Asset API
2017-01-10 22:23:22 -02:00
Mathias Biilmann
112bdd348a Merge pull request #198 from netlify/prosemirror-polishing
An assortment of Markdown Editor fixes
2016-12-30 09:49:36 -08:00
Cássio Souza
ddfdc59941 Add metadata to draft entry fields (#196)
* Add metadata to draft entry fields
* Do not render widget if value is null
* Pass along metadata
* Namespace queries to avoid conflict
* Query relational field on mount (for when editing entries)
* Make sure metadata is Immutable
* Added collection name  as metadata keys
2016-12-29 17:18:24 -02:00
Mathias Biilmann Christensen
5ff2942435 Memoize media proxies since we look them up a lot when doing previews 2016-12-27 23:14:19 -08:00
Cássio Souza
05337ff232 Relation search widget (#186)
* search action/reducer refactor

* Relation widget skeleton

* search clearing

* query action + reducer

* Autocomplete component for RelationControl
2016-12-07 15:44:07 -02:00
Cássio Souza
b1a5ea95d3 Refinements & Preview Defaults (#167)
* No need for set width for base Card anymore

* entries are not required

* Redirect from Dashboard to first collection if publish mode is simple

* collection inference: Add more synonyms to description

* Implemented a better default preview for editing entries

* Add label field in default preview for small text values

* Added margin for default preview
2016-11-23 16:23:32 -02:00
Cássio Zen
695f533c8e Added resolvePath helper to normalize and prepend the public_path and as needed 2016-11-17 15:33:02 -02:00
Cássio Zen
8d9f894928 Use public_folder to display images persisted with no path reference 2016-11-17 11:12:14 -02:00
Cássio Souza
2a2497072d UI updates (#151)
* infer card title

* Infer entry body & image

* infer image

* Better terminology: EntryListing accept a single Collection

* remove log

* Refactored Collections VO into selectors

* use selectors when showning card

* fixed size cards

* Added 'bio' and 'biography' to collection description inference synonyms

* Removed unused card file

* throw error instance

* bugfix for file based collections

* lint

* moved components with css to own folder

* Search Bugfix: More than one collection might be returned

* Changed sidebar implementation. Closes #104 & #152

* Show spinning loading for unpublished entries

* Refactored Sidebar into a separate container

* Make preview widgets more robust
2016-11-11 17:54:58 -02:00
Andrey Okonetchnikov
5b5f1edb22 Moved applyDefaults function and related code to actions (where it belong).
- Moved applyDefaults + related code
- Added tests for /actions/config.js
- Fixed some ESLint errors
2016-11-11 12:32:03 +01:00
Andrey Okonetchnikov
6ce58a789d Do not use expect to get better diffs out of Jest 2016-11-11 11:02:11 +01:00
Andrey Okonetchnikov
4d696f2253 Login workflow (#137)
* Use collection label instead of name on the CollectionPage

* Added Avatar and logout menu item

* [feat](login) Added userpic with a logout action in the dropdown.

- Display logged in user in the AppHeader
- Implemented logout action and store + tests
- Better styles for GitHub sign in screen

Closes #100

* Better styles for the AppHeader
2016-11-01 11:35:20 -02:00
Cássio Zen
295cdd2f6d Persistence editorial workflow through own actions & reducer 2016-10-31 18:19:51 -02:00
Cássio Zen
baafe0b32f refactor on slugformatter 2016-10-27 13:50:02 -02:00
Cássio Souza
2496ec09a4 Single file collections (#132)
* Files based collections skeleton

* listing file based cards

* create new entry with collection

* moved lookupEntry to main backend

* Editing single page Collections file

* List widget basic implementation

* Adjustments for test-repo

* check if value exists before trying to iterate over
2016-10-21 20:42:14 -02:00
Andrey Okonetchnikov
188fec4529 [feature] Better loading indicator
- Use react-topbar-progress-indicator as a global loading indicator.
- Added a global reducer that only holds `isFetching` for now.
- Display loading indicator on any `*_REQUEST` actions.
- Closes #103
2016-10-20 18:52:24 +02:00
Cássio Zen
f7b74453ab bugfix. Closes #122 2016-10-20 11:30:29 -02:00
Cássio Souza
e001714aed Optimistic Updates (#114)
* Optimistic Updates structure
* Optimistic update for Editorial Workflow
2016-10-18 14:30:13 -02:00
Andrey Okonetchnikov
f3b448106d Added notifications. Closes #101
- Using react-notifications to manage redux state
- Refactored Toast component to be stateless
- Toasts can be stacked
- Cleaned up CSS
- Updated stories
2016-10-17 12:35:31 +02:00
Andrey Okonetchnikov
e53262d92c Moved persisting logic to entryDraft reducer + added tests. 2016-10-13 14:30:11 +02:00
Andrey Okonetchnikov
f9c43bd275 Removed expect import 2016-10-13 11:56:26 +02:00
Andrey Okonetchnikov
27659b77f1 Removed console.error from auth reducer to cleanup tests outputs. We should use Netlify error wrapper. 2016-10-13 11:34:55 +02:00
Andrey Okonetchnikov
077e83dfc9 Handle entry persisting state in actions and reducer + added tests. 2016-10-12 19:19:05 +02:00
Andrey Okonetchnikov
8d51f9be3e Fixed ESLint errors and tests for entries reducer 2016-10-12 16:04:58 +02:00
Cássio Souza
2815a86e0c Search integration (React Version) (#84)
* algolia integration skeleton

* Configuration Defaults

* Implemented partial entries with lazy loading of complete file

* Moved backend selection logic to actioncreators

* basic pagination for entries

* general search skeleton

* Basic search result listing

* Redo search for different search terms

* search results pagination

* Changing integration config & handling

* Changing integration config & handling

* new integration config model
2016-10-10 15:34:21 -03:00
Andrey Okonetchnikov
0b69f6fa98 Switched to Jest testing framework.
Made tests pass again. Created entries.spec.js + made it pass.
Added wallaby.config.js to support wallaby.js runner.
2016-09-20 14:00:03 +02:00
Cássio Zen
71b5b0bde9 merge button for editorial workflow 2016-09-14 18:25:45 -03:00
Cássio Zen
0b447d483d Editorial workflow Drag'nDrop 2016-09-13 18:54:39 -03:00
Andrey Okonetchnikov
2b27718493 Enabled HMR for reducers 2016-09-13 18:05:20 +02:00
Cássio Zen
911e3f7077 initialize editorialWorkflow state after config loaded & parsed 2016-09-13 04:29:30 -03:00
Cássio Zen
165c758bb9 Updated reducer for editorial workflow 2016-09-13 04:09:52 -03:00
Cássio Zen
f51525baaa edit unpublished content on EntryPage (through HOC) 2016-09-13 03:59:48 -03:00
Cássio Zen
b6874152d9 unpublished items dashboard 2016-09-08 19:04:54 -03:00
Cássio Zen
04c50d8def editorial workflow HoC 2016-09-08 16:18:38 -03:00
Cássio Zen
90d4b39fc1 Load unpublished entries 2016-09-06 17:18:27 -03:00
Cássio Zen
f0e608a209 Editorial Workflow skeleton 2016-09-06 13:04:17 -03:00
Cássio Zen
6eec0feb72 Small refactor preparing for branch creating/editing. Also closes #58 2016-08-29 17:09:04 -03:00
Cássio Zen
2b70893e89 content creation internal + test_repo implementations 2016-08-25 16:11:00 -03:00
Cássio Zen
b717874e7b Allow the creation of new entries 2016-08-24 21:37:22 -03:00
Cássio Zen
986e36c137 Pass plugins via context instead of using Redux store 2016-08-18 09:09:54 -03:00
Cássio Zen
a0a24ebf72 plugin architecture 2016-08-17 09:52:17 -03:00
Cássio Zen
474abd8f78 Markdown editor switching 2016-08-11 18:21:32 -03:00
Cássio Zen
9f220181b3 Set mediaProxy objects as uploaded @ implementation 2016-07-19 19:42:37 -03:00
Cássio Zen
18ad041d96 Preparing for github file persistence 2016-07-19 17:11:22 -03:00
Cássio Zen
b9cee02758 eslint compliance on reducers & VOs 2016-06-30 17:28:47 -03:00
Mathias Biilmann Christensen
a39307bd8b Add missing semicolon 2016-06-18 12:29:03 -07:00
Cássio Zen
3f11a93056 correct entity name 2016-06-16 17:50:36 -03:00
Cássio Zen
6ed7e78642 mediaFiles backend persistence structure 2016-06-10 18:48:38 -03:00