Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save edit form as draft using localStorage #4252

Open
wants to merge 71 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
de02d2d
Checkpoint
tiberiuichim Jan 10, 2023
aa9fbb7
Checkpoint
tiberiuichim Jan 10, 2023
4ad4b42
Use localStorage
tiberiuichim Jan 11, 2023
c5d1152
Merge remote-tracking branch 'origin/master' into draft_save
tiberiuichim Jan 11, 2023
a622d7f
Checkpoint
tiberiuichim Jan 11, 2023
4c93dab
Checkpoint
tiberiuichim Jan 11, 2023
6a0239d
Merge branch 'master' into draft_save
tiberiuichim Jan 11, 2023
4c0ff4d
Move hoc to helpers
tiberiuichim Jan 11, 2023
4fd716a
Allow any form to be saved
tiberiuichim Jan 12, 2023
5db5798
Simplify
tiberiuichim Jan 12, 2023
bdd7a64
Don't lose data that's outside schema
tiberiuichim Jan 12, 2023
142146c
Simplify
tiberiuichim Jan 12, 2023
ca0fe2e
Simplify
tiberiuichim Jan 12, 2023
4dfe4de
Simplify
tiberiuichim Jan 12, 2023
ddecddd
Merge branch 'master' into draft_save
avoinea Jun 7, 2023
48291b9
Merge branch 'master' of https://github.com/plone/volto into draft_save
Jun 12, 2023
e44e0a3
Merge branch 'master' into draft_save
avoinea Jun 16, 2023
af4ead9
Merge branch 'master' of https://github.com/plone/volto into draft_save
Jun 21, 2023
fb79e54
Merge branch 'draft_save' of https://github.com/plone/volto into draf…
Jun 21, 2023
7994949
feat: check for stale data, intl messages, fix double mount bug, hand…
Jun 28, 2023
c9e3032
merge master
Jun 29, 2023
8244b32
chore: helper index add usePrevious
Jun 29, 2023
0bd277c
fix: force click blocks-grid
Jun 29, 2023
4853753
chore: remove old saveAsDraft file
Jul 4, 2023
ace8963
chore: fix comments
Jul 5, 2023
1190514
chore: add cypress test for autosave
Jul 5, 2023
8bbd511
chore: add docs user manual
Jul 6, 2023
cd50390
chore: i18n
Jul 6, 2023
12c0edc
Update docs/source/user-manual/autosave.md
Jul 18, 2023
d4e2a59
Update docs/source/user-manual/autosave.md
Jul 18, 2023
920904c
Update docs/source/user-manual/autosave.md
Jul 18, 2023
7eae3e2
Update docs/source/user-manual/autosave.md
Jul 18, 2023
bd034e5
Update docs/source/user-manual/autosave.md
Jul 18, 2023
13073fe
Update docs/source/user-manual/autosave.md
Jul 18, 2023
93fcf16
Update docs/source/user-manual/autosave.md
Jul 18, 2023
4487691
Update docs/source/user-manual/autosave.md
Jul 18, 2023
f4f3e27
Update docs/source/user-manual/autosave.md
Jul 18, 2023
fb766a4
Update docs/source/user-manual/autosave.md
Jul 18, 2023
1fa4956
Update docs/source/user-manual/autosave.md
Jul 18, 2023
3367322
Update docs/source/user-manual/autosave.md
Jul 18, 2023
ce4a9b0
Update docs/source/user-manual/autosave.md
Jul 18, 2023
04304e7
Update docs/source/user-manual/autosave.md
Jul 18, 2023
461212b
Update docs/source/user-manual/autosave.md
Jul 18, 2023
026dc07
Update docs/source/user-manual/autosave.md
Jul 18, 2023
36dbe08
Update docs/source/user-manual/autosave.md
Jul 18, 2023
cde5090
Update docs/source/user-manual/autosave.md
Jul 19, 2023
26adfb3
Update docs/source/user-manual/autosave.md
Jul 19, 2023
874d764
chore: add an entry to docs/source/user-manual/index.md for autosave
Jul 19, 2023
886e9b8
chore: merge master
Jul 24, 2023
dee32a3
chore: fix cypress
Jul 26, 2023
d25c43d
chore: remove waitForResourceToLoad from tests
Jul 26, 2023
4067a3e
chore: autosave cypress delay
Aug 1, 2023
1dea385
chore: merge develop
Aug 2, 2023
2eca0bc
Merge branch 'master' into draft_save
sneridagh Sep 14, 2023
5879990
Update src/helpers/Utils/withSaveAsDraft.js
Sep 14, 2023
4752ef0
Update src/helpers/Utils/withSaveAsDraft.js
Sep 14, 2023
1ce23be
Update src/helpers/Utils/withSaveAsDraft.js
Sep 14, 2023
f5824e4
Update src/helpers/Utils/withSaveAsDraft.js
Sep 14, 2023
1db3c45
Update src/helpers/Utils/withSaveAsDraft.js
Sep 14, 2023
aa676b5
Update src/helpers/Utils/withSaveAsDraft.js
Sep 14, 2023
8e25395
Merge branch 'master' into draft_save
avoinea Sep 14, 2023
18dcdce
Fix tests, run i18n
sneridagh Sep 15, 2023
e9d4c3b
Merge branch 'master' into draft_save
sneridagh Sep 15, 2023
d6e39d1
merge master
Sep 26, 2023
5c22535
fix: eslint
Sep 26, 2023
c10520a
Merge branch 'master' of https://github.com/plone/volto into draft_save
Sep 26, 2023
eb842a8
Merge branch 'master' of https://github.com/plone/volto into draft_save
Sep 26, 2023
1b6ad37
Replace "load" with "restore".
stevepiercy Sep 27, 2023
8f269a6
Merge branch 'master' into draft_save
stevepiercy Sep 27, 2023
531d5d8
Attempt to clean up i18n errors in CI.
stevepiercy Sep 27, 2023
4b972da
Merge remote-tracking branch 'origin' main into draft_save
ichim-david Mar 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: remove waitForResourceToLoad from tests
ALEXANDRU MEDESAN committed Jul 26, 2023
commit d25c43d522cdd369a2303d1efdef6a998da5974f
10 changes: 0 additions & 10 deletions cypress/tests/core/basic/autosave.js
Original file line number Diff line number Diff line change
@@ -25,24 +25,14 @@ describe('createContent Tests', () => {

it('As editor I can autosave when editing a content item', () => {
cy.visit('/my-first-page');
cy.waitForResourceToLoad('@navigation');
cy.waitForResourceToLoad('@breadcrumbs');
cy.waitForResourceToLoad('@actions');
cy.waitForResourceToLoad('@types');

cy.log('adding a text block on the first page');

cy.waitForResourceToLoad('my-first-page');
cy.navigate('/my-first-page/edit');
cy.getSlateEditorAndType('My first text').contains('My first text');
cy.wait(1000);

cy.visit('/my-second-page');
cy.waitForResourceToLoad('@navigation');
cy.waitForResourceToLoad('@breadcrumbs');
cy.waitForResourceToLoad('@actions');
cy.waitForResourceToLoad('@types');
cy.waitForResourceToLoad('my-second-page');

cy.log('adding a text block on the second page');
cy.navigate('/my-second-page/edit');