Skip to content

fix: restore tab icons and make tsc pass - #1160

Merged
mazzma12 merged 1 commit into
mainfrom
fix/typecheck-and-tabs
Sep 16, 2026
Merged

mazzma12 merged 1 commit into
mainfrom
fix/typecheck-and-tabs

Conversation

@mazzma12

Copy link
Copy Markdown
Contributor

Rename src/theme/tabsTabs so the swizzled Tabs (with OS icons) is active again; it was silently disabled by the case change in 18f37ee.
Extend @docusaurus/tsconfig (automatic JSX runtime, skipLibCheck): 214 → 0 tsc errors after fixing 2 components.
Add npm run typecheck to the Code quality workflow.

@aws-amplify-eu-west-1

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-1160.d1to60jd2gb6y6.amplifyapp.com

@ziracmo
ziracmo requested review from ziracmo and a lite review from Copilot September 16, 2026 15:43

Copilot AI 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.

🔵 Needs a closer look

The persona tab lookup cannot find the hidden tab because the rendered element lacks data-value.

Pull request overview

Restores the active Docusaurus Tabs swizzle, fixes TypeScript issues, and adds CI type checking.

Changes:

  • Corrects the Tabs directory casing and component typing.
  • Updates TypeScript configuration and tab components.
  • Adds a typecheck script and CI workflow step.
File summaries
File Summary
crowdsec-docs/tsconfig.json Extends Docusaurus TypeScript configuration.
crowdsec-docs/src/theme/Tabs/index.tsx Restores custom tabs and icons; persona tab lookup remains unsynchronized.
crowdsec-docs/src/components/premium-upgrade/tabs-with-persona.tsx Updates TabItem typing.
crowdsec-docs/src/components/formatted-tabs.tsx Reuses tab value definitions.
crowdsec-docs/package.json Adds the typecheck script.
.github/workflows/lint.yaml Runs type checking in CI.
Review details

Suppressed comments (1)

crowdsec-docs/src/theme/Tabs/index.tsx:61

  • TabsWithPersona looks up the hidden tab with [role="tab"][data-value="${value}"], but this tab element never renders a data-value attribute. With this swizzled component active, the lookup returns null, so groupId state is not synchronized or persisted when a persona is selected; add the attribute here or change the selector.
  • Files reviewed: 6/6 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mazzma12
mazzma12 merged commit cb11bd6 into main Sep 16, 2026
4 checks passed
@mazzma12
mazzma12 deleted the fix/typecheck-and-tabs branch September 16, 2026 15:52
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.

3 participants