Skip to content

chore(ui): wire the share strings and measure the new skeletons - #547

Merged
Ardnived merged 1 commit into
mainfrom
chore/share-strings-skeleton-spec
Nov 27, 2026
Merged

Ardnived merged 1 commit into
mainfrom
chore/share-strings-skeleton-spec

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • Copy number and the share Email label read their SahajCloud keys; the retired share keys leave the snapshot.
  • The skeleton browser spec now measures the sign-up form, filters and calendar, and their headers match.

Change outline

Contract — the translation snapshot (src/config/translations.en.json, from pnpm sync:translations --write)

+ event.actions.copy_number, share.email          sydevs/SahajCloud#1304 — wired here
- share.title, share.title_class                  sydevs/SahajCloud#1306 — out of RETIRING_KEYS
- common.errors.share_unavailable_class
+ calendar.* (13 keys)                            PENDING_KEYS → sydevs/SahajAtlasWeb#538
+ filters.language.count, filters.when.*, filters.where.scope   PENDING_KEYS → sydevs/SahajAtlasWeb#542

Behaviour — loading headers (skeletonShape, DrawerChrome)

The new browser cases failed on header height (20, 34 and 6 px off); each header now draws the view's own:

 skeletonShape(entry)                             src/components/organisms/Skeleton/Skeleton.tsx
-  register → { titled, form }
+  register → { titled-subtitle, form }   Back, title, the reassurance line
-  filters  → { titled, filters }
+  filters  → { closable, filters }       title beside its close button
-  calendar → { titled, calendar }
+  calendar → { calendar, calendar }      SkeletonCalendarControls in CALENDAR_HEADER
 DrawerChrome({ loading })                         src/views/fallbacks.tsx
+  calendar → DrawerHeader(CALENDAR_HEADER) › SkeletonCalendarControls
+  register → NavHeader subtitle = registration.form.reassurance

CALENDAR_HEADER is now the one class CalendarView's header and both placeholders use.

Files

 tests/browser/skeleton.spec.ts   + the sign-up form, the filters, the calendar (×2 stages ×2 viewports)

Preview

Preview pending — the Ladle playground builds after the push: Organisms › Skeleton, sections "Registering for a class", "Filters" and "Calendar".

Test results

  • Lean gate: ✓ lint + typecheck + test:run (2,755 passed, 1 skipped)
  • Browser lane, skeleton.spec.ts: ✓ 28 passed, including the 12 new cases (each failed on header height before the fix)
  • Browser lane, the rest: embed.spec.ts "a full-page map embed boots" fails locally, as it does on origin/main on this machine; CI is the gate
  • Size: ✓ standalone 334.8 of 336 KiB shipped

Notes for reviewer

🤖 Generated with Claude Code

- Sync the translation snapshot: Copy number and the share Email label
  now read `event.actions.copy_number` and `share.email`
  (sydevs/SahajCloud#1304), and the three keys sydevs/SahajCloud#1306
  dropped leave RETIRING_KEYS. Keys published ahead of #538 and #542 join
  PENDING_KEYS.
- tests/browser/skeleton.spec.ts measures the sign-up form, filters and
  calendar. It caught three header mismatches, now fixed: the sign-up
  form's reassurance line, the filters' close-button row, and the
  calendar's own controls in place of a Back-and-title header.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

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

@Ardnived
Ardnived merged commit 2415678 into main Nov 27, 2026
14 checks passed
@Ardnived
Ardnived deleted the chore/share-strings-skeleton-spec branch November 27, 2026 20:17
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 27, 2026
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.

1 participant