54 Commits

Author SHA1 Message Date
Caleb
80817e2157 Prevent login if Git Gateway is disabled. (#1295) 2018-05-15 18:34:42 -04:00
Chris Swithinbank
04087026dd Add squash merges option for editorial workflow (#1330) 2018-05-14 11:46:37 -04:00
Caleb
5e040eec62 Fix broken new media uploads in Git Gateway. (#1221)
* Use file data instead of inferring path for new uploads.
2018-04-04 14:30:31 -04:00
Shawn Erquhart
600400cfda filter workflow entries by pr base branch 2018-03-28 11:22:34 -04:00
Luís Miguel
2475af1870 Fix thumbs for new uploads to private repos 2018-03-27 16:46:38 -04:00
Caleb
6ccc253599 Fix showing success message if PR force-merge fails. (#1016) 2018-01-16 18:41:18 -08:00
Václav Klecanda
b927c8acfb LocalForageTest (#550) 2018-01-04 11:33: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
Mathias Biilmann
bf6eb2f39a Make sure we strip trailing slashes for dir listing 2017-11-15 12:09:40 -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
6b45a46a39 add media library
* rebase editorial workflow pull requests when behind

* fix async/await transpilation

* add media library pagination

* switch media library to grid layout

* ensure that only cms branches can be force updated
2017-11-08 15:00:28 -05:00
Benaiah Mischenko
9f4951fcf2 Fix entry deletion on non-master branches 2017-09-14 17:32:18 -07:00
Shawn Erquhart
0dd173a83f rename isCollaborator to hasWriteAccess 2017-08-20 16:02:57 -04:00
Caleb
6df35a2f30 Fix denied login for users with many repos.
`isCollaborator` was created in #491 to block login if a user did not have write (push) permissions to a repo, by going through the list of a users repos until it found the right one. It did not institute pagination, however, so if a user had enough repos that the one in question was on another page, the CMS would assume that they did not have permission and block the login.

This commit fixes the problem by calling the API for the specific repo instead of getting the whole list.
2017-08-19 18:07:09 -06:00
Benaiah Mischenko
b3b13d311c Make GitHub repo name comparison case-insensitive (fixes #510) 2017-08-11 12:19:01 -07:00
tortilaman
6805a6936d Prevent unauthorized CMS access (#323) and enable use of GitHub Enterprise (#491)
* Prevent unauthorized CMS access and enable use of GitHub Enterprise
2017-08-01 20:28:03 -07:00
Benaiah Mischenko
dac57c60a0 Entry deletion for the simple workflow (#485) 2017-07-21 23:40:33 -07:00
Mathias Biilmann
546ca5917e Add cache buster to all GitHub API calls (#449)
This should solve issues like #308 and the issues with cached
API responses after deleting an entry
2017-06-12 13:01:53 -07:00
Joseph Earl
bfe46a8e13 Fixes #324 Use branch name from config when creating PR 2017-05-01 08:17:46 -07:00
Joseph Earl
265146e2d1 Fixes #278 filter files by extension 2017-04-18 22:59:30 +01:00
Benaiah Mischenko
1aa02eb42a Refactor readUnpublishedBranchFile with resolvePromiseProperties 2017-03-20 17:16:58 -07:00
Benaiah Mischenko
c079cb96c4 Label cards in editorial workflow 2017-03-20 17:02:52 -07:00
Mathias Biilmann Christensen
5e504bbc5a Fix firefox fetch issue in GitHub API 2017-03-15 00:06:31 -07:00
Benaiah Mischenko
47096c1cf0 Filter merged PRs from unpublished posts 2017-03-14 17:01:21 -07:00
americool
3c7b8d2322 delete button working (#274)
Fixes #274.
2017-03-11 10:47:36 -08:00
Luis Correia
471b26a9d5 #222 - Encode branch name on requests to avoid errors with special chars 2017-02-03 15:10:27 +00:00
Cássio Zen
d237318ef4 Bugfix: Only try to load file if there's a path 2017-01-19 17:28:06 -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 Zen
c40171820f Log attempt to fetch unpublished entries 2017-01-11 17:45:54 -02:00
Cássio Souza
a4d7622ade Asset API (#204)
Asset API
2017-01-10 22:23:22 -02:00
Cássio Souza
1efc59a9fb Netlify auth (#194) 2016-12-23 16:59:48 -02:00
Cássio Zen
a33aa13d0f moved Entry VO away from implementations 2016-10-27 15:27:39 -02:00
Cássio Souza
5151e7cdb1 Bugfixes due to new slug signature (#145) 2016-10-26 15:50:34 -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
Cássio Souza
e001714aed Optimistic Updates (#114)
* Optimistic Updates structure
* Optimistic update for Editorial Workflow
2016-10-18 14:30:13 -02:00
Cássio Zen
e89db336a7 avoid branches without metadata
but keep trying to  load metadata for remaining unpublished branches
2016-10-10 18:33:49 -03:00
Cássio Zen
ae64ce73ea Delete branch after PR merge 2016-09-14 18:55:42 -03: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
Cássio Zen
686dd51410 Commiting unpublished branches on pre existing branch (updates PR) 2016-09-13 14:31:18 -03:00
Cássio Zen
c84d538eb6 editor workflow ui adjustments 2016-09-09 17:15:58 -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
b0e62d1ca9 Refactor: Publish mode to publish 'workflow' 2016-09-05 18:56:03 -03:00
Cássio Zen
7d2ab1a45e Use urlfor params 2016-09-05 16:12:37 -03:00
Cássio Zen
77f5e1d6fa Merge branch 'react-pr' of https://github.com/netlify/netlify-cms into react-pr 2016-09-05 12:13:51 -03:00
Cássio Zen
e852991954 Storing more complete commit information on branch metadata 2016-09-05 12:12:38 -03:00
Mathias Biilmann Christensen
e04b1e80c5 Make GitHub backend respect branch setting 2016-09-04 14:01:28 +02:00
Cássio Zen
4a55bb0296 create PR 2016-08-31 17:33:12 -03:00