48 Commits

Author SHA1 Message Date
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
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
Bartholomew
68a8c8a693 fix(backend-github): loaded entries limit (#2873)
* fix(backend-github): loaded entries limit

* test(cypress): update recorded data
2019-11-13 11:02:47 +02:00
Erez Rokah
9978769ece
fix: make forkExists name matching case-insensitive (#2869) 2019-11-11 19:30:47 +02:00
Erez Rokah
4a2328b2f1
fix(git-gateway): unpublished entries not loaded for git-gateway(GitHub) (#2856) 2019-11-11 18:33:20 +02:00
Bartholomew
86adca3a18 fix(backend-github): editorial workflow commits (#2867) 2019-11-11 17:06:29 +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
Erez Rokah
002cdd77a8 fix: change default open authoring scope, make it configurable (#2821) 2019-11-07 12:39:47 -05:00
Erez Rokah
7f90d0e065 fix: display UI to fork a repo only when fork doesn't exist (#2802) 2019-10-28 20:27:11 -04:00
Erez Rokah
eaeaf44832 fix(github-backend): load media URLs via API (#2817) 2019-10-28 16:00:42 -04:00
Patryk Niedźwiedziński
f206e7e5a1 feat: add go back to site button (#2538) 2019-10-28 15:20:41 -04:00
Erez Rokah
02099d6ac3
chore: remove duplicate bug fix for open authoring (#2801) 2019-10-24 15:45:30 +03:00
Erez Rokah
b869ce05ae test(cypress-github-backend): optionally record tests and run using recorded data (#2776) 2019-10-22 12:59:13 -04:00
melbourne2991
922c0f38ee fix(git-gateway): pass api URL instead of constructing it from repo value (#2631) 2019-09-26 12:35:52 -04:00
Erez Rokah
97f1f84b69 fix(github-backend): handle race condition in editorial workflow (#2658) 2019-09-09 15:56:47 -04:00
Erez Rokah
0baf651f33 refactor(github-backend): move getMediaDisplayURL from implementation to api (#2654) 2019-09-09 15:42:10 -04:00
Benaiah Mischenko
68170336d5 fix(backend-github): update Open Authoring branches with no PR (#2618) 2019-09-05 17:06:57 -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
ece136c92e feat(backend-github): GitHub GraphQL API support (#2456)
* add GitHub GraphQL api initial support

* support mutiple backends for e2e tests - initial commit

* add github backend e2e test (currently skipped), fix bugs per tests

* refactor e2e tests, add fork workflow tests, support fork workflow in GraphQL api

* remove log message that might contain authentication token

* return empty error when commit is not found when using GraphQL (align with base class)

* disable github backend tests

* fix bugs introduced after rebase of GraphQL and OpenAuthoring features

* test: update tests per openAuthoring changes, split tests into multiple files

* fix: pass in headers for pagination requests, avoid async iterator as it requires a polyfill on old browsers

* test(e2e): disable github backend tests
2019-09-03 14:56:20 -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
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
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
Benaiah Mischenko
da2249c651 Netlify Large Media integration (#2124) 2019-02-26 13:11:15 -05:00
Shawn Erquhart
15d221d4a4
feat(workflow): add deploy preview links (#2028) 2019-02-08 12:26:59 -05:00
Loïc Mahieu
636a141a4a chore: fix function prop-type (#1871) 2018-11-12 11:38:26 -05:00
Bartholomew
c6ae1e8fc0 feat: allow custom logo on auth page (#1818) 2018-11-02 13:25:36 -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
a28ed726aa Revert "improvement: allow custom workflow branch name prefix (#1494)"
This reverts commit da0f520f0d4f7af0e0ec8af16fbdd04bc39751b4.
2018-09-17 12:19:14 -04:00
Andreas Richter
da0f520f0d improvement: allow custom workflow branch name prefix (#1494) 2018-09-04 12:57:53 -04:00
Caleb
922b1846cb chore: add missing react prop types (#1651) 2018-08-27 12:23:21 -04:00
Caleb
f801b19221 chore: add code formatting and linting (#952) 2018-08-07 16:46:54 -04:00
Caleb
88f7dca328 chore(lint): cleanup unused variables in code (#1563) 2018-08-07 11:53:31 -04:00
Caleb
f7e7120db5 fix(backends): fix commit message handling (#1568) 2018-08-07 11:49:53 -04:00
Shawn Erquhart
90b815657e
fix(workflow): enable workflow per method (#1569)
Workflow needs to be enabled per method. `persistEntry` should only use it when persisting an unpublished entry, but must behave as if workflow were not enabled for publishing. This fixes a 2.0 regression.
2018-08-01 15:06:22 -04:00
Caleb
5a27fb8b9d chore: fix miscellaneous errors from linters (#1555) 2018-07-31 17:03:46 -04:00
Caleb
ddc8f04d4f fix(github): fix image uploading (#1561) 2018-07-31 14:22:17 -04:00
Shawn Erquhart
0aa085f8d2
fix(workflow): fix status not set on new workflow entries (#1558) 2018-07-31 12:17:25 -04:00
Caleb
4f6e8cea44 chore: remove unused imports (#1534) 2018-07-28 16:33:42 -04:00
Shawn Erquhart
faab1e38ba migrate GitLab backend 2018-07-25 21:17:57 -04:00
Shawn Erquhart
33f490055d migrate test backend styling 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