428 Commits

Author SHA1 Message Date
renovate[bot]
9f219d3958
chore(deps): update dependency eslint to v7 (#4166)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-17 13:23:29 +03:00
renovate[bot]
bad8771f39
chore(deps): update dependency husky to v4 (#4168)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-17 13:13:36 +03:00
Erez Rokah
460d1e6835
ci: pass token to checkout action to be set in git config (#4065) 2020-07-23 19:33:40 +03:00
renovate[bot]
25c436e91f
chore(deps): update dependency copy-webpack-plugin to v6 (#4051) 2020-07-22 15:24:41 +03:00
renovate[bot]
3640e2692e
chore(deps): update dependency @testing-library/react to v10 (#4046) 2020-07-22 14:21:13 +03:00
renovate[bot]
f6302ed845
chore(deps): update dependency babel-plugin-transform-define to v2 (#4050)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-21 23:44:51 +03:00
renovate[bot]
4258521667
chore(deps): update dependency babel-plugin-module-resolver to v4 (#4049)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-21 23:30:13 +03:00
renovate[bot]
56a57fee74
chore(deps): update dependency @testing-library/jest-dom to v5 (#4045)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-21 23:25:48 +03:00
renovate[bot]
3c34e8d6a0
chore(deps): update dependency @types/jest to v26 (#4048)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-21 17:39:22 +03:00
renovate[bot]
2565668130
chore(deps): update dependency cross-env to v7 (#4052)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-21 17:26:07 +03:00
Erez Rokah
6a44e0b449
ci: fix publish script (#4030) 2020-07-16 17:03:50 +03:00
renovate[bot]
345783b728
chore(deps): update commitlint monorepo to v9 (#4014)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-13 11:48:28 +03:00
Erez Rokah
07f47824e9
chore: replace react-router-redux with connected-react-router (#4001) 2020-07-09 19:08:18 +03:00
Erez Rokah
8185eeed24
chore(deps): update cypress (#3801) 2020-05-25 11:12:21 +03:00
renovate[bot]
1c7ef1c457
fix(deps): update dependency simple-git to v2 (#3730)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-11 12:16:30 +03:00
Erez Rokah
cae9a570ab
test(backend-test): enable all tests (#3608) 2020-04-15 19:32:52 +03:00
Erez Rokah
1bca0884f2
ci: rename github secret (#3525) 2020-04-02 10:17:19 +03:00
renovate[bot]
d812eecc51
chore(deps): lock file maintenance (#3428)
* chore(deps): lock file maintenance

* fix: don't add undefined children property

* chore: add missing axios dependency

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
2020-03-16 12:38:10 +01:00
Erez Rokah
1090afd31c
ci: add missing types check (#3384) 2020-03-06 18:10:44 +01:00
Erez Rokah
e1fa3b0ec0
chore: upgrade cypress (#3231) 2020-02-11 18:36:13 +02:00
Erez Rokah
eff1fe3131
ci: add publish action (#3210) 2020-02-09 17:01:43 +02:00
Erez Rokah
7e8084be87 chore: add proxy backend (#3126)
* feat(backends): add proxy backend

* feat: add proxy server initial commit

* fix: move from joi to @hapi/joi

* test: add joi validation tests

* feat: proxy server initial implementations

* test: add tests, fix build

* chore: update yarn.lock

* build: fix develop command

* fix(back-proxy): fix bugs

* test(backend-proxy): add cypress tests

* chore: cleanup

* chore: support node 10

* chore: code cleanup

* chore: run cypress on ubuntu 16.04

* test(e2e): fix proxy backend cypress tests

* chore: don't start proxy server on yarn develop
2020-01-22 16:47:34 -05:00
Erez Rokah
e142280f6e
chore: add storybook (#3104) 2020-01-19 17:53:11 +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
renovate[bot]
95ba0f5cd0 chore(deps): update dependency cache-me-outside to ^0.0.10 (#2997) 2019-12-23 11:17:25 +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
Shawn Erquhart
18c579d0e9 feat: Code Widget + Markdown Widget Internal Overhaul (#2828)
* wip - upgrade to slate 0.43

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* finish list handling logic

* add plugins directory

* tests wip

* setup testing

* wip

* add selection commands

* finish list testing

* stuff

* add codemirror

* abstract codemirror from slate

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* codemirror mostly working, some bugs

* upgrade to slate 46

* upgrade to slate 47

* wip

* wip

* progress

* wip

* mostly working links with surrounding marks

* wip

* tests passing

* add test

* fix formatting

* update snapshots

* close self closing tag in markdown html output

* wip - commonmark

* hold on commonmark work

* all tests passing

* fix e2e specs

* ignore tests in esm builds

* break/backspace plugins wip

* finish enter/backspace spec

* fix soft break handling

* wip - editor component deletion

* add insertion points

* make insertion points invisible

* fix empty mark nodes output to markdown

* fix pasting

* improve insertion points

* add static bottom insertion point

* improve click handling at insertion points

* restore current table functionality

* add paste support for Slate fragments

* support cut/copy markdown, paste between rich/raw editor

* fix copy paste

* wip - paste/select bug fixing

* fixed known slate issues

* split plugins

* fix editor toggles

* force text cursor in code widget

* wip - reorg plugins

* finish markdown control reorg

* configure plugin types

* quote block adjacent handling with tests

* wip

* finish quote logic and tests

* fix copy paste plugin migration regressions

* fix force insert before node

* fix trailing insertion point

* remove empty headers

* codemirror working properly in markdown widget

* return focus to codemirror on lang select enter

* fix state issues for widgets with local state

* wip - vim working, just need to work out distribution

* add settings pane

* wip - default modes

* fix deps

* add programming language data

* implement linguist langs in code widget

* everything built in

* remove old registration code, fix focus styling

* fix/update linting setup

* fix js lint errors

* remove stylelint from format script

* fix remaining linting errors

* fix reducer test failures

* chore: update commitlint for worktree support

* chore: fix remaining tests

* chore: drop unused monaco plugin

* chore: remove extraneous global styles rendering

* chore: fix failing tests

* fix: tests

* fix: quote/list nesting (tests still broken)

* fix: update quote tests

* chore: bring back code widget test config

* fix: autofocus

* fix: code blocks without the code widget

* fix: code editor component state issues

* fix: error

* fix: add code block test, few fixes

* chore: remove notes

* fix: [wip] update stateful shortcodes on undo/redo

* fix: support code styled links, handle unknown langs

* fix: few fixes

* fix: autofocus on insert, focus on all clicks

* fix: linting

* fix: autofocus

* fix: update code block fixture

* fix: remove unused cypress snapshot plugin

* fix: drop node 8 test, add node 12

* fix: use lodash.flatten instead of Array.flat

* fix: remove console logs
2019-12-16 19:17:37 +02:00
renovate[bot]
c31efe190a chore(deps): update dependency http-server to ^0.12.0 (#2941) 2019-12-02 11:14:35 +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
renovate[bot]
5636f5f54c chore(deps): update dependency babel-plugin-transform-define to v1.3.2 (#2814) 2019-10-28 10:32:02 +02:00
renovate[bot]
0d150e3175 chore(deps): update dependency cross-env to v6 (#2769) 2019-10-27 09:37:20 +02:00
Erez Rokah
38cbe6e9bb
chore: add commitlint (#2803) 2019-10-27 09:32:34 +02:00
renovate[bot]
2aae75cf52 chore(deps): update dependency nock to v11 (#2770) 2019-10-24 08:58:16 +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
renovate[bot]
a98e6dee65 chore(deps): update dependency rimraf to v3 (#2771) 2019-10-22 10:54:18 -04:00
Shawn Erquhart
5dc7ee2a9c
fix: swap out svg plugin causing node 12 failures (#2710) 2019-09-30 11:52:26 -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
Erez Rokah
8fe72d0686 chore(scripts): espace commands arguments that use a glob matching pattern (#2435) 2019-07-18 16:59:31 -04:00
renovate[bot]
5fd4a30f7b chore(deps): update dependency css-loader to v3 (#2410) 2019-06-26 14:56:15 -04:00
renovate[bot]
aded9d7c24 chore(deps): update dependency prettier to v1.18.2 (#2407) 2019-06-26 14:28:00 -04:00
Shawn Erquhart
321ca9b0ed
test(backend-gitlab): cover gitlab backend integration (#1968) 2019-06-26 11:51:35 -04:00
Shawn Erquhart
3bf25e3dfb chore: move off of temporary lerna fork 2019-06-14 12:03:51 -04:00
Tony Alves
575d142f46 fix: bump babel-plugin-inline-svg (#2359)
Closes #2345
2019-06-07 15:31:32 -04:00
renovate[bot]
91702c2ae7 chore(deps): update dependency prettier to v1.17.1 (#2353) 2019-06-04 14:05:45 -04:00
renovate[bot]
a1eaf3e48a chore(deps): update dependency react-testing-library to v7 (#2322) 2019-05-09 16:04:43 -04:00
renovate[bot]
9e624cfaa3 chore(deps): update dependency dom-testing-library to v4 (#2321) 2019-05-09 15:44:25 -04:00
renovate[bot]
c7390956d0 chore(deps): update dependency prettier to v1.17.0 (#2287) 2019-05-09 12:38:29 -04:00
Shawn Erquhart
351db33b22 chore: fix copy task 2019-03-28 17:05:51 -04:00
Shawn Erquhart
166141102b chore: split ci test scripts 2019-03-28 16:09:28 -04:00