36 Commits

Author SHA1 Message Date
Shawn Erquhart
5bdd3df9cc Revert "feat(core): Align GitHub metadata handling with other backends (#3292)"
This reverts commit 8193b5ace89d6f14a6c756235a50b186a763b6b1.
2020-02-22 14:20:28 -05:00
Erez Rokah
8193b5ace8
feat(core): Align GitHub metadata handling with other backends (#3292)
* refactor: code cleanup for GitLab and BitBucket

* feat(backend-github): use prs labels for metadata - initial commit

* refactor(backend-github): code cleanup, fix tests

* fix(backend-github): bug fixes

* fix(backend-github): open authoring fixes

* fix(backend-github): open authoring fixes

* fix(backend-github): fix graphql

* test(e2e): update Octokit usage

* test(e2e): re-record test data, fix bugs

* test(e2e): re-record test data, fix bugs

* test(e2e): fix tests

* refactor: code cleanup

* fix(backend-github): fix migration code

* fix(backend-github): don't fail on non existing files collections files

* fix(backend-github): use patch attribute instead of slug to get path

* fix(backend-github): use compare api to force push a pr

* fix(backend-github): fix git-gateway and re-record tests

* fix(backend-github): use first commit message as open authoring pr title

* refactor(backend-github): code cleanup

* test(e2e): fix tests
2020-02-22 09:51:30 -05:00
Erez Rokah
97bc0c8dc4
feat: field based media/public folders (#3208) 2020-02-10 11:05:47 -05:00
Erez Rokah
0a482b1004 fix: filter paginated results (#3216) 2020-02-10 11:44:00 +02:00
Bartholomew
d22f7e680e fix: workflow file collection (#3207) 2020-02-09 11:53:38 +02:00
tiuweehan
fc91bf8781
fix(locale): remove hard coded strings (#3193) 2020-02-04 14:49:47 +02:00
Erez Rokah
f1739e978f
fix(backend-gitlab): check for shared group permissions (#3122) 2020-01-21 19:21:43 +02:00
Erez Rokah
038803c9f2
fix(git-gateway-gitlab): fix large media support for editorial workflow (#3105) 2020-01-19 14:25:29 +02:00
Erez Rokah
6f221ab3c1 Feat: editorial workflow bitbucket gitlab (#3014)
* refactor: typescript the backends

* feat: support multiple files upload for GitLab and BitBucket

* fix: load entry media files from media folder or UI state

* chore: cleanup log message

* chore: code cleanup

* refactor: typescript the test backend

* refactor: cleanup getEntry unsued variables

* refactor: moved shared backend code to lib util

* chore: rename files to preserve history

* fix: bind readFile method to API classes

* test(e2e): switch to chrome in cypress tests

* refactor: extract common api methods

* refactor: remove most of immutable js usage from backends

* feat(backend-gitlab): initial editorial workflow support

* feat(backend-gitlab): implement missing workflow methods

* chore: fix lint error

* feat(backend-gitlab): support files deletion

* test(e2e): add gitlab cypress tests

* feat(backend-bitbucket): implement missing editorial workflow methods

* test(e2e): add BitBucket backend e2e tests

* build: update node version to 12 on netlify builds

* fix(backend-bitbucket): extract BitBucket avatar url

* test: fix git-gateway AuthenticationPage test

* test(e2e): fix some backend tests

* test(e2e): fix tests

* test(e2e): add git-gateway editorial workflow test

* chore: code cleanup

* test(e2e): revert back to electron

* test(e2e): add non editorial workflow tests

* fix(git-gateway-gitlab): don't call unpublishedEntry in simple workflow

gitlab git-gateway doesn't support editorial workflow APIs yet. This change makes sure not to call them in simple workflow

* refactor(backend-bitbucket): switch to diffstat API instead of raw diff

* chore: fix test

* test(e2e): add more git-gateway tests

* fix: post rebase typescript fixes

* test(e2e): fix tests

* fix: fix parsing of content key and add tests

* refactor: rename test file

* test(unit): add getStatues unit tests

* chore: update cypress

* docs: update beta docs
2020-01-14 17:15:14 -05:00
Erez Rokah
b27748b54f
Fix: get files by path depth (#2993)
* fix: get files up to depth specified by colletion path

* test(e2e): update mock data

* chore: fix comment
2019-12-22 15:20:42 +02:00
Erez Rokah
2b41d8a838 feat: bundle assets with content (#2958)
* fix(media_folder_relative): use collection name in unpublished entry

* refactor: pass arguments as object to AssetProxy ctor

* feat: support media folders per collection

* feat: resolve media files path based on entry path

* fix: asset public path resolving

* refactor: introduce typescript for AssetProxy

* refactor: code cleanup

* refactor(asset-proxy): add tests,switch to typescript,extract arguments

* refactor: typescript for editorialWorkflow

* refactor: add typescript for media library actions

* refactor: fix type error on map set

* refactor: move locale selector into reducer

* refactor: add typescript for entries actions

* refactor: remove duplication between asset store and media lib

* feat: load assets from backend using API

* refactor(github): add typescript, cache media files

* fix: don't load media URL if already loaded

* feat: add media folder config to collection

* fix: load assets from API when not in UI state

* feat: load entry media files when opening media library

* fix: editorial workflow draft media files bug fixes

* test(unit): fix unit tests

* fix: editor control losing focus

* style: add eslint object-shorthand rule

* test(cypress): re-record mock data

* fix: fix non github backends, large media

* test: uncomment only in tests

* fix(backend-test): add missing displayURL property

* test(e2e): add media library tests

* test(e2e): enable visual testing

* test(e2e): add github backend media library tests

* test(e2e): add git-gateway large media tests

* chore: post rebase fixes

* test: fix tests

* test: fix tests

* test(cypress): fix tests

* docs: add media_folder docs

* test(e2e): add media library delete test

* test(e2e): try and fix image comparison on CI

* ci: reduce test machines from 9 to 8

* test: add reducers and selectors unit tests

* test(e2e): disable visual regression testing for now

* test: add getAsset unit tests

* refactor: use Asset class component instead of hooks

* build: don't inline source maps

* test: add more media path tests
2019-12-18 11:16:02 -05:00
Erez Rokah
afcfe5b6d5 feat: content in sub folders (#2897) 2019-11-27 22:39:33 -05:00
Erez Rokah
2841ff9ffe feat: enable specifying custom open authoring commit message (#2810) 2019-10-28 15:29:47 -04:00
Patryk Niedźwiedziński
f206e7e5a1 feat: add go back to site button (#2538) 2019-10-28 15:20:41 -04:00
Bartholomew
3903acb431 fix(backend-gitlab): exclude directories in paginated results (#2668) 2019-09-10 11:31:52 -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
Shawn Erquhart
321ca9b0ed
test(backend-gitlab): cover gitlab backend integration (#1968) 2019-06-26 11:51:35 -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
Stefan Lau
c3adebea06 fix(backend-gitlab): show svg previews (#1946) 2018-12-11 10:52:11 -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
Philipp Nieting
a9f69f9ddc fix(backend-gitlab): support folder names with whitespace (#1799) 2018-11-02 10:38:54 -04:00
Shawn Erquhart
b60c94aa8f
improvement(auth): verbose error message when GitHub repo unavailable (#1831) 2018-11-02 10:29:11 -04:00
Caleb
922b1846cb chore: add missing react prop types (#1651) 2018-08-27 12:23:21 -04:00
Benaiah Mischenko
83d2adc0be fix(gitlab): fetch media library images through API (#1433) 2018-08-22 15:28:51 -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
Philipp Nieting
d59c990e72 fix(gitlab): fix uploads (#1566) 2018-08-01 10:46:33 -04:00
Caleb
4f6e8cea44 chore: remove unused imports (#1534) 2018-07-28 16:33:42 -04:00
Shawn Erquhart
aac5167461 migrate bitbucket backend 2018-07-25 21:17:57 -04:00
Shawn Erquhart
faab1e38ba migrate GitLab backend 2018-07-25 21:17:57 -04:00