@shirokuma-library/shirokuma-docs 0.1.0-alpha.5
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 +308 -0
- package/README.md +308 -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 +172 -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 +193 -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 +743 -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 +429 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/issues-pr.d.ts +74 -0
- package/dist/commands/issues-pr.d.ts.map +1 -0
- package/dist/commands/issues-pr.js +417 -0
- package/dist/commands/issues-pr.js.map +1 -0
- package/dist/commands/issues.d.ts +76 -0
- package/dist/commands/issues.d.ts.map +1 -0
- package/dist/commands/issues.js +1285 -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 +969 -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/session.d.ts +153 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +1243 -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 +620 -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 +517 -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 +151 -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 +615 -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 +359 -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 +412 -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 +289 -0
- package/dist/md/validator/index.js.map +1 -0
- package/dist/parsers/details-jsdoc.d.ts +46 -0
- package/dist/parsers/details-jsdoc.d.ts.map +1 -0
- package/dist/parsers/details-jsdoc.js +262 -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 +145 -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 +655 -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 +270 -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 +111 -0
- package/dist/utils/formatters.d.ts.map +1 -0
- package/dist/utils/formatters.js +164 -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 +98 -0
- package/dist/utils/github.d.ts.map +1 -0
- package/dist/utils/github.js +295 -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/setup-check.d.ts +34 -0
- package/dist/utils/setup-check.d.ts.map +1 -0
- package/dist/utils/setup-check.js +136 -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 +155 -0
- package/i18n/cli/ja.json +155 -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 +21 -0
- package/portal/package.json +45 -0
- package/portal/postcss.config.mjs +8 -0
- package/portal/tsconfig.json +41 -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,884 @@
|
|
|
1
|
+
import { notFound } from "next/navigation";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import {
|
|
4
|
+
Monitor,
|
|
5
|
+
Component,
|
|
6
|
+
Zap,
|
|
7
|
+
Database,
|
|
8
|
+
ArrowLeft,
|
|
9
|
+
FileCode,
|
|
10
|
+
Code2,
|
|
11
|
+
TestTube2,
|
|
12
|
+
ChevronDown,
|
|
13
|
+
ChevronRight,
|
|
14
|
+
AlertTriangle,
|
|
15
|
+
CheckCircle2,
|
|
16
|
+
Info,
|
|
17
|
+
Shield,
|
|
18
|
+
Globe,
|
|
19
|
+
Users,
|
|
20
|
+
Lock,
|
|
21
|
+
Clock,
|
|
22
|
+
AppWindow,
|
|
23
|
+
} from "lucide-react";
|
|
24
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
|
25
|
+
import {
|
|
26
|
+
Card,
|
|
27
|
+
CardContent,
|
|
28
|
+
CardDescription,
|
|
29
|
+
CardHeader,
|
|
30
|
+
CardTitle,
|
|
31
|
+
} from "@/components/ui/card";
|
|
32
|
+
import { Badge } from "@/components/ui/badge";
|
|
33
|
+
import {
|
|
34
|
+
Table,
|
|
35
|
+
TableBody,
|
|
36
|
+
TableCell,
|
|
37
|
+
TableHead,
|
|
38
|
+
TableHeader,
|
|
39
|
+
TableRow,
|
|
40
|
+
} from "@/components/ui/table";
|
|
41
|
+
import {
|
|
42
|
+
Collapsible,
|
|
43
|
+
CollapsibleContent,
|
|
44
|
+
CollapsibleTrigger,
|
|
45
|
+
} from "@/components/ui/collapsible";
|
|
46
|
+
import { loadFeatureMap, loadDetails } from "@/lib/data-loader";
|
|
47
|
+
import { encodeFilePath } from "@/lib/path-utils";
|
|
48
|
+
import { CodeBlock } from "@/components/code-block";
|
|
49
|
+
import { CoverageScoreBar } from "@/components/shared/coverage-score-bar";
|
|
50
|
+
import { CATEGORY_LABELS } from "@/lib/constants/test-categories";
|
|
51
|
+
import type {
|
|
52
|
+
FeatureMapData,
|
|
53
|
+
ScreenItem,
|
|
54
|
+
ComponentItem,
|
|
55
|
+
ActionItem,
|
|
56
|
+
TableItem,
|
|
57
|
+
DetailItem,
|
|
58
|
+
AuthLevel,
|
|
59
|
+
ZodParameterInfo,
|
|
60
|
+
ErrorCodeInfo,
|
|
61
|
+
} from "@/lib/types";
|
|
62
|
+
|
|
63
|
+
// Only pre-generated paths will work (required for output: export)
|
|
64
|
+
export const dynamicParams = false;
|
|
65
|
+
|
|
66
|
+
type LayerType = "screens" | "components" | "actions" | "tables";
|
|
67
|
+
type LayerTypeSingular = "screen" | "component" | "action" | "table";
|
|
68
|
+
|
|
69
|
+
interface LayerConfig {
|
|
70
|
+
key: LayerType;
|
|
71
|
+
singular: LayerTypeSingular;
|
|
72
|
+
label: string;
|
|
73
|
+
icon: typeof Monitor;
|
|
74
|
+
color: string;
|
|
75
|
+
bgColor: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const layerConfigs: Record<LayerType, LayerConfig> = {
|
|
79
|
+
screens: {
|
|
80
|
+
key: "screens",
|
|
81
|
+
singular: "screen",
|
|
82
|
+
label: "Screens",
|
|
83
|
+
icon: Monitor,
|
|
84
|
+
color: "text-accent-blue",
|
|
85
|
+
bgColor: "bg-accent-blue/10",
|
|
86
|
+
},
|
|
87
|
+
components: {
|
|
88
|
+
key: "components",
|
|
89
|
+
singular: "component",
|
|
90
|
+
label: "Components",
|
|
91
|
+
icon: Component,
|
|
92
|
+
color: "text-accent-green",
|
|
93
|
+
bgColor: "bg-accent-green/10",
|
|
94
|
+
},
|
|
95
|
+
actions: {
|
|
96
|
+
key: "actions",
|
|
97
|
+
singular: "action",
|
|
98
|
+
label: "Actions",
|
|
99
|
+
icon: Zap,
|
|
100
|
+
color: "text-accent-yellow",
|
|
101
|
+
bgColor: "bg-accent-yellow/10",
|
|
102
|
+
},
|
|
103
|
+
tables: {
|
|
104
|
+
key: "tables",
|
|
105
|
+
singular: "table",
|
|
106
|
+
label: "Tables",
|
|
107
|
+
icon: Database,
|
|
108
|
+
color: "text-accent-purple",
|
|
109
|
+
bgColor: "bg-accent-purple/10",
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
// App configuration for styling
|
|
114
|
+
const appConfig: Record<string, { label: string; color: string; bgColor: string; borderColor: string }> = {
|
|
115
|
+
Admin: { label: "Admin", color: "text-blue-600", bgColor: "bg-blue-500/10", borderColor: "border-blue-500/30" },
|
|
116
|
+
Public: { label: "Public", color: "text-green-600", bgColor: "bg-green-500/10", borderColor: "border-green-500/30" },
|
|
117
|
+
Web: { label: "Web", color: "text-purple-600", bgColor: "bg-purple-500/10", borderColor: "border-purple-500/30" },
|
|
118
|
+
API: { label: "API Server", color: "text-orange-600", bgColor: "bg-orange-500/10", borderColor: "border-orange-500/30" },
|
|
119
|
+
Shared: { label: "Shared", color: "text-gray-600", bgColor: "bg-gray-500/10", borderColor: "border-gray-500/30" },
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Group items by app
|
|
124
|
+
*/
|
|
125
|
+
function groupItemsByApp<T extends { app?: string }>(
|
|
126
|
+
items: T[]
|
|
127
|
+
): Map<string, T[]> {
|
|
128
|
+
const grouped = new Map<string, T[]>();
|
|
129
|
+
|
|
130
|
+
for (const item of items) {
|
|
131
|
+
const appName = item.app || "Shared";
|
|
132
|
+
if (!grouped.has(appName)) {
|
|
133
|
+
grouped.set(appName, []);
|
|
134
|
+
}
|
|
135
|
+
grouped.get(appName)!.push(item);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// Sort by app name for consistent ordering
|
|
139
|
+
return new Map([...grouped.entries()].sort((a, b) => a[0].localeCompare(b[0])));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export async function generateStaticParams(): Promise<
|
|
143
|
+
{ type: string; module: string }[]
|
|
144
|
+
> {
|
|
145
|
+
const data = await loadFeatureMap();
|
|
146
|
+
if (!data) return [];
|
|
147
|
+
|
|
148
|
+
const params: { type: string; module: string }[] = [];
|
|
149
|
+
const layers: LayerType[] = ["screens", "components", "actions", "tables"];
|
|
150
|
+
|
|
151
|
+
// Add feature modules
|
|
152
|
+
for (const [moduleName, group] of Object.entries(data.features)) {
|
|
153
|
+
for (const layer of layers) {
|
|
154
|
+
if (group[layer]?.length > 0) {
|
|
155
|
+
params.push({ type: layer, module: moduleName });
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// Add uncategorized if has items
|
|
161
|
+
for (const layer of layers) {
|
|
162
|
+
if (data.uncategorized[layer]?.length > 0) {
|
|
163
|
+
params.push({ type: layer, module: "Uncategorized" });
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return params;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function getModuleItems(
|
|
171
|
+
data: FeatureMapData,
|
|
172
|
+
module: string,
|
|
173
|
+
type: LayerType
|
|
174
|
+
): (ScreenItem | ComponentItem | ActionItem | TableItem)[] {
|
|
175
|
+
if (module === "Uncategorized") {
|
|
176
|
+
return data.uncategorized[type] || [];
|
|
177
|
+
}
|
|
178
|
+
return data.features[module]?.[type] || [];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Test category labels - using shared constant
|
|
182
|
+
const categoryLabels = CATEGORY_LABELS;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Parse markdown code fence and extract language and code
|
|
186
|
+
* @example ```tsx\nconst x = 1;\n``` -> { language: "tsx", code: "const x = 1;" }
|
|
187
|
+
*/
|
|
188
|
+
function parseMarkdownCodeFence(text: string): { language: string; code: string } {
|
|
189
|
+
// Match ```language\ncode\n```
|
|
190
|
+
const fenceMatch = text.match(/^```(\w+)?\s*\n?([\s\S]*?)\n?```\s*$/);
|
|
191
|
+
if (fenceMatch) {
|
|
192
|
+
return {
|
|
193
|
+
language: fenceMatch[1] || "typescript",
|
|
194
|
+
code: fenceMatch[2].trim(),
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
// No code fence, return as-is
|
|
198
|
+
return { language: "typescript", code: text.trim() };
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// JSDoc Section Component
|
|
202
|
+
function JSDocSection({ detail }: { detail: DetailItem }) {
|
|
203
|
+
const { jsDoc } = detail;
|
|
204
|
+
|
|
205
|
+
return (
|
|
206
|
+
<div className="space-y-6">
|
|
207
|
+
{/* Description */}
|
|
208
|
+
{jsDoc.description && (
|
|
209
|
+
<div>
|
|
210
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">概要</h4>
|
|
211
|
+
<p className="whitespace-pre-wrap text-sm">{jsDoc.description}</p>
|
|
212
|
+
</div>
|
|
213
|
+
)}
|
|
214
|
+
|
|
215
|
+
{/* Parameters */}
|
|
216
|
+
{jsDoc.params && jsDoc.params.length > 0 && (
|
|
217
|
+
<div>
|
|
218
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">パラメータ</h4>
|
|
219
|
+
<Table>
|
|
220
|
+
<TableHeader>
|
|
221
|
+
<TableRow>
|
|
222
|
+
<TableHead className="w-[150px]">名前</TableHead>
|
|
223
|
+
<TableHead className="w-[200px]">型</TableHead>
|
|
224
|
+
<TableHead>説明</TableHead>
|
|
225
|
+
</TableRow>
|
|
226
|
+
</TableHeader>
|
|
227
|
+
<TableBody>
|
|
228
|
+
{jsDoc.params.map((param, idx) => (
|
|
229
|
+
<TableRow key={idx}>
|
|
230
|
+
<TableCell className="font-mono text-sm">{param.name}</TableCell>
|
|
231
|
+
<TableCell className="font-mono text-xs text-muted-foreground">
|
|
232
|
+
{param.type || "-"}
|
|
233
|
+
</TableCell>
|
|
234
|
+
<TableCell className="text-sm">{param.description || "-"}</TableCell>
|
|
235
|
+
</TableRow>
|
|
236
|
+
))}
|
|
237
|
+
</TableBody>
|
|
238
|
+
</Table>
|
|
239
|
+
</div>
|
|
240
|
+
)}
|
|
241
|
+
|
|
242
|
+
{/* Returns */}
|
|
243
|
+
{jsDoc.returns && (
|
|
244
|
+
<div>
|
|
245
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">戻り値</h4>
|
|
246
|
+
<p className="text-sm">{jsDoc.returns}</p>
|
|
247
|
+
</div>
|
|
248
|
+
)}
|
|
249
|
+
|
|
250
|
+
{/* Throws */}
|
|
251
|
+
{jsDoc.throws && jsDoc.throws.length > 0 && (
|
|
252
|
+
<div>
|
|
253
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">例外</h4>
|
|
254
|
+
<ul className="list-inside list-disc space-y-1 text-sm">
|
|
255
|
+
{jsDoc.throws.map((t, idx) => (
|
|
256
|
+
<li key={idx}>{t}</li>
|
|
257
|
+
))}
|
|
258
|
+
</ul>
|
|
259
|
+
</div>
|
|
260
|
+
)}
|
|
261
|
+
|
|
262
|
+
{/* Examples - Parse markdown code fences and use CodeBlock */}
|
|
263
|
+
{jsDoc.examples && jsDoc.examples.length > 0 && (
|
|
264
|
+
<div>
|
|
265
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">使用例</h4>
|
|
266
|
+
<div className="space-y-3">
|
|
267
|
+
{jsDoc.examples.map((example, idx) => {
|
|
268
|
+
const { language, code } = parseMarkdownCodeFence(example);
|
|
269
|
+
return (
|
|
270
|
+
<CodeBlock key={idx} code={code} language={language} />
|
|
271
|
+
);
|
|
272
|
+
})}
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
)}
|
|
276
|
+
|
|
277
|
+
{/* Meta Tags */}
|
|
278
|
+
{jsDoc.tags && jsDoc.tags.length > 0 && (
|
|
279
|
+
<div>
|
|
280
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">メタ情報</h4>
|
|
281
|
+
<div className="flex flex-wrap gap-2">
|
|
282
|
+
{jsDoc.tags.map((tag, idx) => (
|
|
283
|
+
<Badge key={idx} variant="outline" className="text-xs">
|
|
284
|
+
@{tag.name}{tag.value ? `: ${tag.value}` : ""}
|
|
285
|
+
</Badge>
|
|
286
|
+
))}
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
)}
|
|
290
|
+
</div>
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// Source Code Section Component
|
|
295
|
+
function SourceCodeSection({ sourceCode }: { sourceCode: string }) {
|
|
296
|
+
return (
|
|
297
|
+
<Collapsible>
|
|
298
|
+
<CollapsibleTrigger className="flex w-full items-center gap-2 rounded-md bg-muted px-4 py-2 text-sm font-medium hover:bg-muted/80">
|
|
299
|
+
<Code2 className="h-4 w-4" />
|
|
300
|
+
ソースコード
|
|
301
|
+
<ChevronDown className="ml-auto h-4 w-4" />
|
|
302
|
+
</CollapsibleTrigger>
|
|
303
|
+
<CollapsibleContent>
|
|
304
|
+
<pre className="mt-2 max-h-[500px] overflow-auto rounded-md bg-muted p-4 text-xs">
|
|
305
|
+
<code>{sourceCode}</code>
|
|
306
|
+
</pre>
|
|
307
|
+
</CollapsibleContent>
|
|
308
|
+
</Collapsible>
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// Test Coverage Section Component
|
|
313
|
+
function TestCoverageSection({ detail }: { detail: DetailItem }) {
|
|
314
|
+
const { testCoverage } = detail;
|
|
315
|
+
|
|
316
|
+
if (!testCoverage.hasTest && testCoverage.totalTests === 0) {
|
|
317
|
+
return (
|
|
318
|
+
<div className="space-y-4">
|
|
319
|
+
<div className="rounded-md border border-yellow-500/20 bg-yellow-500/10 p-4">
|
|
320
|
+
<div className="flex items-center gap-2 text-yellow-600">
|
|
321
|
+
<AlertTriangle className="h-4 w-4" />
|
|
322
|
+
<span className="font-medium">テストがありません</span>
|
|
323
|
+
</div>
|
|
324
|
+
{testCoverage.recommendations.length > 0 && (
|
|
325
|
+
<ul className="mt-2 list-inside list-disc text-sm text-muted-foreground">
|
|
326
|
+
{testCoverage.recommendations.map((rec, idx) => (
|
|
327
|
+
<li key={idx}>{rec}</li>
|
|
328
|
+
))}
|
|
329
|
+
</ul>
|
|
330
|
+
)}
|
|
331
|
+
</div>
|
|
332
|
+
</div>
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
return (
|
|
337
|
+
<div className="space-y-4">
|
|
338
|
+
{/* Score and Summary */}
|
|
339
|
+
<div className="grid gap-4 sm:grid-cols-2">
|
|
340
|
+
<Card>
|
|
341
|
+
<CardContent className="pt-4">
|
|
342
|
+
<CoverageScoreBar score={testCoverage.coverageScore} />
|
|
343
|
+
</CardContent>
|
|
344
|
+
</Card>
|
|
345
|
+
<Card>
|
|
346
|
+
<CardContent className="flex items-center gap-4 pt-4">
|
|
347
|
+
<div className="rounded-lg bg-primary/10 p-2">
|
|
348
|
+
<TestTube2 className="h-6 w-6 text-primary" />
|
|
349
|
+
</div>
|
|
350
|
+
<div>
|
|
351
|
+
<p className="text-2xl font-bold">{testCoverage.totalTests}</p>
|
|
352
|
+
<p className="text-sm text-muted-foreground">テストケース</p>
|
|
353
|
+
</div>
|
|
354
|
+
</CardContent>
|
|
355
|
+
</Card>
|
|
356
|
+
</div>
|
|
357
|
+
|
|
358
|
+
{/* Tests by Category */}
|
|
359
|
+
<div className="space-y-3">
|
|
360
|
+
{Object.entries(testCoverage.byCategory)
|
|
361
|
+
.filter(([, tests]) => tests.length > 0)
|
|
362
|
+
.map(([category, tests]) => {
|
|
363
|
+
const catInfo = categoryLabels[category] || categoryLabels["other"];
|
|
364
|
+
const Icon = catInfo.icon;
|
|
365
|
+
|
|
366
|
+
return (
|
|
367
|
+
<Collapsible key={category}>
|
|
368
|
+
<CollapsibleTrigger className="flex w-full items-center gap-2 rounded-md border px-4 py-2 text-sm hover:bg-muted/50">
|
|
369
|
+
<div className={`h-2 w-2 rounded-full ${catInfo.color}`} />
|
|
370
|
+
<Icon className="h-4 w-4 text-muted-foreground" />
|
|
371
|
+
<span className="font-medium">{catInfo.label}</span>
|
|
372
|
+
<Badge variant="secondary" className="ml-auto">
|
|
373
|
+
{tests.length}
|
|
374
|
+
</Badge>
|
|
375
|
+
<ChevronRight className="h-4 w-4" />
|
|
376
|
+
</CollapsibleTrigger>
|
|
377
|
+
<CollapsibleContent>
|
|
378
|
+
<div className="mt-2 space-y-2 pl-4">
|
|
379
|
+
{tests.map((test, idx) => (
|
|
380
|
+
<Link
|
|
381
|
+
key={idx}
|
|
382
|
+
href={`/test-cases/${encodeFilePath(test.file)}/${test.line}`}
|
|
383
|
+
className="block rounded-md border bg-card p-3 text-sm hover:bg-muted/50 transition-colors group"
|
|
384
|
+
>
|
|
385
|
+
<p className="font-medium group-hover:text-primary transition-colors">{test.name}</p>
|
|
386
|
+
{test.summary && (
|
|
387
|
+
<p className="mt-1 text-muted-foreground">
|
|
388
|
+
{test.summary}
|
|
389
|
+
</p>
|
|
390
|
+
)}
|
|
391
|
+
{test.purpose && (
|
|
392
|
+
<p className="mt-1 text-xs text-muted-foreground">
|
|
393
|
+
目的: {test.purpose}
|
|
394
|
+
</p>
|
|
395
|
+
)}
|
|
396
|
+
{test.expected && (
|
|
397
|
+
<p className="mt-1 text-xs text-muted-foreground">
|
|
398
|
+
期待結果: {test.expected}
|
|
399
|
+
</p>
|
|
400
|
+
)}
|
|
401
|
+
<div className="mt-2 flex items-center gap-2 text-xs text-muted-foreground">
|
|
402
|
+
<FileCode className="h-3 w-3" />
|
|
403
|
+
<code className="truncate">{test.file}:{test.line}</code>
|
|
404
|
+
</div>
|
|
405
|
+
</Link>
|
|
406
|
+
))}
|
|
407
|
+
</div>
|
|
408
|
+
</CollapsibleContent>
|
|
409
|
+
</Collapsible>
|
|
410
|
+
);
|
|
411
|
+
})}
|
|
412
|
+
</div>
|
|
413
|
+
|
|
414
|
+
{/* Recommendations */}
|
|
415
|
+
{testCoverage.recommendations.length > 0 && (
|
|
416
|
+
<div className="rounded-md border border-blue-500/20 bg-blue-500/10 p-4">
|
|
417
|
+
<div className="flex items-center gap-2 text-blue-600">
|
|
418
|
+
<Info className="h-4 w-4" />
|
|
419
|
+
<span className="font-medium">推奨事項</span>
|
|
420
|
+
</div>
|
|
421
|
+
<ul className="mt-2 list-inside list-disc text-sm text-muted-foreground">
|
|
422
|
+
{testCoverage.recommendations.map((rec, idx) => (
|
|
423
|
+
<li key={idx}>{rec}</li>
|
|
424
|
+
))}
|
|
425
|
+
</ul>
|
|
426
|
+
</div>
|
|
427
|
+
)}
|
|
428
|
+
</div>
|
|
429
|
+
);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// Auth Level Badge Component
|
|
433
|
+
const authLevelConfig: Record<AuthLevel, { label: string; icon: typeof Shield; color: string }> = {
|
|
434
|
+
none: { label: "Public", icon: Globe, color: "text-green-600 bg-green-500/10 border-green-500/30" },
|
|
435
|
+
authenticated: { label: "Auth Required", icon: Lock, color: "text-blue-600 bg-blue-500/10 border-blue-500/30" },
|
|
436
|
+
member: { label: "Member Only", icon: Users, color: "text-purple-600 bg-purple-500/10 border-purple-500/30" },
|
|
437
|
+
admin: { label: "Admin Only", icon: Shield, color: "text-red-600 bg-red-500/10 border-red-500/30" },
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
function AuthLevelBadge({ level }: { level: AuthLevel }) {
|
|
441
|
+
const config = authLevelConfig[level];
|
|
442
|
+
const Icon = config.icon;
|
|
443
|
+
return (
|
|
444
|
+
<Badge variant="outline" className={`${config.color} text-xs`}>
|
|
445
|
+
<Icon className="mr-1 h-3 w-3" />
|
|
446
|
+
{config.label}
|
|
447
|
+
</Badge>
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
// Enhanced Parameters Table (from Zod schema)
|
|
452
|
+
function EnhancedParametersTable({ parameters }: { parameters: ZodParameterInfo[] }) {
|
|
453
|
+
if (!parameters || parameters.length === 0) return null;
|
|
454
|
+
|
|
455
|
+
return (
|
|
456
|
+
<div>
|
|
457
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">入力パラメータ (Zodスキーマ)</h4>
|
|
458
|
+
<Table>
|
|
459
|
+
<TableHeader>
|
|
460
|
+
<TableRow>
|
|
461
|
+
<TableHead className="w-[120px]">名前</TableHead>
|
|
462
|
+
<TableHead className="w-[100px]">型</TableHead>
|
|
463
|
+
<TableHead className="w-[60px]">必須</TableHead>
|
|
464
|
+
<TableHead className="w-[150px]">制約</TableHead>
|
|
465
|
+
<TableHead className="w-[100px]">デフォルト</TableHead>
|
|
466
|
+
<TableHead>説明</TableHead>
|
|
467
|
+
</TableRow>
|
|
468
|
+
</TableHeader>
|
|
469
|
+
<TableBody>
|
|
470
|
+
{parameters.map((param, idx) => {
|
|
471
|
+
const constraints: string[] = [];
|
|
472
|
+
if (param.format) constraints.push(param.format);
|
|
473
|
+
if (param.minLength !== undefined) constraints.push(`min: ${param.minLength}`);
|
|
474
|
+
if (param.maxLength !== undefined) constraints.push(`max: ${param.maxLength}`);
|
|
475
|
+
if (param.min !== undefined) constraints.push(`≥ ${param.min}`);
|
|
476
|
+
if (param.max !== undefined) constraints.push(`≤ ${param.max}`);
|
|
477
|
+
if (param.enumValues) constraints.push(param.enumValues.join(" | "));
|
|
478
|
+
|
|
479
|
+
return (
|
|
480
|
+
<TableRow key={idx}>
|
|
481
|
+
<TableCell className="font-mono text-sm">{param.name}</TableCell>
|
|
482
|
+
<TableCell className="font-mono text-xs text-muted-foreground">{param.type}</TableCell>
|
|
483
|
+
<TableCell>
|
|
484
|
+
{param.required ? (
|
|
485
|
+
<CheckCircle2 className="h-4 w-4 text-green-500" />
|
|
486
|
+
) : (
|
|
487
|
+
<span className="text-muted-foreground">-</span>
|
|
488
|
+
)}
|
|
489
|
+
</TableCell>
|
|
490
|
+
<TableCell className="text-xs text-muted-foreground">
|
|
491
|
+
{constraints.length > 0 ? constraints.join(", ") : "-"}
|
|
492
|
+
</TableCell>
|
|
493
|
+
<TableCell className="font-mono text-xs">
|
|
494
|
+
{param.default !== undefined ? JSON.stringify(param.default) : "-"}
|
|
495
|
+
</TableCell>
|
|
496
|
+
<TableCell className="text-sm">{param.description || "-"}</TableCell>
|
|
497
|
+
</TableRow>
|
|
498
|
+
);
|
|
499
|
+
})}
|
|
500
|
+
</TableBody>
|
|
501
|
+
</Table>
|
|
502
|
+
</div>
|
|
503
|
+
);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// Error Codes Section
|
|
507
|
+
function ErrorCodesSection({ errorCodes }: { errorCodes: ErrorCodeInfo[] }) {
|
|
508
|
+
if (!errorCodes || errorCodes.length === 0) return null;
|
|
509
|
+
|
|
510
|
+
return (
|
|
511
|
+
<div>
|
|
512
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">エラーコード</h4>
|
|
513
|
+
<Table>
|
|
514
|
+
<TableHeader>
|
|
515
|
+
<TableRow>
|
|
516
|
+
<TableHead className="w-[150px]">コード</TableHead>
|
|
517
|
+
<TableHead className="w-[80px]">ステータス</TableHead>
|
|
518
|
+
<TableHead>説明</TableHead>
|
|
519
|
+
</TableRow>
|
|
520
|
+
</TableHeader>
|
|
521
|
+
<TableBody>
|
|
522
|
+
{errorCodes.map((error, idx) => (
|
|
523
|
+
<TableRow key={idx}>
|
|
524
|
+
<TableCell className="font-mono text-sm text-red-600">{error.code}</TableCell>
|
|
525
|
+
<TableCell>
|
|
526
|
+
{error.status && (
|
|
527
|
+
<Badge variant="outline" className="text-xs">
|
|
528
|
+
{error.status}
|
|
529
|
+
</Badge>
|
|
530
|
+
)}
|
|
531
|
+
</TableCell>
|
|
532
|
+
<TableCell className="text-sm">{error.description}</TableCell>
|
|
533
|
+
</TableRow>
|
|
534
|
+
))}
|
|
535
|
+
</TableBody>
|
|
536
|
+
</Table>
|
|
537
|
+
</div>
|
|
538
|
+
);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
// Related Items Section
|
|
542
|
+
function RelatedItemsSection({ detail, config }: { detail: DetailItem; config: LayerConfig }) {
|
|
543
|
+
const { related } = detail;
|
|
544
|
+
|
|
545
|
+
const hasRelated =
|
|
546
|
+
(related.usedInScreens?.length || 0) +
|
|
547
|
+
(related.usedInComponents?.length || 0) +
|
|
548
|
+
(related.usedInActions?.length || 0) +
|
|
549
|
+
(related.dbTables?.length || 0) > 0;
|
|
550
|
+
|
|
551
|
+
if (!hasRelated) return null;
|
|
552
|
+
|
|
553
|
+
return (
|
|
554
|
+
<div className="space-y-4">
|
|
555
|
+
{related.usedInScreens && related.usedInScreens.length > 0 && (
|
|
556
|
+
<div>
|
|
557
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">使用されている画面</h4>
|
|
558
|
+
<div className="flex flex-wrap gap-2">
|
|
559
|
+
{related.usedInScreens.map((name) => (
|
|
560
|
+
<Badge key={name} variant="secondary">
|
|
561
|
+
<Monitor className="mr-1 h-3 w-3" />
|
|
562
|
+
{name}
|
|
563
|
+
</Badge>
|
|
564
|
+
))}
|
|
565
|
+
</div>
|
|
566
|
+
</div>
|
|
567
|
+
)}
|
|
568
|
+
|
|
569
|
+
{related.usedInComponents && related.usedInComponents.length > 0 && (
|
|
570
|
+
<div>
|
|
571
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">使用コンポーネント</h4>
|
|
572
|
+
<div className="flex flex-wrap gap-2">
|
|
573
|
+
{related.usedInComponents.map((name) => (
|
|
574
|
+
<Badge key={name} variant="secondary">
|
|
575
|
+
<Component className="mr-1 h-3 w-3" />
|
|
576
|
+
{name}
|
|
577
|
+
</Badge>
|
|
578
|
+
))}
|
|
579
|
+
</div>
|
|
580
|
+
</div>
|
|
581
|
+
)}
|
|
582
|
+
|
|
583
|
+
{related.usedInActions && related.usedInActions.length > 0 && (
|
|
584
|
+
<div>
|
|
585
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">使用アクション</h4>
|
|
586
|
+
<div className="flex flex-wrap gap-2">
|
|
587
|
+
{related.usedInActions.map((name) => (
|
|
588
|
+
<Badge key={name} variant="secondary">
|
|
589
|
+
<Zap className="mr-1 h-3 w-3" />
|
|
590
|
+
{name}
|
|
591
|
+
</Badge>
|
|
592
|
+
))}
|
|
593
|
+
</div>
|
|
594
|
+
</div>
|
|
595
|
+
)}
|
|
596
|
+
|
|
597
|
+
{related.dbTables && related.dbTables.length > 0 && (
|
|
598
|
+
<div>
|
|
599
|
+
<h4 className="mb-2 text-sm font-semibold text-muted-foreground">使用DBテーブル</h4>
|
|
600
|
+
<div className="flex flex-wrap gap-2">
|
|
601
|
+
{related.dbTables.map((name) => (
|
|
602
|
+
<Badge key={name} variant="secondary">
|
|
603
|
+
<Database className="mr-1 h-3 w-3" />
|
|
604
|
+
{name}
|
|
605
|
+
</Badge>
|
|
606
|
+
))}
|
|
607
|
+
</div>
|
|
608
|
+
</div>
|
|
609
|
+
)}
|
|
610
|
+
</div>
|
|
611
|
+
);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
// Item List Card with link to individual page
|
|
615
|
+
function ItemListCard({
|
|
616
|
+
item,
|
|
617
|
+
type,
|
|
618
|
+
module,
|
|
619
|
+
config,
|
|
620
|
+
detail,
|
|
621
|
+
}: {
|
|
622
|
+
item: ScreenItem | ComponentItem | ActionItem | TableItem;
|
|
623
|
+
type: LayerType;
|
|
624
|
+
module: string;
|
|
625
|
+
config: LayerConfig;
|
|
626
|
+
detail: DetailItem | null;
|
|
627
|
+
}) {
|
|
628
|
+
const Icon = config.icon;
|
|
629
|
+
|
|
630
|
+
return (
|
|
631
|
+
<Link href={`/details/${type}/${encodeURIComponent(module)}/${encodeURIComponent(item.name)}`}>
|
|
632
|
+
<Card className="transition-all hover:border-primary/50 hover:shadow-md cursor-pointer h-full">
|
|
633
|
+
<CardHeader className="pb-2">
|
|
634
|
+
<div className="flex items-start gap-3">
|
|
635
|
+
<div className={`rounded-md p-2 mt-0.5 ${config.bgColor}`}>
|
|
636
|
+
<Icon className={`h-4 w-4 ${config.color}`} />
|
|
637
|
+
</div>
|
|
638
|
+
<div className="flex-1 min-w-0">
|
|
639
|
+
<CardTitle className="text-base font-mono group-hover:text-primary transition-colors flex items-center gap-2">
|
|
640
|
+
{item.name}
|
|
641
|
+
<ChevronRight className="h-4 w-4 text-muted-foreground" />
|
|
642
|
+
</CardTitle>
|
|
643
|
+
{item.description && (
|
|
644
|
+
<CardDescription className="line-clamp-2 mt-1 text-sm">{item.description}</CardDescription>
|
|
645
|
+
)}
|
|
646
|
+
</div>
|
|
647
|
+
</div>
|
|
648
|
+
</CardHeader>
|
|
649
|
+
<CardContent className="pt-0">
|
|
650
|
+
{/* Auth/Security Badges */}
|
|
651
|
+
{(detail?.authLevel || detail?.rateLimit || detail?.csrfProtection) && (
|
|
652
|
+
<div className="flex flex-wrap gap-1 mt-2">
|
|
653
|
+
{detail?.authLevel && <AuthLevelBadge level={detail.authLevel} />}
|
|
654
|
+
{detail?.rateLimit && (
|
|
655
|
+
<Badge variant="outline" className="text-xs text-orange-600 bg-orange-500/10 border-orange-500/30">
|
|
656
|
+
<Clock className="mr-1 h-3 w-3" />
|
|
657
|
+
{detail.rateLimit}
|
|
658
|
+
</Badge>
|
|
659
|
+
)}
|
|
660
|
+
{detail?.csrfProtection && (
|
|
661
|
+
<Badge variant="outline" className="text-xs text-cyan-600 bg-cyan-500/10 border-cyan-500/30">
|
|
662
|
+
<Shield className="mr-1 h-3 w-3" />
|
|
663
|
+
CSRF
|
|
664
|
+
</Badge>
|
|
665
|
+
)}
|
|
666
|
+
</div>
|
|
667
|
+
)}
|
|
668
|
+
|
|
669
|
+
{/* File Path */}
|
|
670
|
+
{detail?.filePath && (
|
|
671
|
+
<div className="flex items-center gap-2 text-xs text-muted-foreground mt-3">
|
|
672
|
+
<FileCode className="h-3 w-3" />
|
|
673
|
+
<code className="truncate">{detail.filePath}</code>
|
|
674
|
+
</div>
|
|
675
|
+
)}
|
|
676
|
+
|
|
677
|
+
{/* Test Coverage */}
|
|
678
|
+
{detail?.testCoverage && (
|
|
679
|
+
<div className="mt-3 pt-3 border-t">
|
|
680
|
+
<div className="flex items-center justify-between">
|
|
681
|
+
<div className="flex items-center gap-2 text-xs text-muted-foreground">
|
|
682
|
+
<TestTube2 className="h-3 w-3" />
|
|
683
|
+
<span>{detail.testCoverage.totalTests} テスト</span>
|
|
684
|
+
</div>
|
|
685
|
+
{detail.testCoverage.hasTest && (
|
|
686
|
+
<CoverageScoreBar
|
|
687
|
+
score={detail.testCoverage.coverageScore}
|
|
688
|
+
variant="badge"
|
|
689
|
+
className="text-[10px]"
|
|
690
|
+
/>
|
|
691
|
+
)}
|
|
692
|
+
</div>
|
|
693
|
+
</div>
|
|
694
|
+
)}
|
|
695
|
+
</CardContent>
|
|
696
|
+
</Card>
|
|
697
|
+
</Link>
|
|
698
|
+
);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
interface PageProps {
|
|
702
|
+
params: Promise<{
|
|
703
|
+
type: string;
|
|
704
|
+
module: string;
|
|
705
|
+
}>;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
export default async function ModuleDetailPage({ params }: PageProps) {
|
|
709
|
+
const { type, module } = await params;
|
|
710
|
+
const decodedModule = decodeURIComponent(module);
|
|
711
|
+
const layerType = type as LayerType;
|
|
712
|
+
|
|
713
|
+
// Validate type
|
|
714
|
+
if (!["screens", "components", "actions", "tables"].includes(type)) {
|
|
715
|
+
notFound();
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
const [featureMapData, detailsData] = await Promise.all([
|
|
719
|
+
loadFeatureMap(),
|
|
720
|
+
loadDetails(),
|
|
721
|
+
]);
|
|
722
|
+
|
|
723
|
+
if (!featureMapData) {
|
|
724
|
+
notFound();
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
const items = getModuleItems(featureMapData, decodedModule, layerType);
|
|
728
|
+
|
|
729
|
+
if (items.length === 0) {
|
|
730
|
+
notFound();
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
const config = layerConfigs[layerType];
|
|
734
|
+
const Icon = config.icon;
|
|
735
|
+
const description = featureMapData.moduleDescriptions?.[decodedModule];
|
|
736
|
+
|
|
737
|
+
// Get detail items from details.json
|
|
738
|
+
// Module names in details.json (from file paths) differ from feature group names
|
|
739
|
+
// So we search by item name across all modules
|
|
740
|
+
const getDetailForItem = (itemName: string): DetailItem | null => {
|
|
741
|
+
if (!detailsData) return null;
|
|
742
|
+
|
|
743
|
+
// First try exact key match (type/module/name)
|
|
744
|
+
const exactKey = `${config.singular}/${decodedModule}/${itemName}`;
|
|
745
|
+
if (detailsData.details[exactKey]) {
|
|
746
|
+
return detailsData.details[exactKey];
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
// Search by item name across all modules
|
|
750
|
+
// Keys are in format: "{type}/{moduleName}/{itemName}"
|
|
751
|
+
const prefix = `${config.singular}/`;
|
|
752
|
+
const suffix = `/${itemName}`;
|
|
753
|
+
|
|
754
|
+
for (const [key, detail] of Object.entries(detailsData.details)) {
|
|
755
|
+
if (key.startsWith(prefix) && key.endsWith(suffix)) {
|
|
756
|
+
return detail;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
return null;
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
return (
|
|
764
|
+
<div className="space-y-8">
|
|
765
|
+
{/* Breadcrumb */}
|
|
766
|
+
<div className="flex items-center gap-2 text-sm">
|
|
767
|
+
<Link
|
|
768
|
+
href="/feature-map"
|
|
769
|
+
className="flex items-center gap-1 text-muted-foreground hover:text-primary"
|
|
770
|
+
>
|
|
771
|
+
<ArrowLeft className="h-4 w-4" />
|
|
772
|
+
Feature Map
|
|
773
|
+
</Link>
|
|
774
|
+
<span className="text-muted-foreground">/</span>
|
|
775
|
+
<span className="text-muted-foreground">{config.label}</span>
|
|
776
|
+
<span className="text-muted-foreground">/</span>
|
|
777
|
+
<span className="font-medium">{decodedModule}</span>
|
|
778
|
+
</div>
|
|
779
|
+
|
|
780
|
+
{/* Header */}
|
|
781
|
+
<header className="flex items-start gap-4">
|
|
782
|
+
<div className={`rounded-lg p-3 ${config.bgColor}`}>
|
|
783
|
+
<Icon className={`h-8 w-8 ${config.color}`} />
|
|
784
|
+
</div>
|
|
785
|
+
<div>
|
|
786
|
+
<h1 className="text-3xl font-bold tracking-tight">{decodedModule}</h1>
|
|
787
|
+
{description && (
|
|
788
|
+
<p className="mt-2 text-muted-foreground">{description}</p>
|
|
789
|
+
)}
|
|
790
|
+
<div className="mt-2 flex items-center gap-4">
|
|
791
|
+
<Badge variant="secondary">
|
|
792
|
+
{items.length} {config.label.toLowerCase()}
|
|
793
|
+
</Badge>
|
|
794
|
+
<Badge variant="outline" className={config.color}>
|
|
795
|
+
{config.label}
|
|
796
|
+
</Badge>
|
|
797
|
+
</div>
|
|
798
|
+
</div>
|
|
799
|
+
</header>
|
|
800
|
+
|
|
801
|
+
{/* Stats Cards */}
|
|
802
|
+
{(() => {
|
|
803
|
+
// Calculate stats
|
|
804
|
+
const testedItems = items.filter((item) => {
|
|
805
|
+
const detail = getDetailForItem(item.name);
|
|
806
|
+
return detail?.testCoverage?.hasTest;
|
|
807
|
+
}).length;
|
|
808
|
+
const totalTests = items.reduce((sum, item) => {
|
|
809
|
+
const detail = getDetailForItem(item.name);
|
|
810
|
+
return sum + (detail?.testCoverage?.totalTests || 0);
|
|
811
|
+
}, 0);
|
|
812
|
+
|
|
813
|
+
return (
|
|
814
|
+
<div className="grid gap-4 md:grid-cols-3">
|
|
815
|
+
<Card>
|
|
816
|
+
<CardHeader className="pb-2">
|
|
817
|
+
<CardDescription>アイテム数</CardDescription>
|
|
818
|
+
<CardTitle className="text-3xl">{items.length}</CardTitle>
|
|
819
|
+
</CardHeader>
|
|
820
|
+
</Card>
|
|
821
|
+
<Card>
|
|
822
|
+
<CardHeader className="pb-2">
|
|
823
|
+
<CardDescription>テスト付きアイテム</CardDescription>
|
|
824
|
+
<CardTitle className="text-3xl">{testedItems}</CardTitle>
|
|
825
|
+
</CardHeader>
|
|
826
|
+
</Card>
|
|
827
|
+
<Card>
|
|
828
|
+
<CardHeader className="pb-2">
|
|
829
|
+
<CardDescription>総テスト数</CardDescription>
|
|
830
|
+
<CardTitle className="text-3xl">{totalTests}</CardTitle>
|
|
831
|
+
</CardHeader>
|
|
832
|
+
</Card>
|
|
833
|
+
</div>
|
|
834
|
+
);
|
|
835
|
+
})()}
|
|
836
|
+
|
|
837
|
+
{/* Items List - Always Grouped by App */}
|
|
838
|
+
<section>
|
|
839
|
+
<h2 className="mb-4 text-xl font-semibold">
|
|
840
|
+
{config.label} in this module
|
|
841
|
+
</h2>
|
|
842
|
+
{(() => {
|
|
843
|
+
const itemsByApp = groupItemsByApp(items);
|
|
844
|
+
|
|
845
|
+
// Always show app grouping
|
|
846
|
+
return (
|
|
847
|
+
<div className="space-y-6">
|
|
848
|
+
{[...itemsByApp.entries()].map(([appName, appItems]) => {
|
|
849
|
+
const appCfg = appConfig[appName] || appConfig.Shared;
|
|
850
|
+
|
|
851
|
+
return (
|
|
852
|
+
<div key={appName} className={`rounded-lg border p-4 ${appCfg.bgColor} ${appCfg.borderColor}`}>
|
|
853
|
+
{/* App Header */}
|
|
854
|
+
<div className="flex items-center gap-2 mb-4">
|
|
855
|
+
<AppWindow className={`h-4 w-4 ${appCfg.color}`} />
|
|
856
|
+
<span className={`font-semibold ${appCfg.color}`}>{appCfg.label}</span>
|
|
857
|
+
<Badge variant="secondary" className="text-xs">
|
|
858
|
+
{appItems.length} {config.label.toLowerCase()}
|
|
859
|
+
</Badge>
|
|
860
|
+
</div>
|
|
861
|
+
|
|
862
|
+
{/* Items Grid */}
|
|
863
|
+
<div className="grid gap-4 md:grid-cols-2">
|
|
864
|
+
{appItems.map((item) => (
|
|
865
|
+
<ItemListCard
|
|
866
|
+
key={item.name}
|
|
867
|
+
item={item}
|
|
868
|
+
type={layerType}
|
|
869
|
+
module={decodedModule}
|
|
870
|
+
config={config}
|
|
871
|
+
detail={getDetailForItem(item.name)}
|
|
872
|
+
/>
|
|
873
|
+
))}
|
|
874
|
+
</div>
|
|
875
|
+
</div>
|
|
876
|
+
);
|
|
877
|
+
})}
|
|
878
|
+
</div>
|
|
879
|
+
);
|
|
880
|
+
})()}
|
|
881
|
+
</section>
|
|
882
|
+
</div>
|
|
883
|
+
);
|
|
884
|
+
}
|