discourse/app/assets/javascripts/admin/addon/templates
Martin Brennan aef3f17b56
DEV: A different approach to breadcrumbs (#27365)
Really fully authored by Jarek, I only made the PR :)

The `DBreadcrumbItem` and `DBreadcrumbContainer` components
introduced in 1239178f49 have
some limitations, mainly that the container has no awareness of
its items, so nothing that requires positional knowledge can
be used. This is needed to use `aria-current` on the last breadcrumb
item, see https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/examples/breadcrumb/.

We change `DBreadcrumbItem` to always be a link, removing
the need for `LinkTo`. Then, we introduce a service to keep
track of containers and items (since all items are rendered into
all containers) and make the item itself responsible for registering
to the service, and introduce the needed `aria-current` behaviour.

---------

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2024-06-07 11:31:46 +10:00
..
admin-badges DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
flags-index.hbs . FEATURE: admin can disable flags (#27171) 2024-05-29 14:39:58 +10:00
logs DEV: Use class attribute instead of @class arg (#24804) 2023-12-12 13:09:05 +01:00
admin-badges.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
admin.hbs FEATURE: direct link to components for admin sidebar (#26644) 2024-04-17 11:45:59 +10:00
api-keys-index.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
api-keys-new.hbs FIX: replaces data-tooltip usage by <DTooltip /> (#24062) 2023-10-23 21:09:02 +02:00
api-keys-show.hbs FIX: replaces data-tooltip usage by <DTooltip /> (#24062) 2023-10-23 21:09:02 +02:00
api.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
backups-index.hbs EXPERIMENTAL: restructure admin sidebar menu (#26047) 2024-03-13 10:18:08 +11:00
backups-logs.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
backups.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
config-about.hbs DEV: Remove admin-revamp and introduce foundations for admin config (#27293) 2024-06-03 10:18:14 +03:00
config-flags-index.hbs FEATURE: admin can disable flags (#27171) 2024-05-29 14:39:58 +10:00
customize-colors-index.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-colors-show.hbs FIX: Broken link to theme in customize colors page (#27069) 2024-05-17 15:04:12 -06:00
customize-colors.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-email-style-edit.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-email-style.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-templates-edit.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-email-templates.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
customize-form-templates-edit.hbs DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
customize-form-templates-index.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-form-templates-new.hbs DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
customize-robots-txt.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-themes-edit.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
customize-themes-index.hbs A11Y: UI emoji are decorative, use alt="" (#23690) 2023-09-28 13:30:19 -04:00
customize-themes-show-schema.hbs UX: adjust objects editor styles for full page layout (#26265) 2024-03-20 15:55:52 -04:00
customize-themes-show.hbs FEATURE: add language picker for theme translations in admin UI (#26150) 2024-03-18 12:00:28 -04:00
customize-themes.hbs DEV: add PluginOutlet around the Customize > Themes tab (#24280) 2023-11-07 16:48:30 -05:00
customize.hbs FEATURE: direct link to components for admin sidebar (#26644) 2024-04-17 11:45:59 +10:00
dashboard_general.hbs DEV: Replace period mixin with a component (#25292) 2024-01-18 13:06:42 +01:00
dashboard_moderation.hbs DEV: Replace period mixin with a component (#25292) 2024-01-18 13:06:42 +01:00
dashboard_reports.hbs FEATURE: separate admin page for whats new and reports (#26216) 2024-03-20 14:23:18 +11:00
dashboard_security.hbs DEV: Replace period mixin with a component (#25292) 2024-01-18 13:06:42 +01:00
dashboard-new-features.hbs FEATURE: dedicated admin section for new features (#24292) 2023-11-20 09:59:04 +11:00
dashboard.hbs UX: add gift emoji styling for new features (#24523) 2023-11-27 09:32:28 +11:00
email-advanced-test.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-bounced.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-index.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
email-preview-digest.hbs SECURITY: Correctly escape 'text' email preview 2023-10-16 10:34:34 -04:00
email-received.hbs DEV: Add extra whitespace to tidy up prettified templates 2022-12-28 13:11:12 +00:00
email-rejected.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email-sent.hbs FEAT: add cc addresses and post_id to sent email logs (#25014) 2024-01-03 09:27:25 +08:00
email-skipped.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
email.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
embedding.hbs FEATURE: Extend embeddable hosts with Individual tags and author assignments (#26868) 2024-05-16 15:47:01 -04:00
emojis.hbs EXPERIMENTAL: restructure admin sidebar menu (#26047) 2024-03-13 10:18:08 +11:00
logs.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
permalinks.hbs FEATURE: Permalinks for users (#25552) 2024-02-05 17:31:31 +01:00
plugins-index.hbs DEV: A different approach to breadcrumbs (#27365) 2024-06-07 11:31:46 +10:00
plugins-show-settings.hbs DEV: A different approach to breadcrumbs (#27365) 2024-06-07 11:31:46 +10:00
plugins-show.hbs DEV: Single admin plugin page for consistent admin plugin UX (#26024) 2024-03-13 13:15:12 +10:00
plugins.hbs FEATURE: More flexible admin plugin config nav definition (#26254) 2024-03-21 13:42:06 +10:00
reports-index.hbs FEATURE: separate admin page for whats new and reports (#26216) 2024-03-20 14:23:18 +11:00
reports-show.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
search-logs-index.hbs DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
search-logs-term.hbs DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
site-settings-category.hbs DEV: Introduce {{body-class}}, soft-deprecate <DSection /> (#23479) 2023-09-11 13:44:52 +02:00
site-settings.hbs FEATURE: Allow site settings to be edited throughout admin UI (#26154) 2024-03-18 08:50:39 +10:00
site-text-edit.hbs DEV: Update ExpandingTextArea component (#25890) 2024-03-01 17:20:15 +01:00
site-text-index.hbs UX: clean up some label and form inconsistencies, reduce excess bolding (#25701) 2024-02-15 11:27:51 -05:00
site-text.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
user-badges.hbs DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
user-fields.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
user-index.hbs DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
user-tl3-requirements.hbs FIX: Visits for TL3 actually means "Posts Read: unique days" (#25468) 2024-02-07 07:46:42 +11:00
user.hbs DEV: Introduce {{body-class}}, soft-deprecate <DSection /> (#23479) 2023-09-11 13:44:52 +02:00
users-list-show.hbs PERF: eliminate some slow CSS selectors (#25392) 2024-01-26 13:10:45 -05:00
users-list.hbs FIX: Restore support for custom NavItem class (#24113) 2023-10-26 18:26:36 +02:00
watched-words-action.hbs DEV: Update DButton uses (#23333) 2023-08-31 11:49:35 +02:00
watched-words.hbs DEV: Use class attribute instead of @class arg (#24804) 2023-12-12 13:09:05 +01:00
web-hooks-edit.hbs DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
web-hooks-index.hbs UX: Wait for render before invoking A11YDialog (#24100) 2023-10-26 08:24:47 -04:00
web-hooks-show.hbs UX: Wait for render before invoking A11YDialog (#24100) 2023-10-26 08:24:47 -04:00
web-hooks.hbs DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
whats-new.hbs FEATURE: separate admin page for whats new and reports (#26216) 2024-03-20 14:23:18 +11:00