Repository navigation
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Tobias Høegh <tobias@tujo.no>
…ip the same id (#10985) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…he self-hosted server (#10990)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…11022) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…cy to the dashboard (#11046)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ton's accessible name (#11003) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…radio variant (#11005) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
langz
left a comment
There was a problem hiding this comment.
Review of ecaa2f5: Changes needed
This release takes the 45 commits on main since v11.18.1 to release. semantic-release will publish 11.19.0: two feat, nine fix, no ! and no unflagged major. One blocker is still open from my earlier release check: the Tooltip change in #10994 ships in 11.19.0, but its migration note is only in the draft v13 guide. A real trial merge of ecaa2f5 into release (6ca4742) has no conflicts. The result equals the head, apart from build/CHANGELOG.md.
Must fix
- The Tooltip change ships in 11.19.0, but its migration note is only in the v13 guide. #10994 (
b39dd847464, typedfix) makes every Tooltip trigger permanentlyaria-describedbya hidden copy of the content. It also removes theAriaLiveregion that announced the content when the Tooltip opened. The commit adds a migration step for apps that use Tooltip for a status message, such as "Copied". That step is only inversions/eufemia/v13-info.mdx:98-113. That page hasdraft: trueandnavigation.hidden: true(:5-7).v11-info.mdxstill has no Tooltip behavior note onecaa2f5, and the generated 11.19.0 notes list the change as a plain bug fix. An app on^11gets the change withnpm update, but the release it comes in has no note.- What breaks for apps. I used the documented pattern
<Tooltip open={copied} targetElement={ref}>Copied</Tooltip>. Onv11.18.1the button has no description at rest, and "Copied" is announced through a live region when the Tooltip opens. On the head, the button is described as "Copied" before anything was copied, and nothing is announced. Tests that assertaria-describedbyortoHaveAccessibleDescription, or that find the tooltip via#${aria-describedby}, also break. - How I verified it. My repro test gives
{"beforeClick":{"describedby":null,"description":""},"afterClick":{"liveRegionAnnounced":["Copied"]}}onv11.18.1. On the head it gives{"beforeClick":{"describedby":"id-r0-description","description":"Copied"},"afterClick":{"liveRegionAnnounced":[]}}. The tag run is the control: there the observer catches "Copied", so it can detect an announcement. In real Chromium (accessibility tree) and Firefox, the closed "Top" trigger on the Tooltip demo page has no description on eufemia.dnb.no (11.18.1). On the main preview it is described as "Tooltip 1" at rest. Also, 24 tests fromv11.18.1fail on the head because of this change (see the table below), and all of them pass on the tag. - Suggested fix (docs only, before this PR merges). Add a "Tooltip in v11.19" section to
v11-info.mdx, next to "Forms selection variants in v11.18" (v11-info.mdx:66). #10854 (e335e3b2f96) moved the Chip note from v13 to v11 for the same reason. Include theomitDescribedByplusAriaLivestep and the newaria-describedbytarget for tests. Then add the same lines to the 11.19.0 GitHub release notes. The other option is to keep #10994 out of 11.x until v13.
- What breaks for apps. I used the documented pattern
Results of the v11.18.1 tests on the head, sorted by cause
I put the v11.18.1 versions of the 38 test files (and 3 snapshots) that changed since the tag on top of the head. Then I ran them and compared the result with the same files run on v11.18.1. Baseline on the tag: 0 failures. On the head: 54 failures in 17 files. Every failure maps to one of the commits below, and I matched each one by hand from its assertion text.
| Cause | Failing old tests on the head | Intended? |
|---|---|---|
| Tooltip description and live region (#10994) | 24 (Tooltip 8, Anchor 8, Chip 3, useCopyToClipboard 2, DateFormat 2, Button 1) | Yes. Not documented for 11.x (must fix 1) |
| StepIndicator trigger name (#11003) | 4 (StepIndicator 2, Wizard.Container 2). Old tests expect aria-label="Steg 2 av 4:" and an empty trigger text. |
Yes. In the release notes. |
| Birdhouse preview theme (#10938, #10942) | 5 (useTheme 3, because of the new isBirdhouse key; capabilities 1; the Elements CSS snapshot 1, because of --font-weight-display) |
Yes |
| Outside click: scrollable targets now count (#11030) | 1 (component-helper detectOutsideClick). Presses on an overflow: scroll element, and on <html> within 40 px of the edge, were ignored before. Now they close. |
Yes, but typed chore (suggestion 2) |
Outside touch closes on touchend (#10347) |
1 (SidebarMenuResponsive "closes a toggled compact menu on outside touch". The old test fires only pointerdown.) |
Yes |
| Table sticky CSS longhands (#11000) | 1 (Table CSS snapshot) | Yes |
| Build scripts only (#10926, #10938, #10942) | 18 (tokenReview 13, tokensExtractor 1, makePropertiesFile 4) | Yes. Tooling, not in the package. |
The other 21 files pass, including the old Card, CardMediaButton and Flex Container tests on ecaa2f5.
Suggestions (non-blocking)
- Say in the 11.19.0 release notes that
CardMediaButtonPropsis now a union (#10972). This change was accepted as non-blocking in the earlier review of #10972. I only add a number here. I type-checked a small consumer file (withstrictNullChecks) against both trees. Onv11.18.1it gives 0 errors. On the head, 3 of 4 wrapper patterns fail: readingprops.videoRef.current(TS18048), destructuringvideoRefand passing it on (TS18048 and TS2322), and anOmit<CardMediaButtonProps, 'title'>wrapper (TS2322 onplaying). Plain<Card.MediaButton videoRef={ref} />still compiles. The component has been public since 11.16.0, so few apps wrap it. This is true but rare. One line in the notes would save those apps a surprise. - Three visible changes ship without a release note, because their type is
chore. #11030 changes when Popover, Dropdown and the publicdetectOutsideClickhelper close: presses on a scrollable element or near the page edge now close them, and only presses on a real scrollbar are ignored. #10926 replaces the Coconut heading font (--sb-font-family-headingis now'Sbanken Display', …). #10938 changes theuicode-block colors indnb-prism-theme.ts(color-mix(... 40%, ...)). Apps that test outside-click behavior, or that use Coconut, would benefit from a line in the GitHub release notes. - The package no longer contains
style/themes/figma/brand/dnbeiendom-{light,dark}.tokens.json(instyle/,es/andcjs/, 6 files). #10938 renamed them tobirdhouse-*.tokens.json. The Eiendom theme does not use them (it uses theuitokens), and the package has noexportsmap, so only an app that imports the raw Figma JSON is affected. No other file is removed. - Merge this PR with a merge commit, as for 11.18.1. With a squash, the commit analyzer only sees
release of v11.19.0 (#10980). I ran that case, and it returns no release.
Risky changes for consumers (after the blocker)
- StepIndicator (#11003): the trigger button's accessible name changes from "Steg 2 av 3:" to "Steg 2 av 3: ", in Chromium and Firefox (checked on eufemia.dnb.no and the main preview). Its text content now also includes the hidden label. App tests that find the button by name or text break.
- FieldBlock (#11017): a fieldset with a help button in its legend is now named by the label and description elements. In jsdom the name changes only in spacing, from
LegendDescriptiontoLegend Description. An exact-name app test would break. The Toggle demos place the help button outside the legend, so the docs pages show no change in Chromium or Firefox. - Field.Selection and Field.Toggle radio variants (#11005): the inner
Radio.Groupnow hasrole="presentation"inside the fieldset. Arolepassed toRadio.Groupmoves from the inner shell span to the group element. - Flex (#11056):
Providercan setFlex={{ layoutEngine: "css" }}. Card no longer defaultslayoutEnginetolegacyitself, but Flex still falls back tolegacy, so nothing changes without the Provider setting. - Outside click (#10347, #11023, #11030): Popover, DrawerList (Dropdown, Autocomplete), NumberFormat and SidebarMenu share one handler (
shared/helpers/useOutsideClick.ts). A tap closes ontouchend, and a touch that moves more than 10 px (a scroll) does not close. - DatePicker (#10779):
disablednow closes an open calendar and blocksopen. FormStatus (#10844): new error icon shape in every theme, so app screenshots will differ. List (#10984): rows hidden byvisibleCountnow take no space. - Birdhouse (#10938, #10942): a new preview theme.
useTheme()returnsisEiendom: truefor it, andthemeNamesgains'birdhouse'. A consumerRecord<ThemeName, …>or an exhaustiveswitchover theme names stops compiling. The docs mark it as a transitional preview.
What I checked
- Range:
git log v11.18.1..ecaa2f5has 45 commits (32chore, 9fix, 2feat, 1docs, 1refactor).v11.18.1is the latestv11.*tag onorigin/release. Its tree equals the merge-base95bfb047b, apart frombuild/CHANGELOG.md. - Version: the real
@semantic-release/commit-analyzerwith thepackage.jsonconfig returnsminor. Controls: an addedfeat(Foo)!:givesmajor, and aBREAKING CHANGE:footer is ignored. There is no!in any title, and "breaking" appears in no commit body.11.19.0is not on npm yet. The generated notes have 2 features, 9 fixes, 1 docs entry and 1 refactor, and no breaking section. - Public API: I compared
pkg.pr.new/@dnb/eufemia@53fa3bd(BuildInfo53fa3bdce6) with the npm11.18.1tarball. 6 files removed (suggestion 3) and 203 added (mostly Birdhouse theme files, fonts and license texts). 23 public.d.tsfiles changed. Apart from the theme-name union, they only add or reorder members (for exampleProviderFlex,useTheme().isBirdhouse, the PaymentCard logos, andcheckOutsideClicknow returnsboolean).CardMediaButtonProps(ecaa2f5, no package preview yet) is from source. - Old tests on the head: 38 test files and 3 snapshots, method and results above. Two files did not start under machine load (Popover on the tag, SidebarMenuResponsive on the head). I reran each one alone.
- Real browsers: Chromium (CDP accessibility tree) and Firefox, on eufemia.dnb.no and the main preview, for the StepIndicator trigger and a closed Tooltip trigger.
- Type check:
yarn workspace @dnb/eufemia test:typesonecaa2f5passes (exit 0). CI has not run it on this SHA yet. - CI: all checks passed on
4e63f4c, the head before #11056 and #10972. The logs show it ran 530 unit files, all screenshot tests ("branch main always runs all") and 718 + 457 e2e tests. The two newer commits change only Card and Flex. I ran their tests onecaa2f5: 117 head tests and the 106 old tests pass.
CI on ecaa2f594e when I posted this: 25 checks passed; 2 still running (Run e2e tests, Run visual-regression tests). CI on ecaa2f5 was still running when I posted. On 4e63f4c, two commits earlier, every check passed.
langz
left a comment
There was a problem hiding this comment.
Delta review of 541b379: Changes needed (no change to the verdict)
Two commits landed on main after my release review of ecaa2f5:
- #11052
fix: restore mouse hover after touchscreen use(4feb441). It changesshared/helpers/whatInput.tsand its test. I reviewed it today: a held tap no longer switches the intent back tomouse, and mouse use after a tap brings hover back after about 200 ms. It gives the release one morefixentry. - #11054
chore(AI): let the portal content skill report its use(541b379). It changes onlyagent-skills/eufemia-portal-content/SKILL.mdand its test. It sends only the fixed skill name, and as achoreit gets no release note.
So semantic-release still publishes 11.19.0 as a minor, now with 2 features and 10 fixes. No commit has a !.
The must-fix from my review of ecaa2f5 is still open: v11-info.mdx on 541b379 still has no note for the Tooltip aria-describedby change from #10994. The other findings and suggestions in that review are unchanged.
CI on 541b37945d when I posted this: 25 checks passed; 2 still running (Run e2e tests, Run visual-regression tests).
No description provided.