@shirokuma-library/shirokuma-docs 0.1.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @shirokuma-library/shirokuma-docs might be problematic. Click here for more details.
- package/LICENSE +21 -0
- package/README.en.md +346 -0
- package/README.md +346 -0
- package/THIRD_PARTY_NOTICES.md +18 -0
- package/bin/shirokuma-docs +2 -0
- package/dist/analyzers/details-test-analysis.d.ts +31 -0
- package/dist/analyzers/details-test-analysis.d.ts.map +1 -0
- package/dist/analyzers/details-test-analysis.js +174 -0
- package/dist/analyzers/details-test-analysis.js.map +1 -0
- package/dist/analyzers/feature-map-builder.d.ts +20 -0
- package/dist/analyzers/feature-map-builder.d.ts.map +1 -0
- package/dist/analyzers/feature-map-builder.js +154 -0
- package/dist/analyzers/feature-map-builder.js.map +1 -0
- package/dist/analyzers/feature-map-references.d.ts +34 -0
- package/dist/analyzers/feature-map-references.d.ts.map +1 -0
- package/dist/analyzers/feature-map-references.js +249 -0
- package/dist/analyzers/feature-map-references.js.map +1 -0
- package/dist/analyzers/reference-analyzer.d.ts +95 -0
- package/dist/analyzers/reference-analyzer.d.ts.map +1 -0
- package/dist/analyzers/reference-analyzer.js +372 -0
- package/dist/analyzers/reference-analyzer.js.map +1 -0
- package/dist/commands/adr.d.ts +26 -0
- package/dist/commands/adr.d.ts.map +1 -0
- package/dist/commands/adr.js +129 -0
- package/dist/commands/adr.js.map +1 -0
- package/dist/commands/api-tools.d.ts +83 -0
- package/dist/commands/api-tools.d.ts.map +1 -0
- package/dist/commands/api-tools.js +775 -0
- package/dist/commands/api-tools.js.map +1 -0
- package/dist/commands/coverage.d.ts +139 -0
- package/dist/commands/coverage.d.ts.map +1 -0
- package/dist/commands/coverage.js +481 -0
- package/dist/commands/coverage.js.map +1 -0
- package/dist/commands/deps.d.ts +24 -0
- package/dist/commands/deps.d.ts.map +1 -0
- package/dist/commands/deps.js +211 -0
- package/dist/commands/deps.js.map +1 -0
- package/dist/commands/details-context.d.ts +38 -0
- package/dist/commands/details-context.d.ts.map +1 -0
- package/dist/commands/details-context.js +195 -0
- package/dist/commands/details-context.js.map +1 -0
- package/dist/commands/details-types.d.ts +315 -0
- package/dist/commands/details-types.d.ts.map +1 -0
- package/dist/commands/details-types.js +7 -0
- package/dist/commands/details-types.js.map +1 -0
- package/dist/commands/details.d.ts +24 -0
- package/dist/commands/details.d.ts.map +1 -0
- package/dist/commands/details.js +299 -0
- package/dist/commands/details.js.map +1 -0
- package/dist/commands/discussion-templates.d.ts +26 -0
- package/dist/commands/discussion-templates.d.ts.map +1 -0
- package/dist/commands/discussion-templates.js +270 -0
- package/dist/commands/discussion-templates.js.map +1 -0
- package/dist/commands/discussions.d.ts +31 -0
- package/dist/commands/discussions.d.ts.map +1 -0
- package/dist/commands/discussions.js +744 -0
- package/dist/commands/discussions.js.map +1 -0
- package/dist/commands/feature-map-types.d.ts +294 -0
- package/dist/commands/feature-map-types.d.ts.map +1 -0
- package/dist/commands/feature-map-types.js +8 -0
- package/dist/commands/feature-map-types.js.map +1 -0
- package/dist/commands/feature-map.d.ts +30 -0
- package/dist/commands/feature-map.d.ts.map +1 -0
- package/dist/commands/feature-map.js +137 -0
- package/dist/commands/feature-map.js.map +1 -0
- package/dist/commands/generate.d.ts +16 -0
- package/dist/commands/generate.d.ts.map +1 -0
- package/dist/commands/generate.js +88 -0
- package/dist/commands/generate.js.map +1 -0
- package/dist/commands/gh-discussions.d.ts +31 -0
- package/dist/commands/gh-discussions.d.ts.map +1 -0
- package/dist/commands/gh-discussions.js +743 -0
- package/dist/commands/gh-discussions.js.map +1 -0
- package/dist/commands/gh-issues-pr.d.ts +74 -0
- package/dist/commands/gh-issues-pr.d.ts.map +1 -0
- package/dist/commands/gh-issues-pr.js +417 -0
- package/dist/commands/gh-issues-pr.js.map +1 -0
- package/dist/commands/gh-issues.d.ts +90 -0
- package/dist/commands/gh-issues.d.ts.map +1 -0
- package/dist/commands/gh-issues.js +1297 -0
- package/dist/commands/gh-issues.js.map +1 -0
- package/dist/commands/gh-projects.d.ts +54 -0
- package/dist/commands/gh-projects.d.ts.map +1 -0
- package/dist/commands/gh-projects.js +966 -0
- package/dist/commands/gh-projects.js.map +1 -0
- package/dist/commands/gh-repo.d.ts +18 -0
- package/dist/commands/gh-repo.d.ts.map +1 -0
- package/dist/commands/gh-repo.js +253 -0
- package/dist/commands/gh-repo.js.map +1 -0
- package/dist/commands/github-data.d.ts +67 -0
- package/dist/commands/github-data.d.ts.map +1 -0
- package/dist/commands/github-data.js +361 -0
- package/dist/commands/github-data.js.map +1 -0
- package/dist/commands/i18n.d.ts +102 -0
- package/dist/commands/i18n.d.ts.map +1 -0
- package/dist/commands/i18n.js +829 -0
- package/dist/commands/i18n.js.map +1 -0
- package/dist/commands/impact.d.ts +14 -0
- package/dist/commands/impact.d.ts.map +1 -0
- package/dist/commands/impact.js +263 -0
- package/dist/commands/impact.js.map +1 -0
- package/dist/commands/init.d.ts +53 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +468 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/issues-pr.d.ts +83 -0
- package/dist/commands/issues-pr.d.ts.map +1 -0
- package/dist/commands/issues-pr.js +572 -0
- package/dist/commands/issues-pr.js.map +1 -0
- package/dist/commands/issues.d.ts +78 -0
- package/dist/commands/issues.d.ts.map +1 -0
- package/dist/commands/issues.js +1541 -0
- package/dist/commands/issues.js.map +1 -0
- package/dist/commands/link-docs.d.ts +21 -0
- package/dist/commands/link-docs.d.ts.map +1 -0
- package/dist/commands/link-docs.js +990 -0
- package/dist/commands/link-docs.js.map +1 -0
- package/dist/commands/lint-annotations.d.ts +28 -0
- package/dist/commands/lint-annotations.d.ts.map +1 -0
- package/dist/commands/lint-annotations.js +511 -0
- package/dist/commands/lint-annotations.js.map +1 -0
- package/dist/commands/lint-code.d.ts +26 -0
- package/dist/commands/lint-code.d.ts.map +1 -0
- package/dist/commands/lint-code.js +428 -0
- package/dist/commands/lint-code.js.map +1 -0
- package/dist/commands/lint-coverage.d.ts +33 -0
- package/dist/commands/lint-coverage.d.ts.map +1 -0
- package/dist/commands/lint-coverage.js +379 -0
- package/dist/commands/lint-coverage.js.map +1 -0
- package/dist/commands/lint-docs.d.ts +23 -0
- package/dist/commands/lint-docs.d.ts.map +1 -0
- package/dist/commands/lint-docs.js +338 -0
- package/dist/commands/lint-docs.js.map +1 -0
- package/dist/commands/lint-structure.d.ts +38 -0
- package/dist/commands/lint-structure.d.ts.map +1 -0
- package/dist/commands/lint-structure.js +350 -0
- package/dist/commands/lint-structure.js.map +1 -0
- package/dist/commands/lint-tests.d.ts +25 -0
- package/dist/commands/lint-tests.d.ts.map +1 -0
- package/dist/commands/lint-tests.js +105 -0
- package/dist/commands/lint-tests.js.map +1 -0
- package/dist/commands/lint-workflow.d.ts +36 -0
- package/dist/commands/lint-workflow.d.ts.map +1 -0
- package/dist/commands/lint-workflow.js +255 -0
- package/dist/commands/lint-workflow.js.map +1 -0
- package/dist/commands/overview.d.ts +21 -0
- package/dist/commands/overview.d.ts.map +1 -0
- package/dist/commands/overview.js +1300 -0
- package/dist/commands/overview.js.map +1 -0
- package/dist/commands/packages.d.ts +107 -0
- package/dist/commands/packages.d.ts.map +1 -0
- package/dist/commands/packages.js +308 -0
- package/dist/commands/packages.js.map +1 -0
- package/dist/commands/portal-nextjs.d.ts +23 -0
- package/dist/commands/portal-nextjs.d.ts.map +1 -0
- package/dist/commands/portal-nextjs.js +336 -0
- package/dist/commands/portal-nextjs.js.map +1 -0
- package/dist/commands/portal.d.ts +24 -0
- package/dist/commands/portal.d.ts.map +1 -0
- package/dist/commands/portal.js +16 -0
- package/dist/commands/portal.js.map +1 -0
- package/dist/commands/projects.d.ts +54 -0
- package/dist/commands/projects.d.ts.map +1 -0
- package/dist/commands/projects.js +1191 -0
- package/dist/commands/projects.js.map +1 -0
- package/dist/commands/repo-pairs.d.ts +19 -0
- package/dist/commands/repo-pairs.d.ts.map +1 -0
- package/dist/commands/repo-pairs.js +529 -0
- package/dist/commands/repo-pairs.js.map +1 -0
- package/dist/commands/repo.d.ts +18 -0
- package/dist/commands/repo.d.ts.map +1 -0
- package/dist/commands/repo.js +253 -0
- package/dist/commands/repo.js.map +1 -0
- package/dist/commands/schema.d.ts +49 -0
- package/dist/commands/schema.d.ts.map +1 -0
- package/dist/commands/schema.js +830 -0
- package/dist/commands/schema.js.map +1 -0
- package/dist/commands/screenshots.d.ts +203 -0
- package/dist/commands/screenshots.d.ts.map +1 -0
- package/dist/commands/screenshots.js +1234 -0
- package/dist/commands/screenshots.js.map +1 -0
- package/dist/commands/search-index.d.ts +83 -0
- package/dist/commands/search-index.d.ts.map +1 -0
- package/dist/commands/search-index.js +389 -0
- package/dist/commands/search-index.js.map +1 -0
- package/dist/commands/search.d.ts +24 -0
- package/dist/commands/search.d.ts.map +1 -0
- package/dist/commands/search.js +254 -0
- package/dist/commands/search.js.map +1 -0
- package/dist/commands/session.d.ts +159 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +1274 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/commands/test-cases-types.d.ts +154 -0
- package/dist/commands/test-cases-types.d.ts.map +1 -0
- package/dist/commands/test-cases-types.js +7 -0
- package/dist/commands/test-cases-types.js.map +1 -0
- package/dist/commands/test-cases.d.ts +28 -0
- package/dist/commands/test-cases.d.ts.map +1 -0
- package/dist/commands/test-cases.js +192 -0
- package/dist/commands/test-cases.js.map +1 -0
- package/dist/commands/typedoc.d.ts +21 -0
- package/dist/commands/typedoc.d.ts.map +1 -0
- package/dist/commands/typedoc.js +192 -0
- package/dist/commands/typedoc.js.map +1 -0
- package/dist/commands/update-skills.d.ts +56 -0
- package/dist/commands/update-skills.d.ts.map +1 -0
- package/dist/commands/update-skills.js +626 -0
- package/dist/commands/update-skills.js.map +1 -0
- package/dist/generators/details-entity-pages.d.ts +40 -0
- package/dist/generators/details-entity-pages.d.ts.map +1 -0
- package/dist/generators/details-entity-pages.js +301 -0
- package/dist/generators/details-entity-pages.js.map +1 -0
- package/dist/generators/details-html.d.ts +23 -0
- package/dist/generators/details-html.d.ts.map +1 -0
- package/dist/generators/details-html.js +324 -0
- package/dist/generators/details-html.js.map +1 -0
- package/dist/generators/details-module-page.d.ts +33 -0
- package/dist/generators/details-module-page.d.ts.map +1 -0
- package/dist/generators/details-module-page.js +408 -0
- package/dist/generators/details-module-page.js.map +1 -0
- package/dist/generators/details-styles.d.ts +39 -0
- package/dist/generators/details-styles.d.ts.map +1 -0
- package/dist/generators/details-styles.js +409 -0
- package/dist/generators/details-styles.js.map +1 -0
- package/dist/generators/feature-map-html.d.ts +66 -0
- package/dist/generators/feature-map-html.d.ts.map +1 -0
- package/dist/generators/feature-map-html.js +569 -0
- package/dist/generators/feature-map-html.js.map +1 -0
- package/dist/generators/feature-map-styles.d.ts +39 -0
- package/dist/generators/feature-map-styles.d.ts.map +1 -0
- package/dist/generators/feature-map-styles.js +449 -0
- package/dist/generators/feature-map-styles.js.map +1 -0
- package/dist/generators/test-cases-hierarchy.d.ts +21 -0
- package/dist/generators/test-cases-hierarchy.d.ts.map +1 -0
- package/dist/generators/test-cases-hierarchy.js +336 -0
- package/dist/generators/test-cases-hierarchy.js.map +1 -0
- package/dist/generators/test-cases-main.d.ts +20 -0
- package/dist/generators/test-cases-main.d.ts.map +1 -0
- package/dist/generators/test-cases-main.js +439 -0
- package/dist/generators/test-cases-main.js.map +1 -0
- package/dist/generators/test-cases-styles.d.ts +64 -0
- package/dist/generators/test-cases-styles.d.ts.map +1 -0
- package/dist/generators/test-cases-styles.js +1277 -0
- package/dist/generators/test-cases-styles.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +600 -0
- package/dist/index.js.map +1 -0
- package/dist/lint/annotation-lint.d.ts +198 -0
- package/dist/lint/annotation-lint.d.ts.map +1 -0
- package/dist/lint/annotation-lint.js +510 -0
- package/dist/lint/annotation-lint.js.map +1 -0
- package/dist/lint/annotation-types.d.ts +161 -0
- package/dist/lint/annotation-types.d.ts.map +1 -0
- package/dist/lint/annotation-types.js +31 -0
- package/dist/lint/annotation-types.js.map +1 -0
- package/dist/lint/code-types.d.ts +135 -0
- package/dist/lint/code-types.d.ts.map +1 -0
- package/dist/lint/code-types.js +25 -0
- package/dist/lint/code-types.js.map +1 -0
- package/dist/lint/coverage-types.d.ts +128 -0
- package/dist/lint/coverage-types.d.ts.map +1 -0
- package/dist/lint/coverage-types.js +24 -0
- package/dist/lint/coverage-types.js.map +1 -0
- package/dist/lint/docs-types.d.ts +214 -0
- package/dist/lint/docs-types.d.ts.map +1 -0
- package/dist/lint/docs-types.js +18 -0
- package/dist/lint/docs-types.js.map +1 -0
- package/dist/lint/formatters/index.d.ts +14 -0
- package/dist/lint/formatters/index.d.ts.map +1 -0
- package/dist/lint/formatters/index.js +28 -0
- package/dist/lint/formatters/index.js.map +1 -0
- package/dist/lint/formatters/json.d.ts +11 -0
- package/dist/lint/formatters/json.d.ts.map +1 -0
- package/dist/lint/formatters/json.js +12 -0
- package/dist/lint/formatters/json.js.map +1 -0
- package/dist/lint/formatters/summary.d.ts +11 -0
- package/dist/lint/formatters/summary.d.ts.map +1 -0
- package/dist/lint/formatters/summary.js +37 -0
- package/dist/lint/formatters/summary.js.map +1 -0
- package/dist/lint/formatters/terminal.d.ts +11 -0
- package/dist/lint/formatters/terminal.d.ts.map +1 -0
- package/dist/lint/formatters/terminal.js +99 -0
- package/dist/lint/formatters/terminal.js.map +1 -0
- package/dist/lint/index.d.ts +18 -0
- package/dist/lint/index.d.ts.map +1 -0
- package/dist/lint/index.js +103 -0
- package/dist/lint/index.js.map +1 -0
- package/dist/lint/rules/annotation-required.d.ts +35 -0
- package/dist/lint/rules/annotation-required.d.ts.map +1 -0
- package/dist/lint/rules/annotation-required.js +127 -0
- package/dist/lint/rules/annotation-required.js.map +1 -0
- package/dist/lint/rules/code-rules.d.ts +12 -0
- package/dist/lint/rules/code-rules.d.ts.map +1 -0
- package/dist/lint/rules/code-rules.js +11 -0
- package/dist/lint/rules/code-rules.js.map +1 -0
- package/dist/lint/rules/describe-coverage.d.ts +8 -0
- package/dist/lint/rules/describe-coverage.d.ts.map +1 -0
- package/dist/lint/rules/describe-coverage.js +43 -0
- package/dist/lint/rules/describe-coverage.js.map +1 -0
- package/dist/lint/rules/duplicate-testdoc.d.ts +8 -0
- package/dist/lint/rules/duplicate-testdoc.d.ts.map +1 -0
- package/dist/lint/rules/duplicate-testdoc.js +38 -0
- package/dist/lint/rules/duplicate-testdoc.js.map +1 -0
- package/dist/lint/rules/index.d.ts +29 -0
- package/dist/lint/rules/index.d.ts.map +1 -0
- package/dist/lint/rules/index.js +55 -0
- package/dist/lint/rules/index.js.map +1 -0
- package/dist/lint/rules/server-action-structure.d.ts +37 -0
- package/dist/lint/rules/server-action-structure.d.ts.map +1 -0
- package/dist/lint/rules/server-action-structure.js +152 -0
- package/dist/lint/rules/server-action-structure.js.map +1 -0
- package/dist/lint/rules/skipped-test-report.d.ts +11 -0
- package/dist/lint/rules/skipped-test-report.d.ts.map +1 -0
- package/dist/lint/rules/skipped-test-report.js +31 -0
- package/dist/lint/rules/skipped-test-report.js.map +1 -0
- package/dist/lint/rules/structure-rules.d.ts +67 -0
- package/dist/lint/rules/structure-rules.d.ts.map +1 -0
- package/dist/lint/rules/structure-rules.js +617 -0
- package/dist/lint/rules/structure-rules.js.map +1 -0
- package/dist/lint/rules/testdoc-japanese.d.ts +8 -0
- package/dist/lint/rules/testdoc-japanese.d.ts.map +1 -0
- package/dist/lint/rules/testdoc-japanese.js +31 -0
- package/dist/lint/rules/testdoc-japanese.js.map +1 -0
- package/dist/lint/rules/testdoc-min-length.d.ts +8 -0
- package/dist/lint/rules/testdoc-min-length.d.ts.map +1 -0
- package/dist/lint/rules/testdoc-min-length.js +31 -0
- package/dist/lint/rules/testdoc-min-length.js.map +1 -0
- package/dist/lint/rules/testdoc-required.d.ts +8 -0
- package/dist/lint/rules/testdoc-required.d.ts.map +1 -0
- package/dist/lint/rules/testdoc-required.js +27 -0
- package/dist/lint/rules/testdoc-required.js.map +1 -0
- package/dist/lint/rules/workflow-branch-naming.d.ts +20 -0
- package/dist/lint/rules/workflow-branch-naming.d.ts.map +1 -0
- package/dist/lint/rules/workflow-branch-naming.js +85 -0
- package/dist/lint/rules/workflow-branch-naming.js.map +1 -0
- package/dist/lint/rules/workflow-commit-format.d.ts +27 -0
- package/dist/lint/rules/workflow-commit-format.d.ts.map +1 -0
- package/dist/lint/rules/workflow-commit-format.js +92 -0
- package/dist/lint/rules/workflow-commit-format.js.map +1 -0
- package/dist/lint/rules/workflow-issue-fields.d.ts +24 -0
- package/dist/lint/rules/workflow-issue-fields.d.ts.map +1 -0
- package/dist/lint/rules/workflow-issue-fields.js +89 -0
- package/dist/lint/rules/workflow-issue-fields.js.map +1 -0
- package/dist/lint/rules/workflow-main-protection.d.ts +32 -0
- package/dist/lint/rules/workflow-main-protection.d.ts.map +1 -0
- package/dist/lint/rules/workflow-main-protection.js +114 -0
- package/dist/lint/rules/workflow-main-protection.js.map +1 -0
- package/dist/lint/structure-types.d.ts +216 -0
- package/dist/lint/structure-types.d.ts.map +1 -0
- package/dist/lint/structure-types.js +96 -0
- package/dist/lint/structure-types.js.map +1 -0
- package/dist/lint/types.d.ts +154 -0
- package/dist/lint/types.d.ts.map +1 -0
- package/dist/lint/types.js +21 -0
- package/dist/lint/types.js.map +1 -0
- package/dist/lint/workflow-types.d.ts +90 -0
- package/dist/lint/workflow-types.d.ts.map +1 -0
- package/dist/lint/workflow-types.js +7 -0
- package/dist/lint/workflow-types.js.map +1 -0
- package/dist/md/analyzer/index.d.ts +46 -0
- package/dist/md/analyzer/index.d.ts.map +1 -0
- package/dist/md/analyzer/index.js +288 -0
- package/dist/md/analyzer/index.js.map +1 -0
- package/dist/md/builder/index.d.ts +91 -0
- package/dist/md/builder/index.d.ts.map +1 -0
- package/dist/md/builder/index.js +446 -0
- package/dist/md/builder/index.js.map +1 -0
- package/dist/md/cli/analyze.d.ts +11 -0
- package/dist/md/cli/analyze.d.ts.map +1 -0
- package/dist/md/cli/analyze.js +118 -0
- package/dist/md/cli/analyze.js.map +1 -0
- package/dist/md/cli/build.d.ts +11 -0
- package/dist/md/cli/build.d.ts.map +1 -0
- package/dist/md/cli/build.js +74 -0
- package/dist/md/cli/build.js.map +1 -0
- package/dist/md/cli/extract.d.ts +25 -0
- package/dist/md/cli/extract.d.ts.map +1 -0
- package/dist/md/cli/extract.js +230 -0
- package/dist/md/cli/extract.js.map +1 -0
- package/dist/md/cli/index.d.ts +3 -0
- package/dist/md/cli/index.d.ts.map +1 -0
- package/dist/md/cli/index.js +99 -0
- package/dist/md/cli/index.js.map +1 -0
- package/dist/md/cli/lint.d.ts +11 -0
- package/dist/md/cli/lint.d.ts.map +1 -0
- package/dist/md/cli/lint.js +165 -0
- package/dist/md/cli/lint.js.map +1 -0
- package/dist/md/cli/list.d.ts +16 -0
- package/dist/md/cli/list.d.ts.map +1 -0
- package/dist/md/cli/list.js +85 -0
- package/dist/md/cli/list.js.map +1 -0
- package/dist/md/cli/program.d.ts +11 -0
- package/dist/md/cli/program.d.ts.map +1 -0
- package/dist/md/cli/program.js +104 -0
- package/dist/md/cli/program.js.map +1 -0
- package/dist/md/cli/validate.d.ts +8 -0
- package/dist/md/cli/validate.d.ts.map +1 -0
- package/dist/md/cli/validate.js +82 -0
- package/dist/md/cli/validate.js.map +1 -0
- package/dist/md/constants.d.ts +69 -0
- package/dist/md/constants.d.ts.map +1 -0
- package/dist/md/constants.js +69 -0
- package/dist/md/constants.js.map +1 -0
- package/dist/md/extractor/index.d.ts +57 -0
- package/dist/md/extractor/index.d.ts.map +1 -0
- package/dist/md/extractor/index.js +365 -0
- package/dist/md/extractor/index.js.map +1 -0
- package/dist/md/index.d.ts +26 -0
- package/dist/md/index.d.ts.map +1 -0
- package/dist/md/index.js +30 -0
- package/dist/md/index.js.map +1 -0
- package/dist/md/linter/index.d.ts +20 -0
- package/dist/md/linter/index.d.ts.map +1 -0
- package/dist/md/linter/index.js +421 -0
- package/dist/md/linter/index.js.map +1 -0
- package/dist/md/linter/token-optimizer.d.ts +66 -0
- package/dist/md/linter/token-optimizer.d.ts.map +1 -0
- package/dist/md/linter/token-optimizer.js +292 -0
- package/dist/md/linter/token-optimizer.js.map +1 -0
- package/dist/md/lister/index.d.ts +42 -0
- package/dist/md/lister/index.d.ts.map +1 -0
- package/dist/md/lister/index.js +317 -0
- package/dist/md/lister/index.js.map +1 -0
- package/dist/md/parser/heading-numbers.d.ts +43 -0
- package/dist/md/parser/heading-numbers.d.ts.map +1 -0
- package/dist/md/parser/heading-numbers.js +97 -0
- package/dist/md/parser/heading-numbers.js.map +1 -0
- package/dist/md/parser/section-meta.d.ts +50 -0
- package/dist/md/parser/section-meta.d.ts.map +1 -0
- package/dist/md/parser/section-meta.js +212 -0
- package/dist/md/parser/section-meta.js.map +1 -0
- package/dist/md/parser/template.d.ts +56 -0
- package/dist/md/parser/template.d.ts.map +1 -0
- package/dist/md/parser/template.js +122 -0
- package/dist/md/parser/template.js.map +1 -0
- package/dist/md/plugins/loader.d.ts +15 -0
- package/dist/md/plugins/loader.d.ts.map +1 -0
- package/dist/md/plugins/loader.js +80 -0
- package/dist/md/plugins/loader.js.map +1 -0
- package/dist/md/plugins/normalize-headings.d.ts +43 -0
- package/dist/md/plugins/normalize-headings.d.ts.map +1 -0
- package/dist/md/plugins/normalize-headings.js +51 -0
- package/dist/md/plugins/normalize-headings.js.map +1 -0
- package/dist/md/plugins/normalize-whitespace.d.ts +46 -0
- package/dist/md/plugins/normalize-whitespace.d.ts.map +1 -0
- package/dist/md/plugins/normalize-whitespace.js +86 -0
- package/dist/md/plugins/normalize-whitespace.js.map +1 -0
- package/dist/md/plugins/remove-badges.d.ts +36 -0
- package/dist/md/plugins/remove-badges.d.ts.map +1 -0
- package/dist/md/plugins/remove-badges.js +59 -0
- package/dist/md/plugins/remove-badges.js.map +1 -0
- package/dist/md/plugins/remove-comments.d.ts +27 -0
- package/dist/md/plugins/remove-comments.d.ts.map +1 -0
- package/dist/md/plugins/remove-comments.js +40 -0
- package/dist/md/plugins/remove-comments.js.map +1 -0
- package/dist/md/plugins/remove-duplicates.d.ts +40 -0
- package/dist/md/plugins/remove-duplicates.d.ts.map +1 -0
- package/dist/md/plugins/remove-duplicates.js +72 -0
- package/dist/md/plugins/remove-duplicates.js.map +1 -0
- package/dist/md/plugins/remove-internal-links.d.ts +38 -0
- package/dist/md/plugins/remove-internal-links.d.ts.map +1 -0
- package/dist/md/plugins/remove-internal-links.js +66 -0
- package/dist/md/plugins/remove-internal-links.js.map +1 -0
- package/dist/md/plugins/strip-heading-numbers.d.ts +35 -0
- package/dist/md/plugins/strip-heading-numbers.d.ts.map +1 -0
- package/dist/md/plugins/strip-heading-numbers.js +59 -0
- package/dist/md/plugins/strip-heading-numbers.js.map +1 -0
- package/dist/md/plugins/strip-section-meta.d.ts +37 -0
- package/dist/md/plugins/strip-section-meta.d.ts.map +1 -0
- package/dist/md/plugins/strip-section-meta.js +62 -0
- package/dist/md/plugins/strip-section-meta.js.map +1 -0
- package/dist/md/types/config.d.ts +260 -0
- package/dist/md/types/config.d.ts.map +1 -0
- package/dist/md/types/config.js +156 -0
- package/dist/md/types/config.js.map +1 -0
- package/dist/md/types/document.d.ts +37 -0
- package/dist/md/types/document.d.ts.map +1 -0
- package/dist/md/types/document.js +2 -0
- package/dist/md/types/document.js.map +1 -0
- package/dist/md/types/validation.d.ts +107 -0
- package/dist/md/types/validation.d.ts.map +1 -0
- package/dist/md/types/validation.js +2 -0
- package/dist/md/types/validation.js.map +1 -0
- package/dist/md/utils/code-blocks.d.ts +136 -0
- package/dist/md/utils/code-blocks.d.ts.map +1 -0
- package/dist/md/utils/code-blocks.js +178 -0
- package/dist/md/utils/code-blocks.js.map +1 -0
- package/dist/md/utils/config.d.ts +10 -0
- package/dist/md/utils/config.d.ts.map +1 -0
- package/dist/md/utils/config.js +99 -0
- package/dist/md/utils/config.js.map +1 -0
- package/dist/md/utils/file-collector.d.ts +78 -0
- package/dist/md/utils/file-collector.d.ts.map +1 -0
- package/dist/md/utils/file-collector.js +100 -0
- package/dist/md/utils/file-collector.js.map +1 -0
- package/dist/md/utils/markdown.d.ts +18 -0
- package/dist/md/utils/markdown.d.ts.map +1 -0
- package/dist/md/utils/markdown.js +93 -0
- package/dist/md/utils/markdown.js.map +1 -0
- package/dist/md/utils/remark.d.ts +91 -0
- package/dist/md/utils/remark.d.ts.map +1 -0
- package/dist/md/utils/remark.js +125 -0
- package/dist/md/utils/remark.js.map +1 -0
- package/dist/md/utils/tokens.d.ts +9 -0
- package/dist/md/utils/tokens.d.ts.map +1 -0
- package/dist/md/utils/tokens.js +31 -0
- package/dist/md/utils/tokens.js.map +1 -0
- package/dist/md/validator/index.d.ts +40 -0
- package/dist/md/validator/index.d.ts.map +1 -0
- package/dist/md/validator/index.js +299 -0
- package/dist/md/validator/index.js.map +1 -0
- package/dist/parsers/details-jsdoc.d.ts +42 -0
- package/dist/parsers/details-jsdoc.d.ts.map +1 -0
- package/dist/parsers/details-jsdoc.js +256 -0
- package/dist/parsers/details-jsdoc.js.map +1 -0
- package/dist/parsers/details-zod.d.ts +22 -0
- package/dist/parsers/details-zod.d.ts.map +1 -0
- package/dist/parsers/details-zod.js +146 -0
- package/dist/parsers/details-zod.js.map +1 -0
- package/dist/parsers/drizzle-schema.d.ts +92 -0
- package/dist/parsers/drizzle-schema.d.ts.map +1 -0
- package/dist/parsers/drizzle-schema.js +376 -0
- package/dist/parsers/drizzle-schema.js.map +1 -0
- package/dist/parsers/feature-map-tags.d.ts +45 -0
- package/dist/parsers/feature-map-tags.d.ts.map +1 -0
- package/dist/parsers/feature-map-tags.js +292 -0
- package/dist/parsers/feature-map-tags.js.map +1 -0
- package/dist/parsers/feature-map-type-extraction.d.ts +62 -0
- package/dist/parsers/feature-map-type-extraction.d.ts.map +1 -0
- package/dist/parsers/feature-map-type-extraction.js +347 -0
- package/dist/parsers/feature-map-type-extraction.js.map +1 -0
- package/dist/parsers/feature-map-utils.d.ts +34 -0
- package/dist/parsers/feature-map-utils.d.ts.map +1 -0
- package/dist/parsers/feature-map-utils.js +101 -0
- package/dist/parsers/feature-map-utils.js.map +1 -0
- package/dist/parsers/jsdoc-common.d.ts +209 -0
- package/dist/parsers/jsdoc-common.d.ts.map +1 -0
- package/dist/parsers/jsdoc-common.js +650 -0
- package/dist/parsers/jsdoc-common.js.map +1 -0
- package/dist/parsers/jsdoc.d.ts +76 -0
- package/dist/parsers/jsdoc.d.ts.map +1 -0
- package/dist/parsers/jsdoc.js +238 -0
- package/dist/parsers/jsdoc.js.map +1 -0
- package/dist/parsers/screenshot-annotations.d.ts +96 -0
- package/dist/parsers/screenshot-annotations.d.ts.map +1 -0
- package/dist/parsers/screenshot-annotations.js +227 -0
- package/dist/parsers/screenshot-annotations.js.map +1 -0
- package/dist/parsers/test-annotations.d.ts +46 -0
- package/dist/parsers/test-annotations.d.ts.map +1 -0
- package/dist/parsers/test-annotations.js +393 -0
- package/dist/parsers/test-annotations.js.map +1 -0
- package/dist/parsers/test-categorization.d.ts +42 -0
- package/dist/parsers/test-categorization.d.ts.map +1 -0
- package/dist/parsers/test-categorization.js +182 -0
- package/dist/parsers/test-categorization.js.map +1 -0
- package/dist/parsers/zod-schema.d.ts +105 -0
- package/dist/parsers/zod-schema.d.ts.map +1 -0
- package/dist/parsers/zod-schema.js +271 -0
- package/dist/parsers/zod-schema.js.map +1 -0
- package/dist/utils/action-inference.d.ts +23 -0
- package/dist/utils/action-inference.d.ts.map +1 -0
- package/dist/utils/action-inference.js +36 -0
- package/dist/utils/action-inference.js.map +1 -0
- package/dist/utils/app-inference.d.ts +31 -0
- package/dist/utils/app-inference.d.ts.map +1 -0
- package/dist/utils/app-inference.js +41 -0
- package/dist/utils/app-inference.js.map +1 -0
- package/dist/utils/auto-infer.d.ts +93 -0
- package/dist/utils/auto-infer.d.ts.map +1 -0
- package/dist/utils/auto-infer.js +184 -0
- package/dist/utils/auto-infer.js.map +1 -0
- package/dist/utils/config.d.ts +709 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/config.js +504 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/file.d.ts +46 -0
- package/dist/utils/file.d.ts.map +1 -0
- package/dist/utils/file.js +103 -0
- package/dist/utils/file.js.map +1 -0
- package/dist/utils/formatters.d.ts +123 -0
- package/dist/utils/formatters.d.ts.map +1 -0
- package/dist/utils/formatters.js +199 -0
- package/dist/utils/formatters.js.map +1 -0
- package/dist/utils/gh-config.d.ts +99 -0
- package/dist/utils/gh-config.d.ts.map +1 -0
- package/dist/utils/gh-config.js +247 -0
- package/dist/utils/gh-config.js.map +1 -0
- package/dist/utils/github.d.ts +108 -0
- package/dist/utils/github.d.ts.map +1 -0
- package/dist/utils/github.js +320 -0
- package/dist/utils/github.js.map +1 -0
- package/dist/utils/html.d.ts +107 -0
- package/dist/utils/html.d.ts.map +1 -0
- package/dist/utils/html.js +376 -0
- package/dist/utils/html.js.map +1 -0
- package/dist/utils/i18n.d.ts +40 -0
- package/dist/utils/i18n.d.ts.map +1 -0
- package/dist/utils/i18n.js +148 -0
- package/dist/utils/i18n.js.map +1 -0
- package/dist/utils/logger.d.ts +20 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +49 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/project-fields.d.ts +71 -0
- package/dist/utils/project-fields.d.ts.map +1 -0
- package/dist/utils/project-fields.js +318 -0
- package/dist/utils/project-fields.js.map +1 -0
- package/dist/utils/repo-pairs.d.ts +94 -0
- package/dist/utils/repo-pairs.d.ts.map +1 -0
- package/dist/utils/repo-pairs.js +196 -0
- package/dist/utils/repo-pairs.js.map +1 -0
- package/dist/utils/route-inference.d.ts +81 -0
- package/dist/utils/route-inference.d.ts.map +1 -0
- package/dist/utils/route-inference.js +137 -0
- package/dist/utils/route-inference.js.map +1 -0
- package/dist/utils/sanitize.d.ts +27 -0
- package/dist/utils/sanitize.d.ts.map +1 -0
- package/dist/utils/sanitize.js +38 -0
- package/dist/utils/sanitize.js.map +1 -0
- package/dist/utils/setup-check.d.ts +48 -0
- package/dist/utils/setup-check.d.ts.map +1 -0
- package/dist/utils/setup-check.js +226 -0
- package/dist/utils/setup-check.js.map +1 -0
- package/dist/utils/shirokumaignore.d.ts +55 -0
- package/dist/utils/shirokumaignore.d.ts.map +1 -0
- package/dist/utils/shirokumaignore.js +94 -0
- package/dist/utils/shirokumaignore.js.map +1 -0
- package/dist/utils/skills-repo.d.ts +353 -0
- package/dist/utils/skills-repo.d.ts.map +1 -0
- package/dist/utils/skills-repo.js +793 -0
- package/dist/utils/skills-repo.js.map +1 -0
- package/dist/utils/status-workflow.d.ts +54 -0
- package/dist/utils/status-workflow.d.ts.map +1 -0
- package/dist/utils/status-workflow.js +103 -0
- package/dist/utils/status-workflow.js.map +1 -0
- package/dist/validators/frontmatter.d.ts +41 -0
- package/dist/validators/frontmatter.d.ts.map +1 -0
- package/dist/validators/frontmatter.js +117 -0
- package/dist/validators/frontmatter.js.map +1 -0
- package/dist/validators/link-checker.d.ts +48 -0
- package/dist/validators/link-checker.d.ts.map +1 -0
- package/dist/validators/link-checker.js +108 -0
- package/dist/validators/link-checker.js.map +1 -0
- package/dist/validators/markdown-structure.d.ts +50 -0
- package/dist/validators/markdown-structure.d.ts.map +1 -0
- package/dist/validators/markdown-structure.js +253 -0
- package/dist/validators/markdown-structure.js.map +1 -0
- package/i18n/cli/en.json +164 -0
- package/i18n/cli/ja.json +164 -0
- package/i18n/discussion/en.json +191 -0
- package/i18n/discussion/ja.json +191 -0
- package/package.json +113 -0
- package/portal/app/api-tools/api-tools-client.tsx +411 -0
- package/portal/app/api-tools/api-tools-document.tsx +240 -0
- package/portal/app/api-tools/page.tsx +56 -0
- package/portal/app/api-tools/swagger-view.tsx +114 -0
- package/portal/app/apps/[appId]/[type]/[module]/[item]/item-tabs-client.tsx +71 -0
- package/portal/app/apps/[appId]/[type]/[module]/[item]/page.tsx +1422 -0
- package/portal/app/apps/[appId]/[type]/[module]/page.tsx +373 -0
- package/portal/app/apps/[appId]/feature-map/feature-map-app-document.tsx +298 -0
- package/portal/app/apps/[appId]/feature-map/page.tsx +224 -0
- package/portal/app/apps/[appId]/i18n/page.tsx +139 -0
- package/portal/app/apps/[appId]/test-cases/page.tsx +840 -0
- package/portal/app/apps/[appId]/tools/[tool]/page.tsx +351 -0
- package/portal/app/apps/[appId]/tools/api-tools-client.tsx +429 -0
- package/portal/app/apps/[appId]/tools/page.tsx +119 -0
- package/portal/app/db-schema/[db]/[table]/page.tsx +235 -0
- package/portal/app/db-schema/[db]/diagram/page.tsx +81 -0
- package/portal/app/db-schema/[db]/page.tsx +148 -0
- package/portal/app/db-schema/db-schema-document.tsx +100 -0
- package/portal/app/db-schema/diagram/client.tsx +211 -0
- package/portal/app/db-schema/diagram/page.tsx +20 -0
- package/portal/app/db-schema/page.tsx +145 -0
- package/portal/app/db-schema/table-detail-document.tsx +710 -0
- package/portal/app/db-schema/table-detail.tsx +747 -0
- package/portal/app/db-schema/table-list-document.tsx +224 -0
- package/portal/app/db-schema/table-list.tsx +247 -0
- package/portal/app/details/[type]/[module]/[item]/item-tabs-client.tsx +71 -0
- package/portal/app/details/[type]/[module]/[item]/page.tsx +1286 -0
- package/portal/app/details/[type]/[module]/page.tsx +884 -0
- package/portal/app/feature-map/feature-map-client.tsx +681 -0
- package/portal/app/feature-map/feature-map-document.tsx +313 -0
- package/portal/app/feature-map/page.tsx +438 -0
- package/portal/app/globals.css +205 -0
- package/portal/app/i18n/[...namespace]/page.tsx +190 -0
- package/portal/app/i18n/i18n-client.tsx +369 -0
- package/portal/app/i18n/page.tsx +339 -0
- package/portal/app/layout.tsx +37 -0
- package/portal/app/overview/page.tsx +65 -0
- package/portal/app/packages/[packageId]/page.tsx +201 -0
- package/portal/app/packages/page.tsx +148 -0
- package/portal/app/page.tsx +568 -0
- package/portal/app/test-cases/[file]/[line]/page.tsx +455 -0
- package/portal/app/test-cases/[file]/[line]/test-detail-document.tsx +335 -0
- package/portal/app/test-cases/[file]/page.tsx +323 -0
- package/portal/app/test-cases/[file]/test-file-document.tsx +335 -0
- package/portal/app/test-cases/page.tsx +546 -0
- package/portal/app/test-cases/test-cases-document.tsx +384 -0
- package/portal/components/code-block.tsx +57 -0
- package/portal/components/document/doc-params-table.tsx +71 -0
- package/portal/components/document/doc-section.tsx +133 -0
- package/portal/components/document/doc-table.tsx +119 -0
- package/portal/components/document/index.ts +9 -0
- package/portal/components/drawflow-er-diagram.tsx +607 -0
- package/portal/components/interactive-er-diagram.tsx +228 -0
- package/portal/components/layout/app-sidebar.tsx +490 -0
- package/portal/components/layout/er-sidebar.tsx +116 -0
- package/portal/components/layout/global-header.tsx +117 -0
- package/portal/components/layout/layout-content.tsx +48 -0
- package/portal/components/markdown-content.tsx +120 -0
- package/portal/components/mermaid-diagram.tsx +83 -0
- package/portal/components/reactflow-er-diagram.tsx +475 -0
- package/portal/components/search-dialog.tsx +268 -0
- package/portal/components/shared/coverage-score-bar.tsx +144 -0
- package/portal/components/swagger/endpoint-accordion.tsx +117 -0
- package/portal/components/swagger/index.ts +7 -0
- package/portal/components/swagger/method-badge.tsx +55 -0
- package/portal/components/swagger/params-table.tsx +78 -0
- package/portal/components/tabs-with-hash.tsx +43 -0
- package/portal/components/test/index.ts +2 -0
- package/portal/components/test/test-bdd-card.tsx +192 -0
- package/portal/components/test/test-matrix.tsx +242 -0
- package/portal/components/ui/accordion.tsx +66 -0
- package/portal/components/ui/badge.tsx +46 -0
- package/portal/components/ui/breadcrumb.tsx +109 -0
- package/portal/components/ui/button.tsx +62 -0
- package/portal/components/ui/card.tsx +92 -0
- package/portal/components/ui/collapsible.tsx +33 -0
- package/portal/components/ui/dialog.tsx +118 -0
- package/portal/components/ui/progress.tsx +28 -0
- package/portal/components/ui/scroll-area.tsx +58 -0
- package/portal/components/ui/sheet.tsx +139 -0
- package/portal/components/ui/table.tsx +116 -0
- package/portal/components/ui/tabs.tsx +66 -0
- package/portal/components.json +21 -0
- package/portal/lib/constants/test-categories.ts +186 -0
- package/portal/lib/data-loader.ts +1181 -0
- package/portal/lib/db-schema-utils.ts +182 -0
- package/portal/lib/format.ts +43 -0
- package/portal/lib/hooks/use-hash-tab.ts +144 -0
- package/portal/lib/path-utils.ts +25 -0
- package/portal/lib/search-index-generator.ts +214 -0
- package/portal/lib/search.ts +126 -0
- package/portal/lib/sidebar-context.tsx +111 -0
- package/portal/lib/types.ts +740 -0
- package/portal/lib/utils.ts +6 -0
- package/portal/next.config.ts +18 -0
- package/portal/package.json +45 -0
- package/portal/postcss.config.mjs +8 -0
- package/portal/tsconfig.json +42 -0
- package/portal/types/drawflow.d.ts +80 -0
- package/templates/README.md +73 -0
- package/templates/coverage.html +367 -0
- package/templates/dark-theme.css +443 -0
- package/templates/discussion/adr.yml.hbs +65 -0
- package/templates/discussion/handovers.yml.hbs +57 -0
- package/templates/discussion/knowledge.yml.hbs +60 -0
- package/templates/discussion/reports.yml.hbs +68 -0
- package/templates/discussion/research.yml.hbs +61 -0
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import { usePathname } from "next/navigation";
|
|
5
|
+
import {
|
|
6
|
+
Home,
|
|
7
|
+
FileText,
|
|
8
|
+
Layers,
|
|
9
|
+
Database,
|
|
10
|
+
CheckCircle,
|
|
11
|
+
Monitor,
|
|
12
|
+
Component,
|
|
13
|
+
Zap,
|
|
14
|
+
ChevronDown,
|
|
15
|
+
ChevronRight,
|
|
16
|
+
PanelLeftClose,
|
|
17
|
+
Bot,
|
|
18
|
+
Globe,
|
|
19
|
+
Wrench,
|
|
20
|
+
Languages,
|
|
21
|
+
Package,
|
|
22
|
+
type LucideIcon,
|
|
23
|
+
} from "lucide-react";
|
|
24
|
+
import type { ApplicationsData, AppConfig } from "@/lib/types";
|
|
25
|
+
import { cn } from "@/lib/utils";
|
|
26
|
+
import { Button } from "@/components/ui/button";
|
|
27
|
+
import { ScrollArea } from "@/components/ui/scroll-area";
|
|
28
|
+
import {
|
|
29
|
+
Collapsible,
|
|
30
|
+
CollapsibleContent,
|
|
31
|
+
CollapsibleTrigger,
|
|
32
|
+
} from "@/components/ui/collapsible";
|
|
33
|
+
import { useState } from "react";
|
|
34
|
+
import { useSidebar } from "@/lib/sidebar-context";
|
|
35
|
+
|
|
36
|
+
export interface SidebarModule {
|
|
37
|
+
name: string;
|
|
38
|
+
screens?: number;
|
|
39
|
+
components?: number;
|
|
40
|
+
actions?: number;
|
|
41
|
+
tables?: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface SidebarTestCategory {
|
|
45
|
+
name: string;
|
|
46
|
+
slug: string;
|
|
47
|
+
count: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface SidebarNavData {
|
|
51
|
+
modules: SidebarModule[];
|
|
52
|
+
testCategories: SidebarTestCategory[];
|
|
53
|
+
hasFeatureMap: boolean;
|
|
54
|
+
hasDbSchema: boolean;
|
|
55
|
+
hasTestCases: boolean;
|
|
56
|
+
hasOverview: boolean;
|
|
57
|
+
hasApiTools: boolean;
|
|
58
|
+
hasI18n: boolean;
|
|
59
|
+
hasPackages: boolean;
|
|
60
|
+
applications?: ApplicationsData | null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Icon mapping for string icon names
|
|
64
|
+
const iconMap: Record<string, LucideIcon> = {
|
|
65
|
+
"file-text": FileText,
|
|
66
|
+
"database": Database,
|
|
67
|
+
"layers": Layers,
|
|
68
|
+
"check-circle": CheckCircle,
|
|
69
|
+
"globe": Globe,
|
|
70
|
+
"bot": Bot,
|
|
71
|
+
"wrench": Wrench,
|
|
72
|
+
"languages": Languages,
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// Color mapping for app colors
|
|
76
|
+
const colorMap: Record<string, string> = {
|
|
77
|
+
blue: "text-accent-blue",
|
|
78
|
+
purple: "text-accent-purple",
|
|
79
|
+
green: "text-accent-green",
|
|
80
|
+
yellow: "text-accent-yellow",
|
|
81
|
+
orange: "text-accent-orange",
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
function getIcon(iconName: string): LucideIcon {
|
|
85
|
+
return iconMap[iconName] || FileText;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function getColorClass(color: string): string {
|
|
89
|
+
return colorMap[color] || "text-muted-foreground";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface NavItemProps {
|
|
93
|
+
href: string;
|
|
94
|
+
icon: React.ElementType;
|
|
95
|
+
label: string;
|
|
96
|
+
isActive?: boolean;
|
|
97
|
+
indent?: boolean;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function NavItem({ href, icon: Icon, label, isActive, indent }: NavItemProps) {
|
|
101
|
+
return (
|
|
102
|
+
<Button
|
|
103
|
+
asChild
|
|
104
|
+
variant="ghost"
|
|
105
|
+
className={cn(
|
|
106
|
+
"w-full justify-start gap-2 px-2",
|
|
107
|
+
indent && "pl-6",
|
|
108
|
+
isActive && "bg-primary/10 text-primary"
|
|
109
|
+
)}
|
|
110
|
+
>
|
|
111
|
+
<Link href={href}>
|
|
112
|
+
<Icon className="h-4 w-4" />
|
|
113
|
+
<span className="truncate">{label}</span>
|
|
114
|
+
</Link>
|
|
115
|
+
</Button>
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
interface NavSectionProps {
|
|
120
|
+
title: string;
|
|
121
|
+
icon: React.ElementType;
|
|
122
|
+
href: string;
|
|
123
|
+
isActive: boolean;
|
|
124
|
+
children?: React.ReactNode;
|
|
125
|
+
defaultOpen?: boolean;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function NavSection({
|
|
129
|
+
title,
|
|
130
|
+
icon: Icon,
|
|
131
|
+
href,
|
|
132
|
+
isActive,
|
|
133
|
+
children,
|
|
134
|
+
defaultOpen = false,
|
|
135
|
+
}: NavSectionProps) {
|
|
136
|
+
const [isOpen, setIsOpen] = useState(defaultOpen || isActive);
|
|
137
|
+
|
|
138
|
+
if (!children) {
|
|
139
|
+
return (
|
|
140
|
+
<NavItem
|
|
141
|
+
href={href}
|
|
142
|
+
icon={Icon}
|
|
143
|
+
label={title}
|
|
144
|
+
isActive={isActive}
|
|
145
|
+
/>
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return (
|
|
150
|
+
<Collapsible open={isOpen} onOpenChange={setIsOpen}>
|
|
151
|
+
<CollapsibleTrigger asChild>
|
|
152
|
+
<Button
|
|
153
|
+
variant="ghost"
|
|
154
|
+
className={cn(
|
|
155
|
+
"w-full justify-between gap-2 px-2",
|
|
156
|
+
isActive && "bg-primary/10 text-primary"
|
|
157
|
+
)}
|
|
158
|
+
>
|
|
159
|
+
<div className="flex items-center gap-2">
|
|
160
|
+
<Icon className="h-4 w-4" />
|
|
161
|
+
<span className="truncate">{title}</span>
|
|
162
|
+
</div>
|
|
163
|
+
{isOpen ? (
|
|
164
|
+
<ChevronDown className="h-4 w-4" />
|
|
165
|
+
) : (
|
|
166
|
+
<ChevronRight className="h-4 w-4" />
|
|
167
|
+
)}
|
|
168
|
+
</Button>
|
|
169
|
+
</CollapsibleTrigger>
|
|
170
|
+
<CollapsibleContent className="pl-2 pt-1 space-y-1">
|
|
171
|
+
{children}
|
|
172
|
+
</CollapsibleContent>
|
|
173
|
+
</Collapsible>
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
interface AppSidebarProps {
|
|
178
|
+
navData: SidebarNavData;
|
|
179
|
+
className?: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export function AppSidebar({ navData, className }: AppSidebarProps) {
|
|
183
|
+
const pathname = usePathname();
|
|
184
|
+
const { collapse } = useSidebar();
|
|
185
|
+
|
|
186
|
+
const isOverviewActive = pathname === "/overview";
|
|
187
|
+
const isFeatureMapActive = pathname.startsWith("/feature-map") || pathname.startsWith("/details");
|
|
188
|
+
const isDbSchemaActive = pathname.startsWith("/db-schema");
|
|
189
|
+
const isTestCasesActive = pathname.startsWith("/test-cases");
|
|
190
|
+
|
|
191
|
+
// Layer icons and colors
|
|
192
|
+
const layerConfigs = {
|
|
193
|
+
screens: { icon: Monitor, color: "text-accent-blue" },
|
|
194
|
+
components: { icon: Component, color: "text-accent-green" },
|
|
195
|
+
actions: { icon: Zap, color: "text-accent-yellow" },
|
|
196
|
+
tables: { icon: Database, color: "text-accent-purple" },
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
return (
|
|
200
|
+
<aside className={cn("flex flex-col min-h-0 border-r border-border bg-card", className)}>
|
|
201
|
+
{/* Collapse Button */}
|
|
202
|
+
<div className="flex items-center justify-end px-3 py-2 border-b border-border shrink-0">
|
|
203
|
+
<Button
|
|
204
|
+
variant="ghost"
|
|
205
|
+
size="icon"
|
|
206
|
+
className="h-7 w-7"
|
|
207
|
+
onClick={collapse}
|
|
208
|
+
title="サイドバーを閉じる"
|
|
209
|
+
>
|
|
210
|
+
<PanelLeftClose className="h-4 w-4" />
|
|
211
|
+
</Button>
|
|
212
|
+
</div>
|
|
213
|
+
<ScrollArea className="flex-1 min-h-0 px-3 py-4">
|
|
214
|
+
<nav className="space-y-1">
|
|
215
|
+
{/* Home */}
|
|
216
|
+
<NavItem
|
|
217
|
+
href="/"
|
|
218
|
+
icon={Home}
|
|
219
|
+
label="ホーム"
|
|
220
|
+
isActive={pathname === "/"}
|
|
221
|
+
/>
|
|
222
|
+
|
|
223
|
+
{/* Multi-App Mode: Show grouped navigation */}
|
|
224
|
+
{navData.applications ? (
|
|
225
|
+
<>
|
|
226
|
+
{/* Shared Sections */}
|
|
227
|
+
<div className="pt-3">
|
|
228
|
+
<div className="px-2 py-1 text-xs font-semibold text-muted-foreground uppercase tracking-wider">
|
|
229
|
+
共通
|
|
230
|
+
</div>
|
|
231
|
+
<div className="space-y-1 mt-1">
|
|
232
|
+
{/* Configured shared sections */}
|
|
233
|
+
{navData.applications.shared.sections
|
|
234
|
+
.filter(s => s.available !== false)
|
|
235
|
+
.map((section) => {
|
|
236
|
+
const Icon = getIcon(section.icon || "file-text");
|
|
237
|
+
const href = section.type === "overview" ? "/overview" :
|
|
238
|
+
section.type === "dbSchema" ? "/db-schema" :
|
|
239
|
+
section.type === "testCases" ? "/test-cases" : "/";
|
|
240
|
+
const isActive = section.type === "overview" ? isOverviewActive :
|
|
241
|
+
section.type === "dbSchema" ? isDbSchemaActive :
|
|
242
|
+
section.type === "testCases" ? isTestCasesActive : false;
|
|
243
|
+
return (
|
|
244
|
+
<div key={section.type} className="flex items-center">
|
|
245
|
+
<NavItem
|
|
246
|
+
href={href}
|
|
247
|
+
icon={Icon}
|
|
248
|
+
label={section.label}
|
|
249
|
+
isActive={isActive}
|
|
250
|
+
/>
|
|
251
|
+
{section.count !== undefined && (
|
|
252
|
+
<span className="ml-auto mr-2 text-xs text-muted-foreground">
|
|
253
|
+
{section.count}
|
|
254
|
+
</span>
|
|
255
|
+
)}
|
|
256
|
+
</div>
|
|
257
|
+
);
|
|
258
|
+
})}
|
|
259
|
+
{/* Always show global views for feature map, test cases, i18n */}
|
|
260
|
+
{navData.hasFeatureMap && (
|
|
261
|
+
<div className="flex items-center">
|
|
262
|
+
<NavItem
|
|
263
|
+
href="/feature-map"
|
|
264
|
+
icon={Layers}
|
|
265
|
+
label="全体機能マップ"
|
|
266
|
+
isActive={pathname === "/feature-map" || pathname === "/feature-map/"}
|
|
267
|
+
/>
|
|
268
|
+
</div>
|
|
269
|
+
)}
|
|
270
|
+
{navData.hasTestCases && (
|
|
271
|
+
<div className="flex items-center">
|
|
272
|
+
<NavItem
|
|
273
|
+
href="/test-cases"
|
|
274
|
+
icon={CheckCircle}
|
|
275
|
+
label="全体テスト"
|
|
276
|
+
isActive={pathname === "/test-cases" || pathname === "/test-cases/"}
|
|
277
|
+
/>
|
|
278
|
+
</div>
|
|
279
|
+
)}
|
|
280
|
+
{navData.hasI18n && (
|
|
281
|
+
<div className="flex items-center">
|
|
282
|
+
<NavItem
|
|
283
|
+
href="/i18n"
|
|
284
|
+
icon={Languages}
|
|
285
|
+
label="全体翻訳"
|
|
286
|
+
isActive={pathname === "/i18n" || pathname === "/i18n/"}
|
|
287
|
+
/>
|
|
288
|
+
</div>
|
|
289
|
+
)}
|
|
290
|
+
{navData.hasPackages && (
|
|
291
|
+
<div className="flex items-center">
|
|
292
|
+
<NavItem
|
|
293
|
+
href="/packages"
|
|
294
|
+
icon={Package}
|
|
295
|
+
label="共有パッケージ"
|
|
296
|
+
isActive={pathname === "/packages" || pathname.startsWith("/packages/")}
|
|
297
|
+
/>
|
|
298
|
+
</div>
|
|
299
|
+
)}
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
|
|
303
|
+
{/* App Sections */}
|
|
304
|
+
{navData.applications.apps.map((app) => {
|
|
305
|
+
const AppIcon = getIcon(app.icon);
|
|
306
|
+
const appColorClass = getColorClass(app.color);
|
|
307
|
+
|
|
308
|
+
return (
|
|
309
|
+
<div key={app.id} className="pt-3">
|
|
310
|
+
<div className="px-2 py-1 text-xs font-semibold text-muted-foreground uppercase tracking-wider flex items-center gap-1.5">
|
|
311
|
+
<AppIcon className={cn("h-3 w-3", appColorClass)} />
|
|
312
|
+
{app.name}
|
|
313
|
+
</div>
|
|
314
|
+
<div className="space-y-1 mt-1">
|
|
315
|
+
{app.sections
|
|
316
|
+
.filter(s => s.available !== false)
|
|
317
|
+
.map((section) => {
|
|
318
|
+
const SectionIcon = getIcon(section.icon || "file-text");
|
|
319
|
+
let href = "/";
|
|
320
|
+
let isActive = false;
|
|
321
|
+
|
|
322
|
+
// Use app-specific routes for multi-app projects
|
|
323
|
+
if (section.type === "featureMap") {
|
|
324
|
+
href = `/apps/${app.id}/feature-map`;
|
|
325
|
+
isActive = pathname === href || pathname.startsWith(`/apps/${app.id}/feature-map`);
|
|
326
|
+
} else if (section.type === "tools") {
|
|
327
|
+
href = `/apps/${app.id}/tools`;
|
|
328
|
+
isActive = pathname === href || pathname.startsWith(`/apps/${app.id}/tools`);
|
|
329
|
+
} else if (section.type === "testCases") {
|
|
330
|
+
href = `/apps/${app.id}/test-cases`;
|
|
331
|
+
isActive = pathname === href || pathname.startsWith(`/apps/${app.id}/test-cases`);
|
|
332
|
+
} else if (section.type === "i18n") {
|
|
333
|
+
href = `/apps/${app.id}/i18n`;
|
|
334
|
+
isActive = pathname === href || pathname.startsWith(`/apps/${app.id}/i18n`);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
return (
|
|
338
|
+
<div key={`${app.id}-${section.type}`} className="flex items-center">
|
|
339
|
+
<NavItem
|
|
340
|
+
href={href}
|
|
341
|
+
icon={SectionIcon}
|
|
342
|
+
label={section.label}
|
|
343
|
+
isActive={isActive}
|
|
344
|
+
/>
|
|
345
|
+
{section.count !== undefined && (
|
|
346
|
+
<span className="ml-auto mr-2 text-xs text-muted-foreground">
|
|
347
|
+
{section.count}
|
|
348
|
+
</span>
|
|
349
|
+
)}
|
|
350
|
+
</div>
|
|
351
|
+
);
|
|
352
|
+
})}
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
);
|
|
356
|
+
})}
|
|
357
|
+
</>
|
|
358
|
+
) : (
|
|
359
|
+
/* Legacy Mode: Flat navigation */
|
|
360
|
+
<>
|
|
361
|
+
{/* Overview */}
|
|
362
|
+
{navData.hasOverview && (
|
|
363
|
+
<NavItem
|
|
364
|
+
href="/overview"
|
|
365
|
+
icon={FileText}
|
|
366
|
+
label="概要"
|
|
367
|
+
isActive={isOverviewActive}
|
|
368
|
+
/>
|
|
369
|
+
)}
|
|
370
|
+
|
|
371
|
+
{/* Feature Map Section */}
|
|
372
|
+
{navData.hasFeatureMap && (
|
|
373
|
+
<NavSection
|
|
374
|
+
title="機能マップ"
|
|
375
|
+
icon={Layers}
|
|
376
|
+
href="/feature-map"
|
|
377
|
+
isActive={isFeatureMapActive}
|
|
378
|
+
defaultOpen={isFeatureMapActive}
|
|
379
|
+
>
|
|
380
|
+
{/* Overview link */}
|
|
381
|
+
<NavItem
|
|
382
|
+
href="/feature-map"
|
|
383
|
+
icon={Layers}
|
|
384
|
+
label="一覧"
|
|
385
|
+
isActive={pathname === "/feature-map"}
|
|
386
|
+
indent
|
|
387
|
+
/>
|
|
388
|
+
|
|
389
|
+
{/* Module links by layer */}
|
|
390
|
+
{navData.modules.length > 0 && (
|
|
391
|
+
<div className="mt-2 space-y-2">
|
|
392
|
+
{/* Group by layer type */}
|
|
393
|
+
{["screens", "components", "actions", "tables"].map((layer) => {
|
|
394
|
+
const layerConfig = layerConfigs[layer as keyof typeof layerConfigs];
|
|
395
|
+
const LayerIcon = layerConfig.icon;
|
|
396
|
+
const modulesWithLayer = navData.modules.filter(
|
|
397
|
+
(m) => (m[layer as keyof SidebarModule] as number) > 0
|
|
398
|
+
);
|
|
399
|
+
|
|
400
|
+
if (modulesWithLayer.length === 0) return null;
|
|
401
|
+
|
|
402
|
+
return (
|
|
403
|
+
<Collapsible key={layer} defaultOpen={false}>
|
|
404
|
+
<CollapsibleTrigger asChild>
|
|
405
|
+
<Button
|
|
406
|
+
variant="ghost"
|
|
407
|
+
size="sm"
|
|
408
|
+
className="w-full justify-between px-2 text-xs"
|
|
409
|
+
>
|
|
410
|
+
<div className="flex items-center gap-2">
|
|
411
|
+
<LayerIcon className={cn("h-3 w-3", layerConfig.color)} />
|
|
412
|
+
<span className="capitalize">{layer}</span>
|
|
413
|
+
</div>
|
|
414
|
+
<span className="text-muted-foreground">
|
|
415
|
+
{modulesWithLayer.length}
|
|
416
|
+
</span>
|
|
417
|
+
</Button>
|
|
418
|
+
</CollapsibleTrigger>
|
|
419
|
+
<CollapsibleContent className="pl-4 pt-1 space-y-0.5">
|
|
420
|
+
{modulesWithLayer.map((module) => (
|
|
421
|
+
<Button
|
|
422
|
+
key={module.name}
|
|
423
|
+
asChild
|
|
424
|
+
variant="ghost"
|
|
425
|
+
size="sm"
|
|
426
|
+
className="w-full justify-start px-2 py-1 h-auto text-xs"
|
|
427
|
+
>
|
|
428
|
+
<Link href={`/details/${layer}/${encodeURIComponent(module.name)}`}>
|
|
429
|
+
<span className="truncate">{module.name}</span>
|
|
430
|
+
<span className="ml-auto text-muted-foreground">
|
|
431
|
+
{module[layer as keyof SidebarModule]}
|
|
432
|
+
</span>
|
|
433
|
+
</Link>
|
|
434
|
+
</Button>
|
|
435
|
+
))}
|
|
436
|
+
</CollapsibleContent>
|
|
437
|
+
</Collapsible>
|
|
438
|
+
);
|
|
439
|
+
})}
|
|
440
|
+
</div>
|
|
441
|
+
)}
|
|
442
|
+
</NavSection>
|
|
443
|
+
)}
|
|
444
|
+
|
|
445
|
+
{/* DB Schema */}
|
|
446
|
+
{navData.hasDbSchema && (
|
|
447
|
+
<NavItem
|
|
448
|
+
href="/db-schema"
|
|
449
|
+
icon={Database}
|
|
450
|
+
label="DBスキーマ"
|
|
451
|
+
isActive={isDbSchemaActive}
|
|
452
|
+
/>
|
|
453
|
+
)}
|
|
454
|
+
|
|
455
|
+
{/* Test Cases */}
|
|
456
|
+
{navData.hasTestCases && (
|
|
457
|
+
<NavItem
|
|
458
|
+
href="/test-cases"
|
|
459
|
+
icon={CheckCircle}
|
|
460
|
+
label="テストケース"
|
|
461
|
+
isActive={isTestCasesActive}
|
|
462
|
+
/>
|
|
463
|
+
)}
|
|
464
|
+
|
|
465
|
+
{/* API Tools (MCP, REST, etc.) - shown when tools data exists */}
|
|
466
|
+
{navData.hasApiTools && (
|
|
467
|
+
<NavItem
|
|
468
|
+
href="/apps/mcp/tools"
|
|
469
|
+
icon={Bot}
|
|
470
|
+
label="API Tools"
|
|
471
|
+
isActive={pathname.startsWith("/apps/mcp/tools")}
|
|
472
|
+
/>
|
|
473
|
+
)}
|
|
474
|
+
|
|
475
|
+
{/* i18n */}
|
|
476
|
+
{navData.hasI18n && (
|
|
477
|
+
<NavItem
|
|
478
|
+
href="/i18n"
|
|
479
|
+
icon={Languages}
|
|
480
|
+
label="翻訳"
|
|
481
|
+
isActive={pathname.startsWith("/i18n")}
|
|
482
|
+
/>
|
|
483
|
+
)}
|
|
484
|
+
</>
|
|
485
|
+
)}
|
|
486
|
+
</nav>
|
|
487
|
+
</ScrollArea>
|
|
488
|
+
</aside>
|
|
489
|
+
);
|
|
490
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { PanelLeftClose, Database } from "lucide-react";
|
|
4
|
+
import { cn } from "@/lib/utils";
|
|
5
|
+
import { Button } from "@/components/ui/button";
|
|
6
|
+
import { ScrollArea } from "@/components/ui/scroll-area";
|
|
7
|
+
import { useSidebar } from "@/lib/sidebar-context";
|
|
8
|
+
|
|
9
|
+
interface TableInfo {
|
|
10
|
+
name: string;
|
|
11
|
+
category?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface ErSidebarProps {
|
|
15
|
+
tables: TableInfo[];
|
|
16
|
+
selectedTable: string | null;
|
|
17
|
+
onTableSelect: (tableName: string) => void;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Category colors for badges
|
|
22
|
+
const categoryColors: Record<string, string> = {
|
|
23
|
+
auth: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",
|
|
24
|
+
organization: "bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400",
|
|
25
|
+
project: "bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400",
|
|
26
|
+
session: "bg-cyan-100 text-cyan-700 dark:bg-cyan-900/30 dark:text-cyan-400",
|
|
27
|
+
entity: "bg-rose-100 text-rose-700 dark:bg-rose-900/30 dark:text-rose-400",
|
|
28
|
+
activity: "bg-indigo-100 text-indigo-700 dark:bg-indigo-900/30 dark:text-indigo-400",
|
|
29
|
+
token: "bg-orange-100 text-orange-700 dark:bg-orange-900/30 dark:text-orange-400",
|
|
30
|
+
content: "bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",
|
|
31
|
+
other: "bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-400",
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export function ErSidebar({
|
|
35
|
+
tables,
|
|
36
|
+
selectedTable,
|
|
37
|
+
onTableSelect,
|
|
38
|
+
className,
|
|
39
|
+
}: ErSidebarProps) {
|
|
40
|
+
const { collapse } = useSidebar();
|
|
41
|
+
|
|
42
|
+
// Group tables by category
|
|
43
|
+
const tablesByCategory = tables.reduce((acc, table) => {
|
|
44
|
+
const category = table.category || "other";
|
|
45
|
+
if (!acc[category]) {
|
|
46
|
+
acc[category] = [];
|
|
47
|
+
}
|
|
48
|
+
acc[category].push(table);
|
|
49
|
+
return acc;
|
|
50
|
+
}, {} as Record<string, TableInfo[]>);
|
|
51
|
+
|
|
52
|
+
const categories = Object.keys(tablesByCategory).sort();
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<aside className={cn("flex flex-col border-r border-border bg-card", className)}>
|
|
56
|
+
{/* Header with collapse button */}
|
|
57
|
+
<div className="flex items-center justify-between px-3 py-2 border-b border-border">
|
|
58
|
+
<div className="flex items-center gap-2 text-sm font-medium text-muted-foreground">
|
|
59
|
+
<Database className="h-4 w-4" />
|
|
60
|
+
<span>Tables ({tables.length})</span>
|
|
61
|
+
</div>
|
|
62
|
+
<Button
|
|
63
|
+
variant="ghost"
|
|
64
|
+
size="icon"
|
|
65
|
+
className="h-7 w-7"
|
|
66
|
+
onClick={collapse}
|
|
67
|
+
title="サイドバーを閉じる"
|
|
68
|
+
>
|
|
69
|
+
<PanelLeftClose className="h-4 w-4" />
|
|
70
|
+
</Button>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
{/* Table list grouped by category */}
|
|
74
|
+
<ScrollArea className="flex-1">
|
|
75
|
+
<div className="p-2 space-y-4">
|
|
76
|
+
{categories.map((category) => (
|
|
77
|
+
<div key={category}>
|
|
78
|
+
{/* Category header */}
|
|
79
|
+
<div className="flex items-center gap-2 px-2 py-1 mb-1">
|
|
80
|
+
<span
|
|
81
|
+
className={cn(
|
|
82
|
+
"px-2 py-0.5 text-xs font-medium rounded capitalize",
|
|
83
|
+
categoryColors[category] || categoryColors.other
|
|
84
|
+
)}
|
|
85
|
+
>
|
|
86
|
+
{category}
|
|
87
|
+
</span>
|
|
88
|
+
<span className="text-xs text-muted-foreground">
|
|
89
|
+
({tablesByCategory[category].length})
|
|
90
|
+
</span>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
{/* Tables in category */}
|
|
94
|
+
<div className="space-y-0.5">
|
|
95
|
+
{tablesByCategory[category].map((table) => (
|
|
96
|
+
<button
|
|
97
|
+
key={table.name}
|
|
98
|
+
onClick={() => onTableSelect(table.name)}
|
|
99
|
+
className={cn(
|
|
100
|
+
"w-full text-left px-2 py-1.5 text-sm rounded-md transition-colors",
|
|
101
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
102
|
+
selectedTable === table.name &&
|
|
103
|
+
"bg-primary/10 text-primary font-medium"
|
|
104
|
+
)}
|
|
105
|
+
>
|
|
106
|
+
{table.name}
|
|
107
|
+
</button>
|
|
108
|
+
))}
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
))}
|
|
112
|
+
</div>
|
|
113
|
+
</ScrollArea>
|
|
114
|
+
</aside>
|
|
115
|
+
);
|
|
116
|
+
}
|