Skip to content

feat(ui): show Labelary privacy notice on first Print, not just Preview#33

Merged
u8array merged 2 commits into
mainfrom
feat/labelary-notice-shared
May 9, 2026
Merged

feat(ui): show Labelary privacy notice on first Print, not just Preview#33
u8array merged 2 commits into
mainfrom
feat/labelary-notice-shared

Conversation

@u8array
Copy link
Copy Markdown
Owner

@u8array u8array commented May 9, 2026

Print routed through Labelary was previously hidden until the user had acknowledged the notice via Preview. Surface Print whenever the gate is enabled and open the notice on first click instead, matching the Preview flow. Disclaimer is extracted into a shared LabelaryNoticeModal so wording stays in lockstep, locale body now mentions both features, and a new env test pins the build-time gate behavior.

Print routed through Labelary was previously hidden until the user had
acknowledged the notice via Preview. Surface Print whenever the gate is
enabled and open the notice on first click instead, matching the
Preview flow. Disclaimer is extracted into a shared LabelaryNoticeModal
so wording stays in lockstep, locale body now mentions both features,
and a new env test pins the build-time gate behavior.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the Labelary privacy notice into a shared LabelaryNoticeModal component, ensuring consistent disclosure before using preview or print features. It also updates localization files to reflect that both features utilize the external service and adds environment-based testing for the Labelary gate. Feedback focuses on improving the accessibility of the new modal by adding appropriate ARIA roles, labels, and IDs.

Comment thread src/components/Output/LabelaryNoticeModal.tsx
Comment thread src/components/Output/LabelaryNoticeModal.tsx Outdated
Comment thread src/components/Output/LabelaryNoticeModal.tsx
LabelaryNoticeModal and LabelPreviewModal now expose role=dialog,
aria-modal and aria-labelledby so screen readers announce them as
modal dialogs. The icon-only close buttons get a localized aria-label
via a new app.close translation across all 32 locales.
@u8array u8array merged commit 97b3261 into main May 9, 2026
2 checks passed
@u8array u8array deleted the feat/labelary-notice-shared branch May 9, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant