216 Commits

Author SHA1 Message Date
Bartholomew
caaa8b6db4 fix: load unpublished entries (#2927)
* fix: load unpublished entries

* test(cypress): re-record fixtures data
2019-11-28 17:07:07 +02:00
Erez Rokah
4c5f013d15
chore: fix some dev mode console errors (#2924) 2019-11-28 11:02:19 +02:00
Erez Rokah
afcfe5b6d5 feat: content in sub folders (#2897) 2019-11-27 22:39:33 -05:00
Bartholomew
41bb9aac0d feat: workflow unpublished entry (#2914)
* feat: workflow unpublished entry

* fix: post rebase fix - load unpublished entry after unpublish

* feat: change unpublish button to dropdown

* test(cypress): add unpublish entry cypress test
2019-11-26 12:14:04 +02:00
Bartholomew
465f463959 fix(backend-github): prepend collection name (#2878)
* fix(backend-github): prepend collection name

* chore: prefer migrating entries

* chore: cleanup

* chore: move migration to listUnpublishedBranches

* chore: prefer flowAsync

* chore: feedback updates

* refactor: extract current metadata version to a const

* refactor: don't send pulls request on open authoring

* test: update recorded data

* fix: hardcode migration key/branch logic

* test(backend-github): add unit tests for migration code

* fix(github-graphql): add ref property to result of createBranch

* test(cypress): update recorded data

* fix: load unpublished entries once

* fix: run migration for published draft entry

* fix: failing test

* chore: use hardcoded version number

* fix: use hardcoded version number

* test(cypress): update recorded data
2019-11-26 10:40:27 +02:00
Bartholomew
9ddfa48512 fix: emotion use ref prop (#2905) 2019-11-21 09:10:33 +02:00
Erez Rokah
ead46af194
chore(deps): update dependency prettier to v1.19.1 (#2893)
* chore(deps): update dependency prettier to v1.19.1

* style: format files after prettier upgrade
2019-11-18 17:51:51 +02:00
Erez Rokah
6515dee871
feat: commit media with post (#2851)
* feat: commit media with post - initial commit

* feat: add draft media indication

* feat: sync UI media files with GitHub on entry load

* feat: bug fixes

* feat: delete media files from github when removed from library

* test: add GitHub backend tests

* test: add unit tests

* fix: meta data object files are not updated

* feat: used nested paths when update a tree instead of recursion

* feat(test-backend): update test backend to persist media file with entry

* test(e2e): re-record fixtures data

* chore: code cleanup

* chore: code cleanup

* fix: wait for library to load before adding entry media files

* chore: code cleanup

* fix: don't add media files on entry when not a draft

* fix: sync media library after draft entry was published

* feat: update media library card draft style, add tests

* test: add Editor unit tests

* chore: test code cleanup

* fix: publishing an entry from workflow tab throws an error

* fix: duplicate media files when using test backend

* refactor: fix lodash import

* chore: update translations and yarn file after rebase

* test(cypress): update recorded data

* fix(test-backend): fix mapping of media files on publish
2019-11-17 11:51:50 +02:00
Erez Rokah
096b067d45
feat: add translation support (#2870)
* feat: add translation support

* test(cypress): fix locale import

* docs: add locale documentation

* feat: add german translation (#2877)

* fix: locales package version, register all locales in netlify-cms
2019-11-14 11:25:04 +02:00
Erez Rokah
f5c8ff31f1
fix(media-libs): accept string or string array for insertMedia action (#2857) 2019-11-11 11:30:34 +02:00
ed ho
1d78a2705f improvement: add logs when a 404 error is expected (#2807)
improvement: add logs when a 404 error is expected

improvement: address code review feedback -return rejected promise
2019-11-10 10:34:03 +02:00
Ananthakumar
542a7acfe6 fix(workflow): label file collection entries in Workflow (#2566) 2019-11-08 18:28:17 -05:00
Erez Rokah
002cdd77a8 fix: change default open authoring scope, make it configurable (#2821) 2019-11-07 12:39:47 -05:00
Ananthakumar
c1c95874f4 fix(backend-test-repo): show notice when test repo is in use (#2678) 2019-11-05 18:21:38 -05:00
Erez Rokah
2841ff9ffe feat: enable specifying custom open authoring commit message (#2810) 2019-10-28 15:29:47 -04:00
polemius
7ca528b20a enhancement: improve error with no existing widget (#2722)
* enhancement: improve error with no existing widget

* Update Widget.js

* chore: fix formatting of Widget.js
2019-10-24 11:59:32 +03:00
polemius
68dd995d97 Fix lint issues with propTypes (#2713) 2019-10-24 11:45:00 +03:00
Ben Borgers
c54f896e39 fix: hide collection item overflow on hover (#2706) 2019-10-23 14:08:46 -04:00
Bartholomew
f3e58e6be2 fix history console warning (#2789) 2019-10-23 15:58:54 +03:00
Erez Rokah
d38d4665c4
test(cleanup): remove/reintorduce skipped tests (#2788) 2019-10-23 13:22:48 +03:00
polemius
04b371825e chore: fix the typos in comments (#2679) 2019-09-24 16:16:09 -04:00
melbourne2991
8bdfea4728 fix: prevent deletion of file collection entries by default (#2627) 2019-09-05 18:08:07 -04:00
Pedro Duarte
752927060e improvement(editor): remove editor width constraint (#2626)
* Remove Editor max width

* Increase divider width
2019-09-05 15:26:31 -04:00
Bartholomew
6765bbd2fd fix(core): list widget pattern validation (#2599)
* fix list widget pattern validation

* remove array value check
2019-09-05 15:06:56 -04:00
Henry Desroches
9f003106e5 fix(media-library): automatically select uploaded image (#2569) 2019-09-05 13:38:27 -04:00
Erez Rokah
e674e43f9f fix(github-graphql): use getMediaDisplayURL to load media with auth header (#2652) 2019-09-04 18:56:06 -04:00
Erez Rokah
ce95a774b2 fix(core): don't pass boolean value to string prop, use null instead (#2609) 2019-09-04 18:39:21 -04:00
Erez Rokah
5b64e25d07 fix(core): don't pass ref to react-polyglot 'translate' function component (#2607) 2019-09-04 18:38:41 -04:00
Shawn Erquhart
1aff33e158
chore: update and document edit route (#2619)
* chore: update and document edit route

* fix formatting
2019-09-03 20:37:31 -04:00
Henry Desroches
083a336ba4 feat(routing): support direct linking to entries (#2556) 2019-08-28 20:37:56 -04:00
Sarabjot Kohli
6e6e4b86ca improvement(editor): add title to toggle buttons (#2548) 2019-08-28 18:48:30 -04:00
cetra3
9cb7cd7214 Update toml library from toml-j0.4 to @iarna/toml@2.2.3 (#2547) 2019-08-28 18:46:11 -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
Bartholomew
326ed4dc3f fix(core): fix broken search (#2488) 2019-07-24 15:29:37 -04:00
Shawn Erquhart
a02496b0dd
fix(core): load more entries until viewport is filled (#2415) 2019-06-28 17:30:39 -04:00
Bartholomew
556c102e37 fix(core): backend file system create entry (#2401) 2019-06-26 14:37:22 -04:00
Shawn Erquhart
321ca9b0ed
test(backend-gitlab): cover gitlab backend integration (#1968) 2019-06-26 11:51:35 -04:00
Henry
d6964b50b3 feat(widget-relation): support nested field references in relation widget (#2391) 2019-06-24 19:32:02 -04:00
Bartholomew
814aa5091b fix(widget-list): validate string values in list widget (#2385) 2019-06-24 18:50:26 -04:00
Bartholomew
1806a2f041 fix(core): list widget default values (#2374) 2019-06-14 11:46:33 -04:00
Toby Marsden
29f12c94d9 improvement(editor): persist editor split pane position (#2304) 2019-05-10 10:20:57 -04:00
Bartholomew
0ce995d78c fix(core): ensure against slug overwrite (#2139) 2019-04-10 16:38:53 -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
Tony Alves
b4041d3971 chore: refine named exports (#2249) 2019-03-27 16:47:28 -04:00
Bartholomew
4db497b496 fix: broken preview (#2245) 2019-03-26 12:04:48 -04:00
Tony Alves
d142b32345 feat: add ES module builds (#2215) 2019-03-22 11:24:46 -04:00
Benaiah Mischenko
d39a361e2d fix(editorial-workflow): fix LM pointers changing to binary files (#2228) 2019-03-22 09:59:06 -04:00
Tony Alves
e04f6bec1d fix: fix umd builds (#2214) 2019-03-18 15:47:57 -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
efa650ccf8
fix(config): strip leading slashes from collection location config (#2131) 2019-03-01 09:45:23 -05:00
Shawn Erquhart
686504adee
feat(core): recover entry after unexpected quit (#2129) 2019-02-28 13:30:23 -05:00
Bartholomew
7577443849 fix(core): number type slug template (#2119) 2019-02-28 13:11:35 -05:00
Benaiah Mischenko
da2249c651 Netlify Large Media integration (#2124) 2019-02-26 13:11:15 -05:00
Shawn Erquhart
49195fdb1a
enhancement(collections): use identifier field in collections view (#2058) 2019-02-19 16:14:37 -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
ff8dfac813
feat(core): allow field name to override slug placeholders (#2087) 2019-02-12 16:59:53 -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
Luis Correia
dc44caca20 feat(widget-number): add range validation (#2049) 2019-02-08 15:01:08 -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
Tony Alves
14f94a022c feat(config): allow config.yml file load to be skipped (#2053) 2019-02-03 17:48:40 -05:00
Leonardo Dino
ef50a93efc enhancement(netlify-cms-core): translate workflow card last modified text (#2025) 2019-02-02 20:02:51 -05:00
Daniel Eden
ebba686430 fix(netlify-cms-core): allow arrays for frontmatter_delimiter in config (#1997) 2019-02-02 20:01:32 -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
Bartholomew
f2e4800989 fix(netlify-cms-core): files collection blank label (#1987) 2019-01-10 16:25:53 -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
Paul Melero
79c0445768 fix(netlify-cms-core): avoid leading replacement char in slug (#1965) 2018-12-26 23:45:06 -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
Bartholomew
42d6478117 improvement(netlify-cms-core): avoid redundant workflow status update (#1958) 2018-12-17 14:59:39 -05:00
Stefan Lau
67585e84ae fix(media-library): stop loading non-image previews (#1947) 2018-12-11 11:00:34 -05:00
sysoce
0f1ebd1060 fix(netlify-cms-core): support translation in error message (#1935) 2018-12-11 10:50:23 -05:00
Shawn Erquhart
1fc2f50499
feat: add cloudinary support (#1932) 2018-12-04 17:04:52 -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
Bartholomew
2c5827bd99 fix(backend): use singular label in custom commit message (#1917) 2018-11-28 19:31:04 -05:00
Steve Lathrop
d5f4c99002 fix(netlify-cms-core): fix identifier field validation (#1907) 2018-11-26 20:31:14 -05:00
Tony Alves
da91038067 improvement(backends): changes for registerBackend compatibility (#1880) 2018-11-26 16:30:50 -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
Shawn Erquhart
fe6af1986f
fix(config): remove identifier field validation (#1882) 2018-11-21 22:32:50 -05:00
Loïc Mahieu
8f0d2d64a8 improvement: move window/umd bridge out of core (#1865) 2018-11-21 20:18:19 -05:00