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

Migrate to Text editor API #936

Merged
merged 40 commits into from
Nov 8, 2023
Merged

Migrate to Text editor API #936

merged 40 commits into from
Nov 8, 2023

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Oct 10, 2023

📝 Summary

Use the new editor API from Text app if available.

Additionally this PR includes smaller additional fixes and refactoring (printing related, cypress tests, outline related)

Requirements:

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation is not required

@mejo- mejo- added enhancement New feature or request 2. developing labels Oct 10, 2023
@cypress
Copy link

cypress bot commented Oct 10, 2023

2 failed and 1 flaky tests on run #1255 ↗︎

2 251 0 0 Flakiness 1

Details:

Migrate to Text editor API
Project: Collectives Commit: 3fac0ad883
Status: Failed Duration: 10:06 💡
Started: Nov 8, 2023 1:24 PM Ended: Nov 8, 2023 1:34 PM
Failed  cypress/e2e/page-list.spec.js • 1 failed test • Nextcloud stable25

View
Output

Test Artifacts
Page list > Page trash > allows to trash and restore page with subpage and attachment Screenshots
Failed  cypress/e2e/page-list.spec.js • 1 failed test • Nextcloud master

View
Output

Test Artifacts
Page list > Page trash > allows to trash and restore page with subpage and attachment Screenshots
Flakiness  cypress/e2e/page-details.spec.js • 1 flaky test • Nextcloud stable27

View
Output

Test Artifacts
Page details > Display table of contents > Allows to display/close TOC and switch page modes in between Screenshots

Review all test suite changes for PR #936 ↗︎

@mejo- mejo- force-pushed the enh/editor-api branch 3 times, most recently from c99814f to d206911 Compare October 11, 2023 23:13
@mejo- mejo- force-pushed the enh/editor-api branch 7 times, most recently from 765f4c2 to 7736a35 Compare November 1, 2023 15:59
@mejo- mejo- force-pushed the enh/editor-api branch 11 times, most recently from b011603 to 004f480 Compare November 7, 2023 13:41
@mejo- mejo- requested a review from juliusknorr November 7, 2023 14:01
mejo- added 4 commits November 8, 2023 10:34
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <[email protected]>
This allows us to publish a Collectives release that uses the editor API
while people still run Nextcloud server releases that don't have the
latest editor API improvements that we require. If the version is unset
or below '1.0', we'll simply not use the editor API.

Signed-off-by: Jonas <[email protected]>
This code doesn work anymore and it's not needed anymore either.

Signed-off-by: Jonas <[email protected]>
Required for attachments to work in reader.

Signed-off-by: Jonas <[email protected]>
mejo- added 15 commits November 8, 2023 12:32
Also fix some further issues with version view along the way:
* Show emoji and fix alignment of page title in version view
* Mark selected version as active in sidebar version list

Signed-off-by: Jonas <[email protected]>
* Wait minimum 3 seconds for images to be loaded.
* Don't open the print dialog a second time when opening it after the
  timeout.

Signed-off-by: Jonas <[email protected]>
@mejo- mejo- merged commit b589174 into main Nov 8, 2023
50 of 57 checks passed
@delete-merged-branch delete-merged-branch bot deleted the enh/editor-api branch November 8, 2023 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review enhancement New feature or request
Projects
None yet
2 participants