@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,455 @@
|
|
|
1
|
+
import Link from "next/link";
|
|
2
|
+
import { notFound } from "next/navigation";
|
|
3
|
+
import {
|
|
4
|
+
ArrowLeft,
|
|
5
|
+
FileCode2,
|
|
6
|
+
FlaskConical,
|
|
7
|
+
CheckCircle2,
|
|
8
|
+
AlertTriangle,
|
|
9
|
+
Shield,
|
|
10
|
+
AlertCircle,
|
|
11
|
+
Layers,
|
|
12
|
+
GitBranch,
|
|
13
|
+
ExternalLink,
|
|
14
|
+
ChevronRight,
|
|
15
|
+
Target,
|
|
16
|
+
FileText,
|
|
17
|
+
ListChecks,
|
|
18
|
+
ArrowRight,
|
|
19
|
+
} from "lucide-react";
|
|
20
|
+
import { loadTestCases, loadDetails, loadFeatureMap } from "@/lib/data-loader";
|
|
21
|
+
import { encodeFilePath, decodeFilePath } from "@/lib/path-utils";
|
|
22
|
+
import {
|
|
23
|
+
Card,
|
|
24
|
+
CardContent,
|
|
25
|
+
CardDescription,
|
|
26
|
+
CardHeader,
|
|
27
|
+
CardTitle,
|
|
28
|
+
} from "@/components/ui/card";
|
|
29
|
+
import { Badge } from "@/components/ui/badge";
|
|
30
|
+
import { Button } from "@/components/ui/button";
|
|
31
|
+
import { getPortalFormat } from "@/lib/format";
|
|
32
|
+
import { TestDetailDocument } from "./test-detail-document";
|
|
33
|
+
|
|
34
|
+
export const dynamicParams = false;
|
|
35
|
+
|
|
36
|
+
// Category config (supports both old and new naming conventions)
|
|
37
|
+
const categoryConfig: Record<string, { icon: React.ElementType; color: string; bgColor: string; label: string }> = {
|
|
38
|
+
// New naming convention
|
|
39
|
+
"happy-path": { icon: CheckCircle2, color: "text-green-500", bgColor: "bg-green-500/10", label: "正常系" },
|
|
40
|
+
auth: { icon: Shield, color: "text-blue-500", bgColor: "bg-blue-500/10", label: "認証" },
|
|
41
|
+
"error-handling": { icon: AlertCircle, color: "text-red-500", bgColor: "bg-red-500/10", label: "異常系" },
|
|
42
|
+
validation: { icon: AlertTriangle, color: "text-yellow-500", bgColor: "bg-yellow-500/10", label: "バリデーション" },
|
|
43
|
+
"edge-case": { icon: Layers, color: "text-purple-500", bgColor: "bg-purple-500/10", label: "境界値" },
|
|
44
|
+
integration: { icon: GitBranch, color: "text-cyan-500", bgColor: "bg-cyan-500/10", label: "統合" },
|
|
45
|
+
other: { icon: FlaskConical, color: "text-gray-500", bgColor: "bg-gray-500/10", label: "その他" },
|
|
46
|
+
// Old naming convention aliases (for backward compatibility)
|
|
47
|
+
success: { icon: CheckCircle2, color: "text-green-500", bgColor: "bg-green-500/10", label: "正常系" },
|
|
48
|
+
error: { icon: AlertCircle, color: "text-red-500", bgColor: "bg-red-500/10", label: "異常系" },
|
|
49
|
+
edge: { icon: Layers, color: "text-purple-500", bgColor: "bg-purple-500/10", label: "境界値" },
|
|
50
|
+
unknown: { icon: FlaskConical, color: "text-gray-500", bgColor: "bg-gray-500/10", label: "その他" },
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export async function generateStaticParams() {
|
|
54
|
+
const data = await loadTestCases();
|
|
55
|
+
if (!data) return [];
|
|
56
|
+
|
|
57
|
+
// Generate pages for all test cases
|
|
58
|
+
// Use __ instead of / for URL-safe paths (Nginx decodes %2F)
|
|
59
|
+
return data.testCases.map((tc) => ({
|
|
60
|
+
file: encodeFilePath(tc.file),
|
|
61
|
+
line: String(tc.line),
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface Props {
|
|
66
|
+
params: Promise<{ file: string; line: string }>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Find related source item from feature map
|
|
71
|
+
*/
|
|
72
|
+
function findRelatedSource(
|
|
73
|
+
testFile: string,
|
|
74
|
+
featureMap: Awaited<ReturnType<typeof loadFeatureMap>>
|
|
75
|
+
): { type: string; module: string; name: string; path: string } | null {
|
|
76
|
+
if (!featureMap) return null;
|
|
77
|
+
|
|
78
|
+
// Extract the source file name being tested
|
|
79
|
+
// e.g., apps/web/__tests__/lib/actions/tokens.test.ts -> tokens
|
|
80
|
+
const match = testFile.match(/__tests__\/(.+?)\.test\.(ts|tsx)$/);
|
|
81
|
+
if (!match) return null;
|
|
82
|
+
|
|
83
|
+
const testPath = match[1]; // e.g., "lib/actions/tokens" or "components/entity-form"
|
|
84
|
+
const parts = testPath.split("/");
|
|
85
|
+
const targetName = parts[parts.length - 1]; // e.g., "tokens" or "entity-form"
|
|
86
|
+
|
|
87
|
+
// Determine type from path
|
|
88
|
+
let type: string | null = null;
|
|
89
|
+
if (testPath.includes("actions")) type = "actions";
|
|
90
|
+
else if (testPath.includes("components")) type = "components";
|
|
91
|
+
else if (testPath.includes("lib")) type = "actions"; // lib utilities often map to actions
|
|
92
|
+
|
|
93
|
+
// Search in feature map
|
|
94
|
+
for (const [moduleName, group] of Object.entries(featureMap.features)) {
|
|
95
|
+
const layers = [
|
|
96
|
+
{ type: "actions", items: group.actions || [] },
|
|
97
|
+
{ type: "components", items: group.components || [] },
|
|
98
|
+
{ type: "screens", items: group.screens || [] },
|
|
99
|
+
];
|
|
100
|
+
|
|
101
|
+
for (const layer of layers) {
|
|
102
|
+
for (const item of layer.items) {
|
|
103
|
+
// Match by file path or name
|
|
104
|
+
const itemFileName = item.path?.split("/").pop()?.replace(/\.(ts|tsx)$/, "");
|
|
105
|
+
if (itemFileName === targetName || item.name.toLowerCase().includes(targetName.replace(/-/g, ""))) {
|
|
106
|
+
return {
|
|
107
|
+
type: layer.type,
|
|
108
|
+
module: moduleName,
|
|
109
|
+
name: item.name,
|
|
110
|
+
path: item.path || "",
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export default async function TestDetailPage({ params }: Props) {
|
|
121
|
+
const { file: encodedFile, line: lineStr } = await params;
|
|
122
|
+
const file = decodeFilePath(encodedFile);
|
|
123
|
+
const line = parseInt(lineStr, 10);
|
|
124
|
+
|
|
125
|
+
const [data, details, featureMap] = await Promise.all([
|
|
126
|
+
loadTestCases(),
|
|
127
|
+
loadDetails(),
|
|
128
|
+
loadFeatureMap(),
|
|
129
|
+
]);
|
|
130
|
+
|
|
131
|
+
if (!data) return notFound();
|
|
132
|
+
|
|
133
|
+
// Find the specific test
|
|
134
|
+
const test = data.testCases.find((tc) => tc.file === file && tc.line === line);
|
|
135
|
+
if (!test) return notFound();
|
|
136
|
+
|
|
137
|
+
// Get file stats for module info
|
|
138
|
+
const fileStats = data.summary.fileStats?.find((fs) => fs.file === file);
|
|
139
|
+
|
|
140
|
+
// Find related tests (same describe, different test)
|
|
141
|
+
const relatedTests = data.testCases.filter(
|
|
142
|
+
(tc) => tc.file === file && tc.describe === test.describe && tc.line !== line
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
// Find related source
|
|
146
|
+
const relatedSource = findRelatedSource(file, featureMap);
|
|
147
|
+
const format = getPortalFormat();
|
|
148
|
+
|
|
149
|
+
// Get config for this test's category
|
|
150
|
+
const config = categoryConfig[test.category || "unknown"] || categoryConfig.unknown;
|
|
151
|
+
const CategoryIcon = config.icon;
|
|
152
|
+
|
|
153
|
+
// Extract filename for display
|
|
154
|
+
const fileName = file.split("/").pop() || file;
|
|
155
|
+
|
|
156
|
+
// Document format
|
|
157
|
+
if (format === "document") {
|
|
158
|
+
return (
|
|
159
|
+
<div className="space-y-8">
|
|
160
|
+
{/* Breadcrumb */}
|
|
161
|
+
<nav className="flex items-center gap-2 text-sm text-muted-foreground">
|
|
162
|
+
<Link href="/test-cases" className="hover:text-primary transition-colors">
|
|
163
|
+
テストケース
|
|
164
|
+
</Link>
|
|
165
|
+
<ChevronRight className="h-4 w-4" />
|
|
166
|
+
<Link
|
|
167
|
+
href={`/test-cases/${encodeFilePath(file)}`}
|
|
168
|
+
className="hover:text-primary transition-colors truncate max-w-[200px]"
|
|
169
|
+
>
|
|
170
|
+
{fileName}
|
|
171
|
+
</Link>
|
|
172
|
+
<ChevronRight className="h-4 w-4" />
|
|
173
|
+
<span className="truncate">Line {line}</span>
|
|
174
|
+
</nav>
|
|
175
|
+
|
|
176
|
+
{/* Header */}
|
|
177
|
+
<header>
|
|
178
|
+
<div className="flex items-start gap-4">
|
|
179
|
+
<div className={`rounded-lg p-3 ${config.bgColor}`}>
|
|
180
|
+
<CategoryIcon className={`h-8 w-8 ${config.color}`} />
|
|
181
|
+
</div>
|
|
182
|
+
<div className="flex-1 min-w-0">
|
|
183
|
+
<h1 className="text-2xl font-bold tracking-tight">{test.it}</h1>
|
|
184
|
+
<p className="mt-1 text-sm text-muted-foreground">
|
|
185
|
+
テストケース詳細
|
|
186
|
+
</p>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</header>
|
|
190
|
+
|
|
191
|
+
<TestDetailDocument
|
|
192
|
+
test={test}
|
|
193
|
+
file={file}
|
|
194
|
+
relatedTests={relatedTests}
|
|
195
|
+
relatedSource={relatedSource}
|
|
196
|
+
fileStats={fileStats}
|
|
197
|
+
/>
|
|
198
|
+
|
|
199
|
+
{/* Navigation */}
|
|
200
|
+
<div className="flex justify-between items-center pt-4 border-t">
|
|
201
|
+
<Button asChild variant="ghost">
|
|
202
|
+
<Link href={`/test-cases/${encodeFilePath(file)}`}>
|
|
203
|
+
<ArrowLeft className="h-4 w-4 mr-2" />
|
|
204
|
+
ファイルに戻る
|
|
205
|
+
</Link>
|
|
206
|
+
</Button>
|
|
207
|
+
<Button asChild variant="outline">
|
|
208
|
+
<Link href="/test-cases">
|
|
209
|
+
テストケース一覧
|
|
210
|
+
</Link>
|
|
211
|
+
</Button>
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// Card format (default)
|
|
218
|
+
return (
|
|
219
|
+
<div className="space-y-8">
|
|
220
|
+
{/* Breadcrumb */}
|
|
221
|
+
<nav className="flex items-center gap-2 text-sm text-muted-foreground">
|
|
222
|
+
<Link href="/test-cases" className="hover:text-primary transition-colors">
|
|
223
|
+
テストケース
|
|
224
|
+
</Link>
|
|
225
|
+
<ChevronRight className="h-4 w-4" />
|
|
226
|
+
<Link
|
|
227
|
+
href={`/test-cases/${encodeFilePath(file)}`}
|
|
228
|
+
className="hover:text-primary transition-colors truncate max-w-[200px]"
|
|
229
|
+
>
|
|
230
|
+
{fileName}
|
|
231
|
+
</Link>
|
|
232
|
+
<ChevronRight className="h-4 w-4" />
|
|
233
|
+
<span className="truncate">Line {line}</span>
|
|
234
|
+
</nav>
|
|
235
|
+
|
|
236
|
+
{/* Header */}
|
|
237
|
+
<header>
|
|
238
|
+
<div className="flex items-start gap-4">
|
|
239
|
+
<div className={`rounded-lg p-3 ${config.bgColor}`}>
|
|
240
|
+
<CategoryIcon className={`h-8 w-8 ${config.color}`} />
|
|
241
|
+
</div>
|
|
242
|
+
<div className="flex-1 min-w-0">
|
|
243
|
+
<h1 className="text-2xl font-bold tracking-tight">{test.it}</h1>
|
|
244
|
+
<div className="mt-2 flex flex-wrap items-center gap-2">
|
|
245
|
+
<Badge className={config.bgColor}>
|
|
246
|
+
<CategoryIcon className={`h-3 w-3 mr-1 ${config.color}`} />
|
|
247
|
+
{config.label}
|
|
248
|
+
</Badge>
|
|
249
|
+
<Badge variant="outline">
|
|
250
|
+
{test.framework === "playwright" ? "Playwright" : "Jest"}
|
|
251
|
+
</Badge>
|
|
252
|
+
<Badge variant="secondary">Line {line}</Badge>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
</header>
|
|
257
|
+
|
|
258
|
+
{/* Main content grid */}
|
|
259
|
+
<div className="grid gap-6 lg:grid-cols-3">
|
|
260
|
+
{/* Left column - Test details */}
|
|
261
|
+
<div className="lg:col-span-2 space-y-6">
|
|
262
|
+
{/* Description */}
|
|
263
|
+
{test.description && (
|
|
264
|
+
<Card>
|
|
265
|
+
<CardHeader>
|
|
266
|
+
<div className="flex items-center gap-2">
|
|
267
|
+
<FileText className="h-5 w-5 text-muted-foreground" />
|
|
268
|
+
<CardTitle>説明</CardTitle>
|
|
269
|
+
</div>
|
|
270
|
+
</CardHeader>
|
|
271
|
+
<CardContent>
|
|
272
|
+
<p className="text-foreground">{test.description}</p>
|
|
273
|
+
</CardContent>
|
|
274
|
+
</Card>
|
|
275
|
+
)}
|
|
276
|
+
|
|
277
|
+
{/* Purpose & Expected */}
|
|
278
|
+
<div className="grid gap-6 md:grid-cols-2">
|
|
279
|
+
{test.purpose && (
|
|
280
|
+
<Card>
|
|
281
|
+
<CardHeader className="pb-2">
|
|
282
|
+
<div className="flex items-center gap-2">
|
|
283
|
+
<Target className="h-5 w-5 text-muted-foreground" />
|
|
284
|
+
<CardTitle className="text-base">テスト目的</CardTitle>
|
|
285
|
+
</div>
|
|
286
|
+
</CardHeader>
|
|
287
|
+
<CardContent>
|
|
288
|
+
<p className="text-sm text-muted-foreground">{test.purpose}</p>
|
|
289
|
+
</CardContent>
|
|
290
|
+
</Card>
|
|
291
|
+
)}
|
|
292
|
+
|
|
293
|
+
{test.expected && (
|
|
294
|
+
<Card>
|
|
295
|
+
<CardHeader className="pb-2">
|
|
296
|
+
<div className="flex items-center gap-2">
|
|
297
|
+
<CheckCircle2 className="h-5 w-5 text-muted-foreground" />
|
|
298
|
+
<CardTitle className="text-base">期待結果</CardTitle>
|
|
299
|
+
</div>
|
|
300
|
+
</CardHeader>
|
|
301
|
+
<CardContent>
|
|
302
|
+
<p className="text-sm text-muted-foreground">{test.expected}</p>
|
|
303
|
+
</CardContent>
|
|
304
|
+
</Card>
|
|
305
|
+
)}
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
{/* Describe docs */}
|
|
309
|
+
{test.describeDocs && test.describeDocs.length > 0 && (
|
|
310
|
+
<Card>
|
|
311
|
+
<CardHeader>
|
|
312
|
+
<div className="flex items-center gap-2">
|
|
313
|
+
<ListChecks className="h-5 w-5 text-muted-foreground" />
|
|
314
|
+
<CardTitle>テストスイート情報</CardTitle>
|
|
315
|
+
</div>
|
|
316
|
+
</CardHeader>
|
|
317
|
+
<CardContent>
|
|
318
|
+
<div className="space-y-4">
|
|
319
|
+
{test.describeDocs.map((doc, idx) => (
|
|
320
|
+
<div key={idx} className="border-l-2 border-muted pl-4">
|
|
321
|
+
<p className="font-medium">{doc.name}</p>
|
|
322
|
+
{doc.testdoc && (
|
|
323
|
+
<p className="text-sm text-muted-foreground mt-1">{doc.testdoc}</p>
|
|
324
|
+
)}
|
|
325
|
+
{doc.purpose && (
|
|
326
|
+
<p className="text-xs text-muted-foreground mt-1">
|
|
327
|
+
目的: {doc.purpose}
|
|
328
|
+
</p>
|
|
329
|
+
)}
|
|
330
|
+
</div>
|
|
331
|
+
))}
|
|
332
|
+
</div>
|
|
333
|
+
</CardContent>
|
|
334
|
+
</Card>
|
|
335
|
+
)}
|
|
336
|
+
</div>
|
|
337
|
+
|
|
338
|
+
{/* Right column - Links and related */}
|
|
339
|
+
<div className="space-y-6">
|
|
340
|
+
{/* Source file info */}
|
|
341
|
+
<Card>
|
|
342
|
+
<CardHeader className="pb-2">
|
|
343
|
+
<div className="flex items-center gap-2">
|
|
344
|
+
<FileCode2 className="h-5 w-5 text-muted-foreground" />
|
|
345
|
+
<CardTitle className="text-base">ソースファイル</CardTitle>
|
|
346
|
+
</div>
|
|
347
|
+
</CardHeader>
|
|
348
|
+
<CardContent>
|
|
349
|
+
<p className="text-sm text-muted-foreground break-all">{file}</p>
|
|
350
|
+
<p className="text-sm mt-2">
|
|
351
|
+
<span className="text-muted-foreground">describe: </span>
|
|
352
|
+
<span className="font-mono text-xs">{test.describe}</span>
|
|
353
|
+
</p>
|
|
354
|
+
</CardContent>
|
|
355
|
+
</Card>
|
|
356
|
+
|
|
357
|
+
{/* Related source link */}
|
|
358
|
+
{relatedSource && (
|
|
359
|
+
<Card className="border-primary/30">
|
|
360
|
+
<CardHeader className="pb-2">
|
|
361
|
+
<div className="flex items-center gap-2">
|
|
362
|
+
<ExternalLink className="h-5 w-5 text-primary" />
|
|
363
|
+
<CardTitle className="text-base">テスト対象</CardTitle>
|
|
364
|
+
</div>
|
|
365
|
+
</CardHeader>
|
|
366
|
+
<CardContent>
|
|
367
|
+
<Link
|
|
368
|
+
href={`/details/${relatedSource.type}/${encodeURIComponent(relatedSource.module)}/${encodeURIComponent(relatedSource.name)}`}
|
|
369
|
+
className="flex items-center justify-between p-3 rounded-lg border hover:bg-muted/50 transition-colors group"
|
|
370
|
+
>
|
|
371
|
+
<div>
|
|
372
|
+
<p className="font-medium group-hover:text-primary transition-colors">
|
|
373
|
+
{relatedSource.name}
|
|
374
|
+
</p>
|
|
375
|
+
<p className="text-xs text-muted-foreground mt-1">
|
|
376
|
+
{relatedSource.module} / {relatedSource.type}
|
|
377
|
+
</p>
|
|
378
|
+
</div>
|
|
379
|
+
<ArrowRight className="h-4 w-4 text-muted-foreground group-hover:text-primary transition-colors" />
|
|
380
|
+
</Link>
|
|
381
|
+
</CardContent>
|
|
382
|
+
</Card>
|
|
383
|
+
)}
|
|
384
|
+
|
|
385
|
+
{/* Module link from fileStats */}
|
|
386
|
+
{fileStats?.module?.detailPath && !relatedSource && (
|
|
387
|
+
<Card className="border-primary/30">
|
|
388
|
+
<CardHeader className="pb-2">
|
|
389
|
+
<div className="flex items-center gap-2">
|
|
390
|
+
<ExternalLink className="h-5 w-5 text-primary" />
|
|
391
|
+
<CardTitle className="text-base">関連モジュール</CardTitle>
|
|
392
|
+
</div>
|
|
393
|
+
</CardHeader>
|
|
394
|
+
<CardContent>
|
|
395
|
+
<Button asChild variant="outline" className="w-full">
|
|
396
|
+
<Link href={`/${fileStats.module.detailPath.replace(".html", "")}`}>
|
|
397
|
+
{fileStats.module.name}の詳細を見る
|
|
398
|
+
</Link>
|
|
399
|
+
</Button>
|
|
400
|
+
</CardContent>
|
|
401
|
+
</Card>
|
|
402
|
+
)}
|
|
403
|
+
|
|
404
|
+
{/* Related tests */}
|
|
405
|
+
{relatedTests.length > 0 && (
|
|
406
|
+
<Card>
|
|
407
|
+
<CardHeader className="pb-2">
|
|
408
|
+
<CardTitle className="text-base">同じdescribeのテスト</CardTitle>
|
|
409
|
+
<CardDescription>{relatedTests.length} tests</CardDescription>
|
|
410
|
+
</CardHeader>
|
|
411
|
+
<CardContent>
|
|
412
|
+
<div className="space-y-2 max-h-64 overflow-y-auto">
|
|
413
|
+
{relatedTests.slice(0, 10).map((rt) => {
|
|
414
|
+
const rtConfig = categoryConfig[rt.category || "unknown"] || categoryConfig.unknown;
|
|
415
|
+
const RtIcon = rtConfig.icon;
|
|
416
|
+
return (
|
|
417
|
+
<Link
|
|
418
|
+
key={rt.line}
|
|
419
|
+
href={`/test-cases/${encodeFilePath(file)}#line-${rt.line}`}
|
|
420
|
+
className="flex items-start gap-2 p-2 rounded-md hover:bg-muted/50 transition-colors text-sm"
|
|
421
|
+
>
|
|
422
|
+
<RtIcon className={`h-4 w-4 mt-0.5 ${rtConfig.color}`} />
|
|
423
|
+
<span className="line-clamp-2">{rt.it}</span>
|
|
424
|
+
</Link>
|
|
425
|
+
);
|
|
426
|
+
})}
|
|
427
|
+
{relatedTests.length > 10 && (
|
|
428
|
+
<p className="text-xs text-muted-foreground text-center pt-2">
|
|
429
|
+
+{relatedTests.length - 10} more
|
|
430
|
+
</p>
|
|
431
|
+
)}
|
|
432
|
+
</div>
|
|
433
|
+
</CardContent>
|
|
434
|
+
</Card>
|
|
435
|
+
)}
|
|
436
|
+
</div>
|
|
437
|
+
</div>
|
|
438
|
+
|
|
439
|
+
{/* Navigation */}
|
|
440
|
+
<div className="flex justify-between items-center pt-4 border-t">
|
|
441
|
+
<Button asChild variant="ghost">
|
|
442
|
+
<Link href={`/test-cases/${encodeFilePath(file)}`}>
|
|
443
|
+
<ArrowLeft className="h-4 w-4 mr-2" />
|
|
444
|
+
ファイルに戻る
|
|
445
|
+
</Link>
|
|
446
|
+
</Button>
|
|
447
|
+
<Button asChild variant="outline">
|
|
448
|
+
<Link href="/test-cases">
|
|
449
|
+
テストケース一覧
|
|
450
|
+
</Link>
|
|
451
|
+
</Button>
|
|
452
|
+
</div>
|
|
453
|
+
</div>
|
|
454
|
+
);
|
|
455
|
+
}
|