Skip to content

refactor(ui): extract stem help drawer into components + i18n chrome (#44) - #355

Merged
krisarmstrong merged 1 commit into
mainfrom
refactor/stem-help-extract-i18n
May 28, 2026
Merged

refactor(ui): extract stem help drawer into components + i18n chrome (#44)#355
krisarmstrong merged 1 commit into
mainfrom
refactor/stem-help-extract-i18n

Conversation

@krisarmstrong

Copy link
Copy Markdown
Collaborator

Summary

Final harmonization follow-up — converge stem's help drawer toward niac's structure (each repo owns its own copy; no master), no behavior change.

  • Extract inline JSX (~530 lines) from HelpDrawer.tsx into ui/src/components/help-drawer/: TestsTab, TestCard, TestDetailView, TutorialsTab, TutorialDetailView, GlossaryTab, CopyCommandButton. HelpDrawer.tsx drops from ~818 → ~290 lines (pure orchestration).
  • i18n the chrome — new help namespace (en + es): tab/section labels, headings, search placeholder, close/back, simple/technical toggle, intros, via useTranslation('help'). The help content corpus (test descriptions/glossary/tutorials) stays in the data file (separate localization effort).
  • New smoke spec help-drawer-smoke.spec.ts (open → content → tab switch → close via testids).

Test plan

  • tsc / biome / npm run build / token-discipline clean; i18n unit tests 9/9
  • help e2e (existing help-drawer.spec + new smoke) 5/5 pass locally vs stem web on :8444
  • CI green

…ome (#44)

Converges stem's help drawer toward niac's structure (each repo owns its
own copy; no master) without changing behavior.

- Extract the inline detail/tab JSX (~530 lines) out of HelpDrawer.tsx
  into ui/src/components/help-drawer/: TestsTab, TestCard, TestDetailView,
  TutorialsTab, TutorialDetailView, GlossaryTab, CopyCommandButton.
  HelpDrawer.tsx shrinks from ~818 to ~290 lines (pure orchestration).
- Add a `help` i18n namespace (en + es) for the drawer CHROME — tab/section
  labels, headings, search placeholder, close/back buttons, simple/technical
  toggle, intros — and route them through useTranslation('help'). The help
  CONTENT corpus (test descriptions/glossary/tutorial bodies) stays in the
  data file (out of scope).
- Add ui/e2e/help-drawer-smoke.spec.ts (open → content → switch tab → close
  via the help-drawer testids).

Verified locally: tsc / biome / build / token-discipline clean; i18n unit
tests 9/9; the help e2e specs (existing + new smoke) 5/5 pass against
stem web on :8444.
@krisarmstrong
krisarmstrong enabled auto-merge (squash) May 28, 2026 23:38
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@github-actions

Copy link
Copy Markdown
Contributor

License Compliance Report

All dependencies pass license compliance checks

Go Dependencies

  • Unknown: 31 package(s)
  • MIT: 26 package(s)
  • BSD-3-Clause: 16 package(s)
  • Apache-2.0: 11 package(s)
  • BSD-2-Clause: 1 package(s)

npm Dependencies

See full report in workflow artifacts

Allowed Licenses: MIT, Apache-2.0, BSD-*, ISC, CC0-1.0, MPL-2.0
Forbidden: GPL, AGPL, SSPL (strong copyleft)

@krisarmstrong
krisarmstrong merged commit 0a8a31c into main May 28, 2026
28 checks passed
@krisarmstrong
krisarmstrong deleted the refactor/stem-help-extract-i18n branch May 28, 2026 23:42
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