DEV: Add more structure for admin plugin config nav (#26707)

* Simplify config nav link generation to always inject the Settings
  tab
* Auto-redirect to the first non-settings config link (if there is one)
  when the user lands on /admin/plugins/:plugin_id
* Add `extras` to admin plugin serializer so plugins can add more
  data on first load
* Add PikadayCalendar page object for system specs, extracted from the
CalendarDateTimePicker to make it more generic.
This commit is contained in:
Martin Brennan
2024-05-02 11:36:46 +10:00
committed by GitHub
parent 1e02355fdf
commit 914f93b896
11 changed files with 221 additions and 70 deletions

View File

@ -68,7 +68,7 @@ class AdminPluginSerializer < ApplicationSerializer
ret = route.slice(:location, :label)
if route[:use_new_show_route]
ret[:full_location] = "adminPlugins.show.#{ret[:location]}"
ret[:full_location] = "adminPlugins.show"
ret[:use_new_show_route] = true
else
ret[:full_location] = "adminPlugins.#{ret[:location]}"