Skip to content

feat: exposes custom order for tabs and custom path for edit views #12288

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jessrynkar
Copy link
Member

@jessrynkar jessrynkar commented May 1, 2025

What?

  • Adds ability to customize the order of both default and custom tabs.
  • Allows overriding the path of default edit views (previously the path option was only effective for custom tabs).

Why?

This change gives users more flexibility in customizing the edit document view. They can now:

  • Reorder tabs freely, including the ability to make custom tabs appear before default ones.
  • Set a custom path for any edit view, which includes overwriting the default path (i.e. can set any view as /:id).

How?

  • Introduces a new order option under views.edit[key].tab to control tab ordering.
  • Configured views.edit[key].path to override the path of default views (not just create paths for custom tabs, as before).

Testing

Test suite added under admin/custom-views-tabs

TODO

  • Add docs
  • Add tests

@tan-ahmed
Copy link

wow this is exactly what I was looking for!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants