Skip to content

fix(components): popovers are disclosures or dialogs, and a closed Accordion panel is hidden - #302

Open
sydevs-bot wants to merge 14 commits into
mainfrom
claude/fix-popover-roles-and-accordion
Open

sydevs-bot wants to merge 14 commits into
mainfrom
claude/fix-popover-roles-and-accordion

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Visitors using a screen reader: the footer language picker is announced as a button that expands a list of links, not as a menu that expects arrow keys. The "Embed" popover is announced as a dialog, named by its own heading. Tab moves through both panels.
  • Visitors on a touch screen: each language row is now 44px tall (it was 40px), because the picker uses the DropdownItem atom. The current language carries aria-current="page".
  • Accordion (FAQ) blocks: each open panel is a region named by its own question. A closed panel is fully hidden, so its links no longer take a tab stop nobody can see. Long answers are no longer cut off at 1000px. The question's heading level follows the block's outline: h3 under a block title, h2 when there is none.
  • Meditation player tooltip: the description is on the button itself, so a screen reader reads it when the button gets focus. It used to sit on the wrapper span.
  • Header mega-menu: after a client-side language switch, the two featured articles show the new language's titles instead of the first language's.
  • Developers: Dropdown now defaults to role="disclosure", and 'menu' is gone from DropdownRole. The atom has no arrow-key navigation, so the menu role promised something it could not do. Accordion takes a new headingLevel prop. Two new test helpers: tests/_helpers/axe.ts owns the axe rule set that both the page gate and a component fragment run, and tests/_helpers/popover.ts opens a popover through its trigger's aria-controls.

Preview

  • /meditations/142 — open Embed. It is now a dialog named by its own heading, and Tab moves through its fields. The footer Languages trigger has aria-expanded and no aria-haspopup. Each row is 44px tall, and the current language carries aria-current="page".
  • /classes-near-me — an FAQ accordion on a real page, three items under h2 buttons. A closed panel is hidden, so its links take no tab stop, and an open panel is a region named by its question.
  • Accordion story — single and multiple open (allowMultiple, two items open by default); closing one leaves the others open.
  • LanguageDropdown story — the picker as a <ul> of DropdownItem rows, with every language listed and with the current language set to en, es and fr, which the preview site does not offer yet.

Findings addressed

  • F8b: Dropdown claimed to be a menu. On main, components/atoms/Dropdown/Dropdown.tsx:35,180 gave every panel role="menu". That covered the link list in LanguageDropdown and the text, textarea and button in EmbedButton, and neither one is a menu. axe reports aria-required-children on main's open panel. Now the default is the APG disclosure pattern: the trigger gets aria-expanded, plus aria-controls while open, and no aria-haspopup. The panel gets no role. EmbedButton passes role="dialog" and names the dialog with its visible heading. LanguageDropdown renders a <ul> of DropdownItem (size sm), replacing the hand-rolled rows at LanguageDropdown.tsx:75-90 on main. The trigger contract from feat(components): skip link, nav names, page titles and an axe gate #278 in docs/rules/design-system.md is unchanged, and the Dropdown section there is updated.
    • Measured in Chromium through Ladle: language rows are 40px before and 44px after. The trigger has no aria-haspopup, Tab reaches the first link, and the embed dialog is named Embed “Morning Meditation”.
    • Tests: components/atoms/Dropdown/Dropdown.interaction.test.tsx, components/molecules/LanguageDropdown/LanguageDropdown.interaction.test.tsx and components/molecules/EmbedButton/EmbedButton.interaction.test.tsx cover roles, aria-controls resolution, the dialog name and aria-current, plus an axe run over the open panel. They fail against main's sources. Dropdown.test.tsx (SSR) asserts the default trigger has no aria-haspopup. The gate's "keeps the Dropdown atom on the path" check in tests/a11y/page-types.test.tsx now asserts the footer trigger is a disclosure.
  • F8h: Accordion, following fix(components): live pages outside the axe gate's fixtures still fail it #289. On main, components/molecules/Accordion/Accordion.tsx:135 labelled each panel by accordion-header-<id>, an id no element carried. :99 wrapped the list in an unnamed role="region". :137 hid a closed panel with max-h-0 opacity-0 only, which left it in the tab order and clipped long content at 1000px. :85 called onToggle inside the state updater. The button now carries the id. The wrapper's role is dropped. A closed panel is hidden, and the max-height clip and its transition are gone. onToggle runs once per click, outside the updater. The Enter/Space keydown handler at :113 is gone, because native button activation toggles once per key; in a browser, Enter opened, Space closed, and scrollY stayed 0. LayoutBlock.tsx changes on two lines: it passes its computed itemHeadingLevel to Accordion, and its accordion <section> now carries the FAQ column width the molecule used to set on itself.
    • Review follow-up: in single mode, closing an item closes only that item. It no longer also closes the other items defaultOpenItems had opened.
    • Tests: components/molecules/Accordion/Accordion.test.tsx (jsdom, 9 tests) covers the named region, one region for two accordions with a clean axe run, the hidden closed panel and its unreachable link, no max-h- class, single and multiple open, closing only the clicked item, two toggles batched into one task, one onToggle per click under StrictMode, and the heading level. 8 of them fail on main or on an earlier head of this branch. tests/a11y/fixtures.ts adds an untitled and a titled accordion to the article fixture. With the old Accordion, the gate reports heading-order, landmark-unique and aria-valid-attr-value.
  • F8m: Tooltip. On main, components/atoms/Tooltip/Tooltip.tsx:82 spread useRole's aria-describedby onto the wrapper <span>. That is the opposite of the rule FormField.tsx:106-107 states. The description is now cloned onto the single element child and merged with any aria-describedby it already has. A child that is not a single element gets no description, and a shortcut: comment marks that limit. MeditationPlayer is untouched.
    • Test: components/atoms/Tooltip/Tooltip.interaction.test.tsx. After focus, the button is described by the tooltip, no other element carries the attribute, and an existing description is kept. Both tests fail on main.
  • F8k: useSiteNav. On main, layouts/useSiteNav.ts:40 drew the featured-article picks once with a useState initializer. Vike keeps the layout mounted through a client-side navigation, so a locale switch kept the first locale's titles. The picks are now keyed on the source lists' contents, using React's adjust-state-during-render pattern. A locale switch re-rolls them, and a same-locale navigation (equal lists in new objects) keeps them.
    • Test: layouts/useSiteNav.test.ts (jsdom, renderHook). The retitled-lists case fails on main, and the equal-lists case pins that the picks stay put, with Math.random mocked.
  • F12a (for these): there are now jsdom interaction tests for Dropdown, Accordion, LanguageDropdown, EmbedButton, Tooltip and useSiteNav.

Review follow-ups also applied:

  • The Dropdown story's Ladle description no longer calls the atom a keyboard menu. The story's example headings ("User Menu", "Action Menu") are unchanged, since they are demo content.
  • The axe tag list and the options builder live once, in tests/_helpers/axe.ts, and the page gate imports them. The ⚠ pointer each file carried is gone with the duplication it guarded.
  • openPanel in tests/_helpers/popover.ts replaces the click-then-resolve-aria-controls dance that three specs each spelled out.
  • Accordion names each item's header and panel id once, rather than spelling each of the two twice across the id, aria-controls and aria-labelledby that wire them.
  • The gate comment now calls the footer control a language picker.
  • The useSiteNav spec's mock comment now reads true both before and after feat(components): add a mobile menu, and make the compact bar the phone's header #283.
  • Accordion's open set reduces from the updater's prev. Two header clicks landing in one task each built it from the same render closure, and the second overwrote the first, so one of the two opens was lost. isOpening stays on the render closure, which is what keeps onToggle to one call per click.
  • The FAQ column width (mx-auto sm:max-w-3xl) moves from Accordion to LayoutBlock's accordion <section>. The molecule no longer centres itself or decides how wide an FAQ reads, and the block's h2 now shares that column instead of spanning the wider rich-text one. max-w-full is dropped with the move: that <section> already fills the column below sm.

Not in this PR

  • Portalled panel outside its landmark. Dropdown portals its panel to the end of <body>, so the open footer language panel sits outside the contentinfo landmark. axe's best-practice region rule flags it, and it flagged the old role="menu" panel the same way. A dialog panel is exempt. Fixing this means changing the portal or positioning strategy for every Dropdown consumer. The fragment helper turns region off and says why. The page gate still runs region over every page, where panels are closed.
  • Floating UI focus guards under jsdom. jsdom's navigator.vendor sends Floating UI down its Safari branch, which gives each focus guard an unnamed role="button". The helper excludes [data-floating-ui-focus-guard] because this is library markup. I have not checked what axe says about these guards in real Chrome.
  • fix(components): live pages outside the axe gate's fixtures still fail it #289 part 5 (gate targets for Playlist and AudioPlayer) belongs to the audio bundle. This PR covers only the Accordion part, through the article fixture, and leaves TARGETS untouched.
  • New strings: none. No translation keys are added, and no visible literals.
  • Nothing under .claude/ changes.

Reconciled with open PRs

git merge-tree of this head against each branch below is conflict-free, except #293 as noted. Re-checked against the merge below.

Test results

origin/main is merged in at fb8a744, resolving one conflict hunk in tests/a11y/page-types.test.tsx left by #311, so the gate below ran on the merged result.

Lean gate (.claude/skills/pr-prep/check.sh) on the final head:

🤖 Generated with Claude Code

https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw

The atom defaulted to `role="menu"`, and both production callers took the
default: the footer's language picker (a list of links) and EmbedButton
(a snippet, a textarea and a button). A `menu` promises arrow-key
navigation between `menuitem`s that the atom never implemented, and axe
reports an open one holding links as `aria-required-children`.

The default is now `disclosure`, the APG pattern for a list of links: the
trigger carries `aria-expanded` and, while open, `aria-controls`; it names
no popup and the panel takes no role. `useRole` has no disclosure, so it
is disabled for it and the atom writes those two attributes itself. In
focus mode the caller's own control states its expansion, so the wrapper
adds nothing. `menu` leaves the union.

EmbedButton passes `role="dialog"`, named by the heading it already shows.
LanguageDropdown renders its options as a list of `DropdownItem`s, the
atom's first production consumer, at the `sm` size, which brings each row
to 44px (it was 40). The option for the page being read carries
`aria-current="page"`, which the check mark only told a sighted reader.

Open-state tests run axe over each panel through a new fragment helper,
`tests/_helpers/axe.ts`. The gate's own check that its home target still
walks a Dropdown now looks for the disclosure trigger.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
Four defects from #289's Accordion section, each now failing the axe gate
or the new spec when reverted.

- The panel's `aria-labelledby` pointed at `accordion-header-<id>`, which
  nothing rendered. The header's `<button>` now carries that id, so every
  open panel's region is named by its header.
- The outer wrapper carried an unnamed `role="region"`. Two accordions on
  one page were two identical landmarks (axe `landmark-unique`). The role
  is dropped rather than given an invented name.
- A closed panel was only `max-h-0 opacity-0`, so its text stayed in the
  accessibility tree and a link inside it kept a tab stop. It is `hidden`
  now, which also removes the `max-h-[1000px]` clip on a long open panel.
- Every item title was an `h3`. The accordion takes `headingLevel`, and
  LayoutBlock passes the level it already computes for its other styles,
  so an accordion with no section title starts at `h2`.

`onToggle` ran inside the state updater, which React may call twice; it
now runs once per click. The Enter/Space handler is gone: the header is
a native `<button>`, and a real browser toggles it once per key without
it (checked in Ladle).

The gate's article fixture gains two `layout` accordions, one untitled
before any `h2` and one titled. Against the old component it reports
`heading-order`, `landmark-unique` and the dangling `aria-labelledby`;
with the old LayoutBlock alone it reports `heading-order`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
`useRole({ role: 'tooltip' })` writes `aria-describedby` on the reference,
and the reference is the inline wrapper the atom draws for positioning
and for hover and focus. A screen reader announces the control inside it,
so the description was never read with the button it describes.

The wrapper keeps the ref and the handlers; the attribute moves to the
child, merged with any description the control already names, the way
FormField puts its own. A child that is not a single element keeps no
description, recorded as a `shortcut:`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
…itch

`useSiteNav` picked the two featured articles in a `useState`
initializer. Vike keeps the layout mounted through a client-side
navigation and hands it fresh `settings`, so after a switch to French the
mega-menu kept showing the English titles until a full reload.

The picks are now keyed on what the two source lists hold. A locale
switch retitles the pages and re-rolls them; a same-locale navigation
brings equal lists in new objects and keeps them. The change stays in the
`useState` region (the adjust-state-during-render pattern), because #283
rewrites the import block and the lines around `useT()` in this file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
In single mode the toggle started from an empty set whenever it ran, so
closing one item also closed every other item `defaultOpenItems` had
opened. Only opening an item should close the rest; closing now starts
from the current set and removes the one clicked, as main already did
before this branch moved the toggle out of the state updater.

Review follow-ups on the same branch: the Dropdown story's Ladle
description no longer calls the atom a keyboard menu, the gate's `TAGS`
gains the ⚠ pointer back to the fragment helper that mirrors it, the
gate's Dropdown check calls the footer control a language picker, and
the useSiteNav spec's mock comment reads true with or without #283.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-design fb8a744 Commit Preview URL

Branch Preview URL
Nov 24 2026, 01:29 AM

@Ardnived Ardnived left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We are adding a lot of complication with the introduction of all these aria properties. Look for ways to streamline and simplify the code. Is there any library we could rely on to simplify the aria handling?

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 19, 2026
@sydevs-bot

sydevs-bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 01:24Z resolve-conflicts · attempt 1 · session · done
  • 01:24Z resolve-conflicts · attempt 1 · session
  • 17:47Z resolve-conflicts · attempt 1 · session · done
  • 17:47Z resolve-conflicts · attempt 1 · session
  • 02:52Z address-review · attempt 1 · session · done

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 19, 2026
sydevs-bot and others added 3 commits November 19, 2026 22:57
The tag list and the options builder stood in both the page gate and the
fragment helper, kept together by a comment in each. The helper now exports
both, and the gate imports them, so there is nothing left to keep in sync.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXKeBJhaJUExZiCSDL
Three specs each clicked a trigger, read its `aria-controls` and resolved the
id by hand. The dance is the assertion that the reference is real, so it is
worth stating once.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXKeBJhaJUExZiCSDL
The header and panel ids were spelled four times between the `id`,
`aria-controls` and `aria-labelledby` that wire them, so the pairing had to be
read off the template strings.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXKeBJhaJUExZiCSDL

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

1 question for the reviewer, one per thread.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread components/atoms/Dropdown/Dropdown.tsx Resolved
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Look for ways to streamline and simplify the code. Is there any library we could rely on to simplify the aria handling?

Streamlined, in three commits. 5f57052 gives the page gate and the fragment helper one axe rule set, so the ⚠ pointer each carried is gone. 6f022c0 replaces in three specs the click-then-resolve-aria-controls dance with one openPanel helper. dee59ae names each Accordion item's two ids once, not four times.

The library is already here. @floating-ui/react writes the ARIA for the dialog panel and for the tooltip. Two things are left hand-held: the disclosure trigger, which useRole has no role for, and Accordion, which is no floating element. Going further means Radix primitives across every consumer. That is your call, so I have asked it in a thread on Dropdown.tsx and built the answer that leaves this PR as it stands: #302 (comment)

origin/main merged in cleanly, and the lean gate ran on the merged result: 1293 tests, no lint error.
🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-web fb8a744 Commit Preview URL

Branch Preview URL
Nov 24 2026, 01:29 AM

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 21, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 21, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🧐 Adversarial review

This PR is the size of its own title: five named defects, each with a spec that fails without it, and nothing unrelated. On the aggregate you raised — the hand-held ARIA is five lines in Dropdown and four attributes in Accordion. 567 of the 708 added lines are specs, helpers and fixtures, so what reads as a lot of complication is test volume. Dropping role="menu" removes ARIA, and LanguageDropdown trades hand-rolled rows for DropdownItem. No cross-repo contract is touched.

Findings — both from reading Accordion.tsx whole, not from the diff.

  • consider — Accordion.tsx:84: the open set is built from the render closure, not from the updater's prev.
  • consider — Accordion.tsx:97: the molecule caps its own page width, where its one caller owns layout for every other block style.

Second opinion — the Dropdown.tsx:248 question is settled as B, and that thread is resolved.

What was checked

  • Read whole on the branch: Dropdown, Accordion, Tooltip, LanguageDropdown, EmbedButton, useSiteNav, LayoutBlock, both new helpers, the gate and its fixtures.
  • LocationSearch.tsx:254 is the only openOnFocus caller and writes its own aria-autocomplete, aria-expanded and role="listbox", so the !openOnFocus guard holds and main's menu panel was wrapping that listbox.
  • MeditationPlayer.tsx:276 is the only Tooltip caller and passes <Button>, which spreads ComponentProps<'button'> at Button.tsx:287. The cloned aria-describedby reaches the real button, so the spec's bare <button> is not the only shape that works.
  • Ladder: 6 new pieces, 6 kept — DropdownRole, openPanel, and axe.ts's four, now the one owner of the tag list the gate and the fragment specs both read. The streamliner subagent did not return inside the lease, so this walk is mine.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 21, 2026
Two header clicks landing in one task shared a render, so each built the
next open set from the same closure and the second overwrote the first.
The set now reduces from the updater's `prev`.

`isOpening` stays on the render closure, and `onToggle` stays outside the
updater, so one click is still one callback under StrictMode.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVgdgz1Tvf1V1gLzrA
`mx-auto max-w-full sm:max-w-3xl` had the molecule centre itself and decide
how wide an FAQ reads, while its one caller owns layout for every other
layout-block style. The cap moves to that `<section>`, where the block's
heading now shares the column instead of spanning the wider one above it.

`max-w-full` is dropped with the move: a block `<section>` in the rich-text
column already fills it below `sm`.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVgdgz1Tvf1V1gLzrA
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Both critic findings adopted, in f77007e. origin/main merged in at e370a55, cleanly.

  • Accordion.tsx:84 — d7008ca. The open set reduces from the updater's prev. Two clicks in one task both read the same render closure, and the second overwrote the first. A spec pins it: it fails on dee59ae.
  • Accordion.tsx:97 — f77007e. mx-auto sm:max-w-3xl moves to LayoutBlock's accordion <section>. The block's h2 now shares the FAQ column rather than spanning the wider one above it.

The merge is pushed with the work, so the gate ran on the merged result: lint clean under #313's --max-warnings 0, tsc clean, 1711 of 1711 tests passed. Nothing is left open on this PR.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 21, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 21, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 22, 2026
Four conflicts, all import blocks against #327's folder reorganisation.
Each keeps this branch's symbols, spelled the `@/` way main now uses:

- Accordion.tsx: `Heading` arrives with the `headingLevel` prop, beside
  main's `Icon`.
- LanguageDropdown.tsx: `DropdownItem` replaces the hand-rolled rows, so
  the direct `Link` import main added goes with them.
- LanguageDropdown.test.tsx: the `importOriginal` mock stays, because
  `DropdownItem` has to stay real to render the links under test.
- page-types.test.tsx: `RunOptions` stays dropped, since `axeOptions` now
  lives in tests/_helpers/axe.ts.

The six files #327 never saw — the five new specs and this branch's edit to
the a11y gate — move to `@/` too. `no-restricted-imports` bars `../*` in
every aliased folder, so a relative path across folders is now a lint error.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXDjyKLtEiZJVmnxBT
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged origin/main (5d6cbd9) in at ed7226f. Lean gate green on the merged head: lint and tsc clean, 1723 of 1723 tests over 175 files.

Four conflicts, every one an import block against #327's folder reorganisation. Each keeps this branch's symbols, spelled the @/ way main now uses.

  • LanguageDropdown.tsx: the direct Link import main added goes. DropdownItem renders the rows now, and it opens the anchor itself.
  • LanguageDropdown.test.tsx: the importOriginal mock stays, so DropdownItem stays real.
  • page-types.test.tsx: RunOptions stays dropped, because axeOptions lives in tests/_helpers/axe.ts.
  • Accordion.tsx: Heading beside main's Icon.

Six files the reorganisation never saw move to @/ too: the five new specs and this branch's edit to the a11y gate. no-restricted-imports now bars ../* across folders, so a relative path there is a lint error.

#293 was not the conflict the body predicted. #327 merged first, and #293 still has to reconcile with this head.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 22, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 24, 2026
Conflict in tests/a11y/page-types.test.tsx, in the import block only.
Kept both sides: main's `enT` and `pageSeo`, which its new `seoFor` helper
calls, and this branch's drop of `RunOptions`, which moved to
tests/_helpers/axe.ts with the options builder.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXnjr915DFGr4WuV2W
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged origin/main in at fb8a744. One conflict hunk, the import block of tests/a11y/page-types.test.tsx, where #311 added enT and pageSeo beside the RunOptions this PR had dropped.

Kept both sides. Nothing was weighed up: enT and pageSeo are called by #311's new seoFor helper, and RunOptions moved to tests/_helpers/axe.ts with the options builder, so holding it here would fail --max-warnings 0.

Lean gate on the merge: lint and tsc --noEmit clean, 1782 of 1782 tests passed.

One thing for later, not for this PR: #293 still conflicts, but the hunk has moved to tests/a11y/fixtures.ts. Both PRs append a block to articlePage and both are wanted, so whichever merges second keeps both. The body says so.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

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

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants