829 Commits

Author SHA1 Message Date
Shawn Erquhart
4721f12c9f fix infinite scrolling for collections with integrations 2017-12-19 12:24:53 -05:00
Shawn Erquhart
11ee874d6f remove obsolete test 2017-12-14 15:49:13 -08:00
Caleb
a0f928dd49 Update snapshots. 2017-12-14 15:49:13 -08:00
Shawn Erquhart
78ad082021 update markdown mark hotkeys to use isHotkey 2017-12-14 14:59:59 -08:00
Shawn Erquhart
7c9c765c28 use is-hotkey in slate plugin checks 2017-12-14 14:59:59 -08:00
Shawn Erquhart
d321b9eb6d use isHotkey for markdown keydown listener 2017-12-14 14:59:59 -08:00
Shawn Erquhart
1608b5e52a remove outmoded code from markdown widget hotkeys 2017-12-14 14:59:59 -08:00
Damien Duhamel
99ee5e2f9a Check next in condition 2017-12-14 14:59:59 -08:00
Damien Duhamel
fba6929301 Change historyOfTypeIsValid condition 2017-12-14 14:59:59 -08:00
Damien Duhamel
9e5f42e772 Update slate plugin to drop data 2017-12-14 14:59:59 -08:00
Damien Duhamel
515dde1dfe Fix #783 duplicate uploading same asset name (#853) 2017-12-14 09:44:13 -08:00
Caleb
43a6c6ff15 Fix select widgets with object type options. 2017-12-14 08:25:23 -08:00
Shawn Erquhart
051257aa12 eliminate prop type and validation console warnings 2017-12-07 15:38:06 -05:00
Mathias Biilmann Christensen
de7454ad1e Fix position of editor view controls
These were so far off to the right tht they got cut off by the screen.
This aligns them with the user icon
2017-12-07 13:16:59 -05:00
Shawn Erquhart
91307a06ce fix identity auth page styling 2017-12-07 13:03:18 -05:00
Shawn Erquhart
cfbf31b130
WIP - Global UI (#785)
* update top bar and collections sidebar UI

* update collection entries UI

* improve global layout

* merge search page into collection page

* enable new entry button

* search fixup

* wip -initial editor update

* update editor scrolling and markdown toolbar position

* wip

* editor toolbar progress

* editor toolbar wip

* finished basic editor toolbar

* add standalone toggle component

* improve markdown toolbar spacing

* add user avatar placeholder

* finish markdown toggle styling

* refactor icon setup, add new icons

* add new icons to markdown editor toolbar

* remove extra app container

* add markdown active mark style

* relation and text widget styling

* widget design updates, basic list/object design update

* widget style updates, image widget improvements

* refactor widget directory, fix file removal

* widget focus styles

* finish editor widget focus styles

* migrate media library modal to react-modal

* wip - migrate editor component form to modal

* wip - move editor component form to modal

* wip - embed plugin forms in the editor

* inline shortcode forms working

* disable react hot loading, its breaking things

* improve shortcode form styles

* make shortcode form collapsible, improve styling

* add close functionality to shortcode blocks

* improve base media library styling

* fix shortcode label

* migrate unstyled workflow to new UI

* wip - reorganizing everything

* more work moving everything

* finish more moving and eliminating stuff

* restructure, remove react-toolbox

* wip - removing old stuff, more restructure

* finish restructure

* wip - css arch

* switch back to test repo

* update react-datetime to ^2.11.0

* remove leftover react-toolbox button

* more restructuring clean-up

* fix UI component directory case

* wip -css editor control style

* wip - consolidate widget styles

* wip - use a single control renderer

* fixed object values breaking

* wip - editor control active styles

* pass control wrapper to widgets

* ensure branch name is trimmed

* wip - improve widget authoring support

* import Map to Widget component

* refactor toolbar buttons

* wip - more widget active styles

* break out editor toggle component

* add local scroll sync back

* update editor toggle icons

* limit editor control pane content width

* fix editor control spacing

* migrate markdown toolbar stickiness to css

* fix markdown toolbar border radius

* temporarily use test backend

* stop markdown toolbar from going to bottom

* restore disabled markdown toolbar buttons for raw

* test markdown widget without focus styles

* more widget updates

* remove card visuals from editor

* disable dragging editor split off screen

* use editorControl component for shortcode fields

* make header site link configurable

* add configurable collection descriptions

* temporarily add example assets

* add basic list view

* remove outdated css mixins

* add and implement search icon

* activate quick add menu

* visualize usable space in editor view

* fix entry close, other improvements

* wip - editorial workflow updates

* some dropshadow and other CSS tweaks

* workflow ui updates

* add worfklow card buttons

* fix workflow card button handlers

* some dropshadow and other CSS tweaks

* make workflow board wider

* center workflow and collection views

* add basic responsiveness

* a bunch of fun UI fixes! a BUNCH! (#875)

* give `.nc-entryEditor-toolbar-mainSection` left and right child divs

* a bunch of fun UI fixes! a BUNCH!

* remove obscure --buttonShadow

* revert to test repo

* fix not found page styling

* allow workflow publishing from any column

* disallow publishing from all columns, with feedback

* fix new entry button

* fix markdown state persisting across entries

* enable simple workflow save and new from editor

* update slug in address bar when saving new entry

* wip - workflow updates, deletion working

* add status change functionality to editor

* wip - improving status change from editor

* editor toolbar back button improvements, loading improvements, cleanup

* progress on the media library UI cleanup

* remove font smothing css

* a quick fix for these buttons

* tweaks

* progress on media library modal— broken FYI

* fix media library functionality, finish migrating footer

* remove media library footer files

* remove leftover css import

* fix media library

* editor publishing functionality complete (unstyled)

* remove leftover loader var from media library

* wip - editor publishing styles

* add status dropdown styling

* editor toolbar style updates

* editor toolbar state improvements

* progress on the media library UI cleanup, style improvements

* finish editorial workflow editor styling

* finish media library styling

* fix config

* add what-input to optimize focus styling

* fix button

* fix navigation blocking for simple workflow

* improve simple workflow publishing

* add avatar dropdown to editor top bar

* style github and test-repo auth pages

* add git gateway auth page styles

* improve editor error styling
2017-12-07 12:37:10 -05:00
Caleb
834c5f4942 Throw if cannot infer format from file extension. 2017-12-06 10:23:08 -05:00
Caleb
326dd48cc0 Remove support for markdown and html as explicit formats.
The `frontmatter` format is the correct one to use here.
2017-12-06 10:23:08 -05:00
Caleb
d5ff92e47e Throw config error if unsupported format. 2017-12-06 10:23:08 -05:00
Caleb
db14b9747a Split collection config validator.
Also clarify collection validation messages.
2017-12-06 10:23:08 -05:00
Caleb
864083bc8b Infer format from extension for new entries.
If a collection has no format specified, we try to infer the format from
the file extension when reading. This commit also allows us to infer the
format from the `extension` set in the config, so that we can still
create the correct format when making a new file.
2017-12-06 10:07:07 -05:00
Caleb
0e51cff231 Do not infer file format if collection specified.
Before, we always tried to infer a file's format, even if it was
explicitly specified in the collection's config. This commit makes it so
that we always use the format from the config if it is specified, and
only if it is not set do we try to infer it from the file extension.
2017-12-06 09:53:38 -05:00
Shawn Erquhart
9b2e51d75d fix slate mark rendering 2017-12-06 01:02:41 -05:00
Damien Duhamel
2e7e66dc29 Fixes #846 Backspace removes empty blocks (#854)
* Fixes backspace remove empty block

* rename data to event
2017-11-30 12:09:13 -05:00
Shawn Erquhart
0caae558f9 handle when a date/datetime field is updated to empty 2017-11-27 22:41:47 -05:00
Shawn Erquhart
a7ad6d570e allow empty default date value 2017-11-27 22:25:00 -05:00
Shawn Erquhart
1a7c999f12 simplify date time initial value set 2017-11-27 22:25:00 -05:00
Benaiah Mischenko
b5b7fab2a7 Coerce includeTime to a boolean 2017-11-27 22:25:00 -05:00
Benaiah Mischenko
d6c0505c49 Fixes for date formatting PR 2017-11-27 22:25:00 -05:00
Mathias Biilmann Christensen
688332410c Keep old behevior if no format attribute is set on date widgets 2017-11-27 22:25:00 -05:00
Mathias Biilmann Christensen
704f1144ed Make date and datetime widget respect format attribute 2017-11-27 22:25:00 -05:00
Caleb
68f00987d2 Add global error boundary.
This adds an error boundary around the entire app, so that a crash does
not just show up as an empty white screen.
2017-11-27 22:22:18 -05:00
Caleb
a72a08f7a2 Add JSON as manually supported format. 2017-11-27 15:37:37 -05:00
Caleb
5271e0f7e7 Fix empty image fields saving null or undefined. 2017-11-27 15:28:41 -05:00
Shawn Erquhart
5647b5c3c2 update slate snapshots 2017-11-27 12:08:40 -05:00
Shawn Erquhart
9342c9c064 fix slate migration bugs 2017-11-27 12:08:40 -05:00
Shawn Erquhart
1bbaebf6d5 disable slate-edit-table plugin until updated 2017-11-27 12:08:40 -05:00
Shawn Erquhart
63d2b09b09 Update Slate to 0.29.0 2017-11-27 12:08:40 -05:00
Shawn Erquhart
c9e97b5c7e Update Slate to 0.28.0 2017-11-27 12:08:40 -05:00
Shawn Erquhart
ff0b8d4ca8 Update Slate to 0.27.0 2017-11-27 12:08:40 -05:00
Shawn Erquhart
9569f18ee4 add private media library for integrations 2017-11-19 02:13:27 -05:00
Benaiah Mischenko
aa813e8569 Prompt before exiting tab with unsaved changes 2017-11-15 12:44:16 -05:00
Shawn Erquhart
2a9697db0a fix image filtering case sensitivity 2017-11-15 12:42:03 -05:00
Mathias Biilmann
bf6eb2f39a Make sure we strip trailing slashes for dir listing 2017-11-15 12:09:40 -05:00
Shawn Erquhart
7c54fbd0df update integrations check to account for null default state 2017-11-11 21:42:29 -05:00
Shawn Erquhart
a4ff229e37 fix ControlHOC ref for redux container widgets
If a widget uses `connect` to receive state updates from the store,
`ControlHOC` can no longer get the control instance ref. This fix
checks for this case and uses a connect option to obtain the wrapped
control ref.
2017-11-11 21:42:15 -05:00
Ernie Bello
0183ad433b fix persist with missing body from file 2017-11-11 14:34:21 -07:00
Caleb
d378488e0f Stop using logout when no locally stored user was found.
This was causing users to not be able to sign up with Netlify Identity.
2017-11-11 14:52:18 -05:00
Shawn Erquhart
0f8a74be13 only rebase EW PR if no asset store
Editorial workflow pull requests are rebased if the base has
changed to ensure that asset changes on the base branch are
reflected in the PR branch, but if an asset store is in use,
no rebasing is necessary because assets are stored outside
of the content repo.
2017-11-11 14:52:04 -05:00
Shawn Erquhart
b3af4e86cb add generic error boundary, apply to preview iframe 2017-11-11 10:35:03 -05:00