Skip to content

fix(editor): add "link to page" as first link action in Text menubar#2351

Merged
max-nextcloud merged 2 commits intomainfrom
fix/link_menu_link_page
Mar 21, 2026
Merged

fix(editor): add "link to page" as first link action in Text menubar#2351
max-nextcloud merged 2 commits intomainfrom
fix/link_menu_link_page

Conversation

@mejo-
Copy link
Copy Markdown
Member

@mejo- mejo- commented Mar 18, 2026

Fixes: #2332

Requires nextcloud/text#8368

Opens the smart picker with "collective page" provider preselected.

🖼️ Screenshots

🏚️ Before 🏡 After
image image

🚧 TODO

  • Playwright Test

🏁 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

@mejo- mejo- self-assigned this Mar 18, 2026
@mejo-
Copy link
Copy Markdown
Member Author

mejo- commented Mar 18, 2026

@marcoambrosini do you have suggestions for a better icon? The icon I chose is the one we use for pages in Collectives everywhere so far.

I wonder whether we should change the "Link to file or folder" icon to a folder icon like the files app uses and keep the "Link to page" icon as it is above.

@mejo- mejo- requested a review from marcoambrosini March 18, 2026 22:55
Copy link
Copy Markdown
Member

@marcoambrosini marcoambrosini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, makes sense to have the icon changed to folder here

@max-nextcloud
Copy link
Copy Markdown
Collaborator

I would also suggest we start the link to files file picker at the root directory rather than inside the collective.

mejo- added a commit to nextcloud/text that referenced this pull request Mar 19, 2026
Contributes to nextcloud/collectives#2351

Signed-off-by: Jonas <jonas@freesources.org>
backportbot bot pushed a commit to nextcloud/text that referenced this pull request Mar 19, 2026
fix(link): use folder icon for "Link to file or folder" action

Contributes to nextcloud/collectives#2351

Signed-off-by: Jonas <jonas@freesources.org>

[skip ci]
backportbot bot pushed a commit to nextcloud/text that referenced this pull request Mar 19, 2026
fix(link): use folder icon for "Link to file or folder" action

Contributes to nextcloud/collectives#2351

Signed-off-by: Jonas <jonas@freesources.org>

[skip ci]
mejo- added a commit to nextcloud/text that referenced this pull request Mar 19, 2026
Contributes to nextcloud/collectives#2351

Signed-off-by: Jonas <jonas@freesources.org>
backportbot bot pushed a commit to nextcloud/text that referenced this pull request Mar 19, 2026
Contributes to nextcloud/collectives#2351

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- force-pushed the fix/link_menu_link_page branch from f84f35f to 4a05ca1 Compare March 21, 2026 15:18
Fixes: #2332

Requires nextcloud/text#8368

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- force-pushed the fix/link_menu_link_page branch from 4a05ca1 to 9908134 Compare March 21, 2026 15:21
@max-nextcloud
Copy link
Copy Markdown
Collaborator

max-nextcloud commented Mar 21, 2026

Interesting... psalm failure seems to be deterministic - however I cannot reproduce it locally - neither on this nor the main branch.

After updating my ocp locally I could reproduce the failure.
The getData function was added recently

I'll push an update to the phpstubs.

@max-nextcloud max-nextcloud merged commit c93158c into main Mar 21, 2026
58 of 61 checks passed
@max-nextcloud max-nextcloud deleted the fix/link_menu_link_page branch March 21, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make "link to page" the first action in Text menubar linking submenu

3 participants