discourse/app
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
..
assets DEV: A different approach to breadcrumbs (#27365) 2024-06-07 11:31:46 +10:00
controllers FIX: User can't reset password with backup codes when only security key is enabled (#27368) 2024-06-06 14:30:42 +08:00
helpers DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
jobs DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
mailers FIX: correctly compute the window for email summaries 2024-05-27 22:33:51 +02:00
models FEATURE: the ability to change the order of flags (#27269) 2024-06-05 13:27:06 +10:00
serializers FEATURE: the ability to change the order of flags (#27269) 2024-06-05 13:27:06 +10:00
services DEV: Avoid unique validation in UserPasswordExpirer.expire_user_password (#27343) 2024-06-05 15:22:40 +08:00
views FIX: send activity summaries based on "last seen" (#27035) 2024-05-22 10:23:03 +02:00