139 Commits

Author SHA1 Message Date
Sarabjot Kohli
6e6e4b86ca improvement(editor): add title to toggle buttons (#2548) 2019-08-28 18:48:30 -04:00
Bartholomew
4c5fe6a606 fix(media-library): no render of non-viewable files (#2546) 2019-08-28 18:27:48 -04:00
Sam Lanning
a47a29fb8b Allow for relative paths of media files (#2394)
* Allow for relative paths of media files

fixes #325

* Switch to calculating the relative path based on collection

The required relative path is now calculated depending on the
location of the collection of the current entry having the
media inserted into. And the configuration option has now been
changed to a boolean flag.

This allows collections to not neccesarily all be in the same
location relative to the media folder, and simplifies config.

* Clean up code and fix linting

* Add unit tests to resolveMediaFilename()

* Rework insertMedia action to fetch own config

This moves more of the media path resolution logic into the action
which makes it easier to unit test

* Add unit tests for the mediaLibrary.insertMedia action

* yarn run format

* add dependabot config (#2580)
2019-08-24 16:03:09 -04:00
Benaiah Mischenko
34e1f09105 Open Authoring bugfixes and pagination improvements (#2523)
* Fix handling of displayURLs which are strings

* Add fromFetchArguments to unsentRequest

* Add parseLinkHeader to backendUtil

* Handle paginated endpoints in GitHub API

* Rename fork workflow to Open Authoring across the whole repo

* Fixes for bugs in GitHub API introduced by Open Authoring changes

* Fix getDeployPreview

* Fix incorrect auth header formatting GitHub implementation

cf. https://github.com/netlify/netlify-cms/pull/2456#discussion_r309633387

* Remove unused and broken method from GitHub API

cf. https://github.com/netlify/netlify-cms/pull/2456#discussion_r308687145

* Fix editorialWorkflowGit method in GitHub API

* Request published entry content from origin repo

* Better error when deleting a published post in Open Authoring

* Rename to Open Authoring in fork request message

Also adds a note to the fork request message that an existing fork of
the same repo will be used automatically.

* fix linting
2019-08-24 13:54:59 -04:00
Benaiah Mischenko
edf0a3afdc feat(backend-github): Open Authoring (#2430)
* Make filterPromises resolve entries before filtering

* Add filterPromisesWith & onlySuccessfulPromises to utility library

* Memoize user method in GitHub API

* Make storeMetadata safe to call concurrently in GitHub API

* Fork workflow: startup and authentication

* Fork workflow: backend support

* Fork workflow: disable unused UI elements

* Fork workflow: docs

* Fork workflow: fix deploy previews

* Suggested edits for fork workflow doc

* Change future tense to present

* Fork workflow: add beta status to docs

* remove debug statement

* rename fork workflow to Open Authoring
2019-07-24 18:20:41 -04:00
Shawn Erquhart
a02496b0dd
fix(core): load more entries until viewport is filled (#2415) 2019-06-28 17:30:39 -04:00
Bartholomew
814aa5091b fix(widget-list): validate string values in list widget (#2385) 2019-06-24 18:50:26 -04:00
Toby Marsden
29f12c94d9 improvement(editor): persist editor split pane position (#2304) 2019-05-10 10:20:57 -04:00
Shawn Erquhart
a6c51fe14d
fix(core): correctly delete backups for new entries (#2265) 2019-04-04 14:33:36 -04:00
Damien Duhamel
9e08b65502 fix: redirect when a collection doesn't exist (#2208) 2019-04-02 15:57:42 -04:00
Austin Devine
573ad8816d feat(core): allow custom summary on entry cards (#2140) 2019-03-29 14:30:38 -04:00
Bartholomew
4db497b496 fix: broken preview (#2245) 2019-03-26 12:04:48 -04:00
Tony Alves
82cc7941cc feat: provide usable UMD builds for all packages (#2141) 2019-03-16 18:44:29 -04:00
Shawn Erquhart
ccef446d72
feat: upgrade to Emotion 10 (#2166) 2019-03-15 10:19:57 -04:00
Shea Daniels
a6c20cf688 enhancement(media-library): use checkerboard pattern as background (#2152) 2019-03-14 14:52:40 -04:00
Shawn Erquhart
37138834d6 Fix raw GitHub URL being output to content (#2147)
* fix thumbnail quality

* Revert "fix(git-gateway): fix previews for GitHub images not in Large Media (#2125)"

This reverts commit d17f896f479292db06d3a4b39f2e51b6c41101bd.

* wip

* Stop using thunks to load media display URLs

* Revert changes to dev-test

* Revert changes to large media docs

* fix lint error

* Update docs to point to the upcoming version with non-broken media
2019-03-07 18:28:14 -08:00
Shawn Erquhart
3d98b72775
fix(core): allow updates through error boundary (#2136) 2019-03-02 15:26:08 -05:00
Shawn Erquhart
686504adee
feat(core): recover entry after unexpected quit (#2129) 2019-02-28 13:30:23 -05:00
Benaiah Mischenko
da2249c651 Netlify Large Media integration (#2124) 2019-02-26 13:11:15 -05:00
Alexander Nanberg
518f6fb1c0 feat(netlify-cms-widget-relation): use react-select and add support for multiple entries (#1936) 2019-02-19 14:11:38 -05:00
Bartholomew
aff9c1a70a fix(widget-relation): fix initial relation widget preview (#2090) 2019-02-13 10:17:32 -05:00
Dennis Padiernos
d9043b4a66 enhancement(media library): add visual placeholder for non-image files (#2089) 2019-02-13 09:27:32 -05:00
Shawn Erquhart
ddbf80df49 Revert "perf(netlify-cms-core): add basic route code-splitting (#1889)"
This reverts commit 9aa56457e297a9e2592ca87a59b635508ef5702e.
2019-02-08 17:40:16 -05:00
Bartholomew
2d1d1c13df fix(netlify-cms-core): fix fields metadata for objects and lists (#2011) 2019-02-08 14:55:03 -05:00
Shawn Erquhart
15d221d4a4
feat(workflow): add deploy preview links (#2028) 2019-02-08 12:26:59 -05:00
Bartholomew
627e600d29 fix(netlify-cms-core): validate nested fields (#1873) 2019-02-05 17:27:34 -05:00
Alexander Nanberg
9aa56457e2 perf(netlify-cms-core): add basic route code-splitting (#1889) 2019-02-05 16:49:27 -05:00
Leonardo Dino
ef50a93efc enhancement(netlify-cms-core): translate workflow card last modified text (#2025) 2019-02-02 20:02:51 -05:00
Leonardo Dino
5d8aef1d94 feat(netlify-cms-core): expose loadEntry action to Widgets (#2010) 2019-02-02 19:54:19 -05:00
Bartholomew
11305d36b2 fix(netlify-cms-core): relation widget value swap (#2018) 2019-02-02 16:53:10 -05:00
Thijs Koerselman
44b7cdf9f8 feat(editor): display optional status in widget labels (#1955) 2018-12-26 23:48:50 -05:00
Bartholomew
44fb2fb00d fix(netlify-cms-core): workflow hide delete publish entry button (#1971) 2018-12-26 23:47:28 -05:00
Bartholomew
b374ffe18b fix(netlify-cms-core): fix collection entries loaded check (#1881) 2018-12-19 15:29:54 -05:00
Bartholomew
cedcbf89a5 fix(netlify-cms-core): avoid partially loaded collection list (#1964) 2018-12-19 15:28:45 -05:00
Stefan Lau
67585e84ae fix(media-library): stop loading non-image previews (#1947) 2018-12-11 11:00:34 -05:00
Bartholomew
9662eb292f fix(netlify-cms-core): duplicate key warning (#1930) 2018-12-04 16:25:18 -05:00
Alexander Nanberg
e5ad6087af chore(netlify-cms-core): upgrade react-frame-component to 4.x (#1925) 2018-11-29 10:07:09 -05:00
Alexander Nanberg
88bf287221 feat(netlify-cms-widget-select): add support for multiple selection (#1901) 2018-11-29 09:34:04 -05:00
Alexander Nanberg
751ec091fb fix(netlify-cms-core): fix prop-types warnings (#1906) 2018-11-26 12:01:02 -05:00
Alexander Nanberg
955f94f72b fix(a11y): correct label "for" references to fields (#1904) 2018-11-26 11:56:41 -05:00
Alexander Nanberg
422d0cbe2f improvement(netlify-cms-core): wrap navigations in lists for better a11y (#1903) 2018-11-26 11:53:49 -05:00
Alexander Nanberg
888ae6b053 fix(netlify-cms-core): remove double focusable elements on profile menu button (#1900) 2018-11-22 09:18:11 -05:00
Alexander Nanberg
9706b3cac7 chore(netlify-cms-core): remove unnecessary wrapper elements (#1888) 2018-11-21 17:18:26 -05:00
Bartholomew
2a63940d97 fix: correct validation pattern error message (#1879) 2018-11-21 17:14:01 -05:00
Alexander Nanberg
034c29ad65 fix: MediaLibraryHeader CloseButton style (#1883) 2018-11-17 17:53:38 +01:00
Loïc Mahieu
79205f7db3 fix: fix App configError method (#1864) 2018-11-12 11:34:02 -05:00
Bartholomew
b1a7e006f6 fix(i18n): fix missing widget placeholder (#1861) 2018-11-09 10:17:55 -05:00
Michael Henderson
ede1bad97c improvement(config): use field name as default label (#1553) 2018-11-02 13:22:16 -04:00
Nahuel Dealbera
c2e21ff9db improvement(i18n): extract core UI texts to external file (#1708) 2018-11-02 13:19:49 -04:00
Shawn Erquhart
b60c94aa8f
improvement(auth): verbose error message when GitHub repo unavailable (#1831) 2018-11-02 10:29:11 -04:00
Shawn Erquhart
0596904e0b
feat(media): add external media library support, Uploadcare integration (#1602) 2018-08-30 16:24:28 -04:00
Bevan Wentzel
17530eb42a improvement: show quick add dropdown conditionally (#1679) 2018-08-28 12:38:56 -04:00
Caleb
e567d964a7 chore: remove unused file from #1433 (#1661) 2018-08-27 15:51:47 -04:00
Caleb
bc5b155cde improvement: fix backend login buttons not showing login progress (#1658) 2018-08-27 12:25:32 -04:00
Caleb
a9666aadd4 refactor: cleanup unused variable (#1652) 2018-08-27 12:23:42 -04:00
Caleb
922b1846cb chore: add missing react prop types (#1651) 2018-08-27 12:23:21 -04:00
Brian Macdonald
06d3650fac fix(list-widget): fix single field usage in list widget (#1395) 2018-08-24 17:39:35 -04:00
Benaiah Mischenko
83d2adc0be fix(gitlab): fetch media library images through API (#1433) 2018-08-22 15:28:51 -04:00
Gil Greenberg
1fbe5b5957 improvement: Add Hint Option to all Widgets (#1429)
* Add hint to example admin config

* Add hint and hint position boolean above/below widget

* Style hint for both above and below widget

* Add hint and hint_above options to docs

* Remove hint above and make hint plaintext
2018-08-16 13:51:29 -07:00
Caleb
412d1e629f
fix: make media button consistent with links (#1621) 2018-08-15 16:37:41 -06:00
Caleb
05622b8eee dev: add GitHub detailed issue templates (#1591)
* dev: add GitHub detailed issue templates

* dev: update PR template

contributing guidelines link is already in PR UI

changelog message is no longer needed -- it is generated from commit messages

* dev: use bug report template on CMS crash

* Update bug_report.md
2018-08-13 13:08:26 -07:00
Caleb
f801b19221 chore: add code formatting and linting (#952) 2018-08-07 16:46:54 -04:00
Caleb
8cc6dc78ec improvement(validation): use config schema definition for validation (#1363) 2018-08-07 12:31:17 -04:00
Caleb
88f7dca328 chore(lint): cleanup unused variables in code (#1563) 2018-08-07 11:53:31 -04:00
jimmycleveland-clearlink
77fbc041bb fix(relation): fix relation widget selection bug (#1572) 2018-08-07 11:51:47 -04:00
Caleb
b2debb05a1 refactor: use external version of react-scroll-sync (#1586) 2018-08-07 11:50:41 -04:00
Jake Rayson
4782c472bf improvement(a11y): use more semantic html tags in collections view (#1585) 2018-08-06 16:53:40 -04:00
Caleb
5a27fb8b9d chore: fix miscellaneous errors from linters (#1555) 2018-07-31 17:03:46 -04:00
Caleb
d5f59de2d2 refactor: stop using unsafe or deprecated React methods (#1542) 2018-07-31 16:59:22 -04:00
Caleb
4f6e8cea44 chore: remove unused imports (#1534) 2018-07-28 16:33:42 -04:00
Caleb
6632e5d152 fix: bug fixes from linters (#1524) 2018-07-27 11:13:52 -04:00
Shawn Erquhart
439920c652 fix UI bugs 2018-07-25 21:17:57 -04:00
Shawn Erquhart
3e8a6e5091 migrate relation widget 2018-07-25 21:17:57 -04:00
Shawn Erquhart
c54605be85 migrate select, number, and text widgets 2018-07-25 21:17:57 -04:00
Shawn Erquhart
f1a2eb33b4 migrate markdown widget 2018-07-25 21:17:57 -04:00
Shawn Erquhart
3f47fe6dbf migrate object and list widgets 2018-07-25 21:17:57 -04:00
Shawn Erquhart
2efd09ba94 migrate file and image widgets 2018-07-25 21:17:57 -04:00
Shawn Erquhart
e80a407cee migrate date and datetime widgets 2018-07-25 21:17:57 -04:00
Shawn Erquhart
6be3c7a839 migrate boolean widget 2018-07-25 21:17:57 -04:00
Shawn Erquhart
0e25b76bb7 register extensions for development 2018-07-25 21:17:57 -04:00
Shawn Erquhart
27d13a73b6 add netlify-cms (main) package 2018-07-25 21:17:57 -04:00
Shawn Erquhart
19f484eeda improve interpackage config sharing 2018-07-25 21:17:57 -04:00
Shawn Erquhart
ef90fb9925 improve builds and local development 2018-07-25 21:17:57 -04:00
Shawn Erquhart
2f95d8c4fc use webpack for all builds 2018-07-25 21:17:57 -04:00
Shawn Erquhart
040dd6859c fix build, migrate test backend 2018-07-25 21:17:57 -04:00
Shawn Erquhart
2e7406862e fix various bugs 2018-07-25 21:17:57 -04:00
Shawn Erquhart
b7b90aaa65 migrate image editor component 2018-07-25 21:17:57 -04:00
Shawn Erquhart
4931711892 migrate core to emotion 2018-07-25 21:17:57 -04:00
Shawn Erquhart
768fcbaa1d begin scaffolding for lerna 2018-07-25 21:17:57 -04:00