@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,373 @@
|
|
|
1
|
+
import { notFound } from "next/navigation";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import {
|
|
4
|
+
Monitor,
|
|
5
|
+
Component,
|
|
6
|
+
Zap,
|
|
7
|
+
Database,
|
|
8
|
+
Package,
|
|
9
|
+
ArrowLeft,
|
|
10
|
+
FileCode,
|
|
11
|
+
TestTube2,
|
|
12
|
+
ChevronRight,
|
|
13
|
+
} from "lucide-react";
|
|
14
|
+
import {
|
|
15
|
+
Card,
|
|
16
|
+
CardContent,
|
|
17
|
+
CardDescription,
|
|
18
|
+
CardHeader,
|
|
19
|
+
CardTitle,
|
|
20
|
+
} from "@/components/ui/card";
|
|
21
|
+
import { Badge } from "@/components/ui/badge";
|
|
22
|
+
import { loadFeatureMap, loadDetails, loadApplications } from "@/lib/data-loader";
|
|
23
|
+
import type {
|
|
24
|
+
FeatureMapData,
|
|
25
|
+
ScreenItem,
|
|
26
|
+
ComponentItem,
|
|
27
|
+
ActionItem,
|
|
28
|
+
ModuleItem,
|
|
29
|
+
TableItem,
|
|
30
|
+
DetailItem,
|
|
31
|
+
} from "@/lib/types";
|
|
32
|
+
|
|
33
|
+
export const dynamicParams = false;
|
|
34
|
+
|
|
35
|
+
type LayerType = "screens" | "components" | "actions" | "modules" | "tables";
|
|
36
|
+
|
|
37
|
+
interface LayerConfig {
|
|
38
|
+
key: LayerType;
|
|
39
|
+
singular: string;
|
|
40
|
+
label: string;
|
|
41
|
+
icon: typeof Monitor;
|
|
42
|
+
color: string;
|
|
43
|
+
bgColor: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const layerConfigs: Record<LayerType, LayerConfig> = {
|
|
47
|
+
screens: {
|
|
48
|
+
key: "screens",
|
|
49
|
+
singular: "screen",
|
|
50
|
+
label: "Screens",
|
|
51
|
+
icon: Monitor,
|
|
52
|
+
color: "text-accent-blue",
|
|
53
|
+
bgColor: "bg-accent-blue/10",
|
|
54
|
+
},
|
|
55
|
+
components: {
|
|
56
|
+
key: "components",
|
|
57
|
+
singular: "component",
|
|
58
|
+
label: "Components",
|
|
59
|
+
icon: Component,
|
|
60
|
+
color: "text-accent-green",
|
|
61
|
+
bgColor: "bg-accent-green/10",
|
|
62
|
+
},
|
|
63
|
+
actions: {
|
|
64
|
+
key: "actions",
|
|
65
|
+
singular: "action",
|
|
66
|
+
label: "Actions",
|
|
67
|
+
icon: Zap,
|
|
68
|
+
color: "text-accent-yellow",
|
|
69
|
+
bgColor: "bg-accent-yellow/10",
|
|
70
|
+
},
|
|
71
|
+
modules: {
|
|
72
|
+
key: "modules",
|
|
73
|
+
singular: "module",
|
|
74
|
+
label: "Modules",
|
|
75
|
+
icon: Package,
|
|
76
|
+
color: "text-accent-orange",
|
|
77
|
+
bgColor: "bg-accent-orange/10",
|
|
78
|
+
},
|
|
79
|
+
tables: {
|
|
80
|
+
key: "tables",
|
|
81
|
+
singular: "table",
|
|
82
|
+
label: "Tables",
|
|
83
|
+
icon: Database,
|
|
84
|
+
color: "text-accent-purple",
|
|
85
|
+
bgColor: "bg-accent-purple/10",
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
interface PageProps {
|
|
90
|
+
params: Promise<{ appId: string; type: string; module: string }>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Generate static params for all app/type/module combinations
|
|
95
|
+
*/
|
|
96
|
+
export async function generateStaticParams(): Promise<
|
|
97
|
+
{ appId: string; type: string; module: string }[]
|
|
98
|
+
> {
|
|
99
|
+
const [data, applications] = await Promise.all([
|
|
100
|
+
loadFeatureMap(),
|
|
101
|
+
loadApplications(),
|
|
102
|
+
]);
|
|
103
|
+
|
|
104
|
+
if (!data || !applications?.apps) return [];
|
|
105
|
+
|
|
106
|
+
const params: { appId: string; type: string; module: string }[] = [];
|
|
107
|
+
const layers: LayerType[] = ["screens", "components", "actions", "modules", "tables"];
|
|
108
|
+
|
|
109
|
+
// For each app
|
|
110
|
+
for (const app of applications.apps) {
|
|
111
|
+
// Skip API type apps - they don't have feature map items
|
|
112
|
+
if (app.type === "api") continue;
|
|
113
|
+
|
|
114
|
+
const appNameForFilter = app.name.replace(" アプリ", "");
|
|
115
|
+
|
|
116
|
+
// Check each module
|
|
117
|
+
for (const [moduleName, group] of Object.entries(data.features)) {
|
|
118
|
+
for (const layer of layers) {
|
|
119
|
+
const items = group[layer] || [];
|
|
120
|
+
// Only add if this app has items in this module/layer
|
|
121
|
+
const hasAppItems = items.some((item: ScreenItem | ComponentItem | ActionItem | ModuleItem | TableItem) => item.app === appNameForFilter);
|
|
122
|
+
if (hasAppItems) {
|
|
123
|
+
params.push({ appId: app.id, type: layer, module: moduleName });
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Check uncategorized
|
|
129
|
+
for (const layer of layers) {
|
|
130
|
+
const items = data.uncategorized[layer] || [];
|
|
131
|
+
const hasAppItems = items.some((item: ScreenItem | ComponentItem | ActionItem | ModuleItem | TableItem) => item.app === appNameForFilter);
|
|
132
|
+
if (hasAppItems) {
|
|
133
|
+
params.push({ appId: app.id, type: layer, module: "Uncategorized" });
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return params;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function getModuleItems(
|
|
142
|
+
data: FeatureMapData,
|
|
143
|
+
module: string,
|
|
144
|
+
type: LayerType,
|
|
145
|
+
appName: string
|
|
146
|
+
): (ScreenItem | ComponentItem | ActionItem | ModuleItem | TableItem)[] {
|
|
147
|
+
const items = module === "Uncategorized"
|
|
148
|
+
? data.uncategorized[type] || []
|
|
149
|
+
: data.features[module]?.[type] || [];
|
|
150
|
+
|
|
151
|
+
// Filter by app
|
|
152
|
+
return items.filter((item) => item.app === appName);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Item List Card Component
|
|
157
|
+
*/
|
|
158
|
+
function ItemListCard({
|
|
159
|
+
item,
|
|
160
|
+
type,
|
|
161
|
+
module,
|
|
162
|
+
appId,
|
|
163
|
+
config,
|
|
164
|
+
detail,
|
|
165
|
+
}: {
|
|
166
|
+
item: ScreenItem | ComponentItem | ActionItem | ModuleItem | TableItem;
|
|
167
|
+
type: LayerType;
|
|
168
|
+
module: string;
|
|
169
|
+
appId: string;
|
|
170
|
+
config: LayerConfig;
|
|
171
|
+
detail?: DetailItem;
|
|
172
|
+
}) {
|
|
173
|
+
const Icon = config.icon;
|
|
174
|
+
const hasTests = (detail?.testCoverage?.totalTests || 0) > 0;
|
|
175
|
+
|
|
176
|
+
return (
|
|
177
|
+
<Link href={`/apps/${appId}/${type}/${encodeURIComponent(module)}/${encodeURIComponent(item.name)}`}>
|
|
178
|
+
<Card className="transition-all hover:border-primary/50 hover:shadow-md cursor-pointer h-full">
|
|
179
|
+
<CardHeader className="pb-2">
|
|
180
|
+
<div className="flex items-start gap-3">
|
|
181
|
+
<div className={`rounded-md p-2 mt-0.5 ${config.bgColor}`}>
|
|
182
|
+
<Icon className={`h-4 w-4 ${config.color}`} />
|
|
183
|
+
</div>
|
|
184
|
+
<div className="flex-1 min-w-0">
|
|
185
|
+
<CardTitle className="text-base font-mono group-hover:text-primary transition-colors flex items-center gap-2">
|
|
186
|
+
{item.name}
|
|
187
|
+
<ChevronRight className="h-4 w-4 text-muted-foreground" />
|
|
188
|
+
</CardTitle>
|
|
189
|
+
{item.description && (
|
|
190
|
+
<CardDescription className="mt-1 line-clamp-2">
|
|
191
|
+
{item.description}
|
|
192
|
+
</CardDescription>
|
|
193
|
+
)}
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
</CardHeader>
|
|
197
|
+
<CardContent className="pt-0">
|
|
198
|
+
<div className="flex items-center gap-4 text-xs text-muted-foreground">
|
|
199
|
+
{"path" in item && item.path && (
|
|
200
|
+
<span className="flex items-center gap-1">
|
|
201
|
+
<FileCode className="h-3.5 w-3.5" />
|
|
202
|
+
<code className="truncate max-w-[200px]">{item.path}</code>
|
|
203
|
+
</span>
|
|
204
|
+
)}
|
|
205
|
+
<span className="flex items-center gap-1">
|
|
206
|
+
<TestTube2 className={`h-3.5 w-3.5 ${hasTests ? 'text-accent-green' : ''}`} />
|
|
207
|
+
{detail?.testCoverage?.totalTests || 0} テスト
|
|
208
|
+
</span>
|
|
209
|
+
</div>
|
|
210
|
+
</CardContent>
|
|
211
|
+
</Card>
|
|
212
|
+
</Link>
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export default async function AppModulePage({ params }: PageProps) {
|
|
217
|
+
const { appId, type, module } = await params;
|
|
218
|
+
const decodedModule = decodeURIComponent(module);
|
|
219
|
+
const layerType = type as LayerType;
|
|
220
|
+
|
|
221
|
+
// Validate layer type
|
|
222
|
+
if (!layerConfigs[layerType]) {
|
|
223
|
+
notFound();
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
const config = layerConfigs[layerType];
|
|
227
|
+
|
|
228
|
+
const [data, details, applications] = await Promise.all([
|
|
229
|
+
loadFeatureMap(),
|
|
230
|
+
loadDetails(),
|
|
231
|
+
loadApplications(),
|
|
232
|
+
]);
|
|
233
|
+
|
|
234
|
+
// Find the app configuration
|
|
235
|
+
const app = applications?.apps?.find((a) => a.id === appId);
|
|
236
|
+
if (!app) {
|
|
237
|
+
notFound();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
const appNameForFilter = app.name.replace(" アプリ", "");
|
|
241
|
+
|
|
242
|
+
if (!data) {
|
|
243
|
+
return (
|
|
244
|
+
<div className="space-y-8">
|
|
245
|
+
<header>
|
|
246
|
+
<h1 className="text-3xl font-bold tracking-tight">{decodedModule}</h1>
|
|
247
|
+
<p className="mt-2 text-destructive">No feature map data available.</p>
|
|
248
|
+
</header>
|
|
249
|
+
</div>
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// Get items filtered by app
|
|
254
|
+
const items = getModuleItems(data, decodedModule, layerType, appNameForFilter);
|
|
255
|
+
|
|
256
|
+
if (items.length === 0) {
|
|
257
|
+
notFound();
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// Get detail for an item
|
|
261
|
+
const getDetailForItem = (itemName: string): DetailItem | undefined => {
|
|
262
|
+
if (!details) return undefined;
|
|
263
|
+
|
|
264
|
+
// First try exact key match (type/module/name)
|
|
265
|
+
const exactKey = `${config.singular}/${decodedModule}/${itemName}`;
|
|
266
|
+
if (details.details[exactKey]) {
|
|
267
|
+
return details.details[exactKey];
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// Search by item name across all modules
|
|
271
|
+
const prefix = `${config.singular}/`;
|
|
272
|
+
const suffix = `/${itemName}`;
|
|
273
|
+
|
|
274
|
+
for (const [key, detail] of Object.entries(details.details)) {
|
|
275
|
+
if (key.startsWith(prefix) && key.endsWith(suffix)) {
|
|
276
|
+
return detail;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
return undefined;
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
// Stats
|
|
284
|
+
const testedItems = items.filter((item) => {
|
|
285
|
+
const detail = getDetailForItem(item.name);
|
|
286
|
+
return (detail?.testCoverage?.totalTests || 0) > 0;
|
|
287
|
+
}).length;
|
|
288
|
+
const totalTests = items.reduce((sum, item) => {
|
|
289
|
+
const detail = getDetailForItem(item.name);
|
|
290
|
+
return sum + (detail?.testCoverage?.totalTests || 0);
|
|
291
|
+
}, 0);
|
|
292
|
+
|
|
293
|
+
const Icon = config.icon;
|
|
294
|
+
|
|
295
|
+
return (
|
|
296
|
+
<div className="space-y-8">
|
|
297
|
+
{/* Breadcrumb */}
|
|
298
|
+
<div className="flex items-center gap-2 text-sm">
|
|
299
|
+
<Link
|
|
300
|
+
href={`/apps/${appId}/feature-map`}
|
|
301
|
+
className="flex items-center gap-1 text-muted-foreground hover:text-primary"
|
|
302
|
+
>
|
|
303
|
+
<ArrowLeft className="h-4 w-4" />
|
|
304
|
+
{app.name} Feature Map
|
|
305
|
+
</Link>
|
|
306
|
+
<span className="text-muted-foreground">/</span>
|
|
307
|
+
<span className="text-muted-foreground">{config.label}</span>
|
|
308
|
+
<span className="text-muted-foreground">/</span>
|
|
309
|
+
<span className="font-medium">{decodedModule}</span>
|
|
310
|
+
</div>
|
|
311
|
+
|
|
312
|
+
{/* Header */}
|
|
313
|
+
<header className="flex items-start gap-4">
|
|
314
|
+
<div className={`rounded-lg p-3 ${config.bgColor}`}>
|
|
315
|
+
<Icon className={`h-8 w-8 ${config.color}`} />
|
|
316
|
+
</div>
|
|
317
|
+
<div>
|
|
318
|
+
<h1 className="text-3xl font-bold tracking-tight">{decodedModule}</h1>
|
|
319
|
+
<div className="mt-2 flex items-center gap-4">
|
|
320
|
+
<Badge variant="secondary">
|
|
321
|
+
{items.length} {config.label.toLowerCase()}
|
|
322
|
+
</Badge>
|
|
323
|
+
<Badge variant="outline" className={config.color}>
|
|
324
|
+
{config.label}
|
|
325
|
+
</Badge>
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
</header>
|
|
329
|
+
|
|
330
|
+
{/* Stats */}
|
|
331
|
+
<div className="grid gap-4 md:grid-cols-3">
|
|
332
|
+
<Card>
|
|
333
|
+
<CardHeader className="pb-2">
|
|
334
|
+
<CardDescription>アイテム数</CardDescription>
|
|
335
|
+
<CardTitle className="text-3xl">{items.length}</CardTitle>
|
|
336
|
+
</CardHeader>
|
|
337
|
+
</Card>
|
|
338
|
+
<Card>
|
|
339
|
+
<CardHeader className="pb-2">
|
|
340
|
+
<CardDescription>テスト付きアイテム</CardDescription>
|
|
341
|
+
<CardTitle className="text-3xl">{testedItems}</CardTitle>
|
|
342
|
+
</CardHeader>
|
|
343
|
+
</Card>
|
|
344
|
+
<Card>
|
|
345
|
+
<CardHeader className="pb-2">
|
|
346
|
+
<CardDescription>総テスト数</CardDescription>
|
|
347
|
+
<CardTitle className="text-3xl">{totalTests}</CardTitle>
|
|
348
|
+
</CardHeader>
|
|
349
|
+
</Card>
|
|
350
|
+
</div>
|
|
351
|
+
|
|
352
|
+
{/* Items List - No app grouping needed since we're already in app context */}
|
|
353
|
+
<section>
|
|
354
|
+
<h2 className="mb-4 text-xl font-semibold">
|
|
355
|
+
{config.label} in this module
|
|
356
|
+
</h2>
|
|
357
|
+
<div className="grid gap-4 md:grid-cols-2">
|
|
358
|
+
{items.map((item) => (
|
|
359
|
+
<ItemListCard
|
|
360
|
+
key={item.name}
|
|
361
|
+
item={item}
|
|
362
|
+
type={layerType}
|
|
363
|
+
module={decodedModule}
|
|
364
|
+
appId={appId}
|
|
365
|
+
config={config}
|
|
366
|
+
detail={getDetailForItem(item.name)}
|
|
367
|
+
/>
|
|
368
|
+
))}
|
|
369
|
+
</div>
|
|
370
|
+
</section>
|
|
371
|
+
</div>
|
|
372
|
+
);
|
|
373
|
+
}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App Feature Map - ドキュメント形式表示
|
|
3
|
+
*
|
|
4
|
+
* アプリ別の機能マップをテーブル・アコーディオン形式で表示
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import Link from "next/link";
|
|
8
|
+
import {
|
|
9
|
+
Monitor,
|
|
10
|
+
Component,
|
|
11
|
+
Zap,
|
|
12
|
+
Database,
|
|
13
|
+
Package,
|
|
14
|
+
FlaskConical,
|
|
15
|
+
ArrowRight,
|
|
16
|
+
} from "lucide-react";
|
|
17
|
+
import { Badge } from "@/components/ui/badge";
|
|
18
|
+
import { DocSection, DocTable, type DocTableColumn } from "@/components/document";
|
|
19
|
+
import type {
|
|
20
|
+
FeatureMapData,
|
|
21
|
+
FeatureGroup,
|
|
22
|
+
ScreenItem,
|
|
23
|
+
ComponentItem,
|
|
24
|
+
ActionItem,
|
|
25
|
+
TableItem,
|
|
26
|
+
} from "@/lib/types";
|
|
27
|
+
|
|
28
|
+
interface ModuleCoverage {
|
|
29
|
+
totalTests: number;
|
|
30
|
+
testedItems: number;
|
|
31
|
+
totalItems: number;
|
|
32
|
+
averageCoverage: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface FeatureMapAppDocumentProps {
|
|
36
|
+
data: FeatureMapData;
|
|
37
|
+
moduleCoverages: Record<string, ModuleCoverage>;
|
|
38
|
+
appId: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* モジュールセクション
|
|
43
|
+
*/
|
|
44
|
+
function ModuleSection({
|
|
45
|
+
moduleName,
|
|
46
|
+
group,
|
|
47
|
+
coverage,
|
|
48
|
+
appId,
|
|
49
|
+
}: {
|
|
50
|
+
moduleName: string;
|
|
51
|
+
group: FeatureGroup;
|
|
52
|
+
coverage?: ModuleCoverage;
|
|
53
|
+
appId: string;
|
|
54
|
+
}) {
|
|
55
|
+
const screenCount = group.screens?.length || 0;
|
|
56
|
+
const componentCount = group.components?.length || 0;
|
|
57
|
+
const actionCount = group.actions?.length || 0;
|
|
58
|
+
const tableCount = group.tables?.length || 0;
|
|
59
|
+
const totalCount = screenCount + componentCount + actionCount + tableCount;
|
|
60
|
+
|
|
61
|
+
if (totalCount === 0) return null;
|
|
62
|
+
|
|
63
|
+
// Screen columns
|
|
64
|
+
const screenColumns: DocTableColumn<ScreenItem>[] = [
|
|
65
|
+
{
|
|
66
|
+
key: "name",
|
|
67
|
+
header: "Name",
|
|
68
|
+
width: "200px",
|
|
69
|
+
render: (_, row) => (
|
|
70
|
+
<Link
|
|
71
|
+
href={`/details/screens/${moduleName}/${row.name}`}
|
|
72
|
+
className="font-medium text-primary hover:underline"
|
|
73
|
+
>
|
|
74
|
+
{row.name}
|
|
75
|
+
</Link>
|
|
76
|
+
),
|
|
77
|
+
},
|
|
78
|
+
{ key: "path", header: "Path" },
|
|
79
|
+
{
|
|
80
|
+
key: "route",
|
|
81
|
+
header: "Route",
|
|
82
|
+
width: "150px",
|
|
83
|
+
render: (_, row) => row.route || "-",
|
|
84
|
+
},
|
|
85
|
+
];
|
|
86
|
+
|
|
87
|
+
// Component columns
|
|
88
|
+
const componentColumns: DocTableColumn<ComponentItem>[] = [
|
|
89
|
+
{
|
|
90
|
+
key: "name",
|
|
91
|
+
header: "Name",
|
|
92
|
+
width: "200px",
|
|
93
|
+
render: (_, row) => (
|
|
94
|
+
<Link
|
|
95
|
+
href={`/details/components/${moduleName}/${row.name}`}
|
|
96
|
+
className="font-medium text-primary hover:underline"
|
|
97
|
+
>
|
|
98
|
+
{row.name}
|
|
99
|
+
</Link>
|
|
100
|
+
),
|
|
101
|
+
},
|
|
102
|
+
{ key: "path", header: "Path" },
|
|
103
|
+
{
|
|
104
|
+
key: "props",
|
|
105
|
+
header: "Props",
|
|
106
|
+
width: "80px",
|
|
107
|
+
align: "center",
|
|
108
|
+
render: (_, row) => row.props?.length || "-",
|
|
109
|
+
},
|
|
110
|
+
];
|
|
111
|
+
|
|
112
|
+
// Action columns
|
|
113
|
+
const actionColumns: DocTableColumn<ActionItem>[] = [
|
|
114
|
+
{
|
|
115
|
+
key: "name",
|
|
116
|
+
header: "Name",
|
|
117
|
+
width: "200px",
|
|
118
|
+
render: (_, row) => (
|
|
119
|
+
<Link
|
|
120
|
+
href={`/details/actions/${moduleName}/${row.name}`}
|
|
121
|
+
className="font-medium text-primary hover:underline font-mono text-sm"
|
|
122
|
+
>
|
|
123
|
+
{row.name}
|
|
124
|
+
</Link>
|
|
125
|
+
),
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
key: "dbTables",
|
|
129
|
+
header: "DB Tables",
|
|
130
|
+
render: (_, row) => {
|
|
131
|
+
const tables = row.dbTables?.join(", ");
|
|
132
|
+
return tables || "-";
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
key: "params",
|
|
137
|
+
header: "Params",
|
|
138
|
+
width: "80px",
|
|
139
|
+
align: "center",
|
|
140
|
+
render: (_, row) => row.params?.length || "-",
|
|
141
|
+
},
|
|
142
|
+
];
|
|
143
|
+
|
|
144
|
+
// Table columns
|
|
145
|
+
const tableColumns: DocTableColumn<TableItem>[] = [
|
|
146
|
+
{
|
|
147
|
+
key: "name",
|
|
148
|
+
header: "Name",
|
|
149
|
+
width: "200px",
|
|
150
|
+
render: (_, row) => (
|
|
151
|
+
<Link
|
|
152
|
+
href={`/db-schema/database/${row.name}`}
|
|
153
|
+
className="font-medium text-primary hover:underline font-mono text-sm"
|
|
154
|
+
>
|
|
155
|
+
{row.name}
|
|
156
|
+
</Link>
|
|
157
|
+
),
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
key: "columns",
|
|
161
|
+
header: "Columns",
|
|
162
|
+
width: "80px",
|
|
163
|
+
align: "center",
|
|
164
|
+
render: (_, row) => row.columns?.length || "-",
|
|
165
|
+
},
|
|
166
|
+
];
|
|
167
|
+
|
|
168
|
+
return (
|
|
169
|
+
<DocSection
|
|
170
|
+
title={moduleName}
|
|
171
|
+
badge={
|
|
172
|
+
<div className="flex items-center gap-2">
|
|
173
|
+
<Badge variant="outline">{totalCount} items</Badge>
|
|
174
|
+
{coverage && coverage.totalTests > 0 && (
|
|
175
|
+
<Badge variant="secondary" className="gap-1">
|
|
176
|
+
<FlaskConical className="h-3 w-3" />
|
|
177
|
+
{coverage.totalTests}
|
|
178
|
+
</Badge>
|
|
179
|
+
)}
|
|
180
|
+
</div>
|
|
181
|
+
}
|
|
182
|
+
preview={`${screenCount} screens, ${componentCount} components, ${actionCount} actions`}
|
|
183
|
+
>
|
|
184
|
+
<div className="space-y-6">
|
|
185
|
+
{/* Screens */}
|
|
186
|
+
{screenCount > 0 && (
|
|
187
|
+
<div>
|
|
188
|
+
<h4 className="flex items-center gap-2 text-sm font-medium mb-2">
|
|
189
|
+
<Monitor className="h-4 w-4 text-blue-500" />
|
|
190
|
+
Screens ({screenCount})
|
|
191
|
+
</h4>
|
|
192
|
+
<DocTable columns={screenColumns} data={group.screens || []} />
|
|
193
|
+
</div>
|
|
194
|
+
)}
|
|
195
|
+
|
|
196
|
+
{/* Components */}
|
|
197
|
+
{componentCount > 0 && (
|
|
198
|
+
<div>
|
|
199
|
+
<h4 className="flex items-center gap-2 text-sm font-medium mb-2">
|
|
200
|
+
<Component className="h-4 w-4 text-green-500" />
|
|
201
|
+
Components ({componentCount})
|
|
202
|
+
</h4>
|
|
203
|
+
<DocTable columns={componentColumns} data={group.components || []} />
|
|
204
|
+
</div>
|
|
205
|
+
)}
|
|
206
|
+
|
|
207
|
+
{/* Actions */}
|
|
208
|
+
{actionCount > 0 && (
|
|
209
|
+
<div>
|
|
210
|
+
<h4 className="flex items-center gap-2 text-sm font-medium mb-2">
|
|
211
|
+
<Zap className="h-4 w-4 text-yellow-500" />
|
|
212
|
+
Server Actions ({actionCount})
|
|
213
|
+
</h4>
|
|
214
|
+
<DocTable columns={actionColumns} data={group.actions || []} />
|
|
215
|
+
</div>
|
|
216
|
+
)}
|
|
217
|
+
|
|
218
|
+
{/* Tables */}
|
|
219
|
+
{tableCount > 0 && (
|
|
220
|
+
<div>
|
|
221
|
+
<h4 className="flex items-center gap-2 text-sm font-medium mb-2">
|
|
222
|
+
<Database className="h-4 w-4 text-purple-500" />
|
|
223
|
+
Tables ({tableCount})
|
|
224
|
+
</h4>
|
|
225
|
+
<DocTable columns={tableColumns} data={group.tables || []} />
|
|
226
|
+
</div>
|
|
227
|
+
)}
|
|
228
|
+
</div>
|
|
229
|
+
</DocSection>
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export function FeatureMapAppDocument({
|
|
234
|
+
data,
|
|
235
|
+
moduleCoverages,
|
|
236
|
+
appId,
|
|
237
|
+
}: FeatureMapAppDocumentProps) {
|
|
238
|
+
const moduleNames = Object.keys(data.features).sort();
|
|
239
|
+
|
|
240
|
+
// Calculate totals
|
|
241
|
+
let totalScreens = 0;
|
|
242
|
+
let totalComponents = 0;
|
|
243
|
+
let totalActions = 0;
|
|
244
|
+
let totalTables = 0;
|
|
245
|
+
|
|
246
|
+
for (const group of Object.values(data.features)) {
|
|
247
|
+
totalScreens += group.screens?.length || 0;
|
|
248
|
+
totalComponents += group.components?.length || 0;
|
|
249
|
+
totalActions += group.actions?.length || 0;
|
|
250
|
+
totalTables += group.tables?.length || 0;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
const totalItems = totalScreens + totalComponents + totalActions + totalTables;
|
|
254
|
+
|
|
255
|
+
return (
|
|
256
|
+
<div className="space-y-6">
|
|
257
|
+
{/* Summary */}
|
|
258
|
+
<div className="flex flex-wrap gap-4 text-sm">
|
|
259
|
+
<span className="flex items-center gap-1">
|
|
260
|
+
<Monitor className="h-4 w-4 text-blue-500" /> {totalScreens} Screens
|
|
261
|
+
</span>
|
|
262
|
+
<span className="flex items-center gap-1">
|
|
263
|
+
<Component className="h-4 w-4 text-green-500" /> {totalComponents} Components
|
|
264
|
+
</span>
|
|
265
|
+
<span className="flex items-center gap-1">
|
|
266
|
+
<Zap className="h-4 w-4 text-yellow-500" /> {totalActions} Actions
|
|
267
|
+
</span>
|
|
268
|
+
<span className="flex items-center gap-1">
|
|
269
|
+
<Database className="h-4 w-4 text-purple-500" /> {totalTables} Tables
|
|
270
|
+
</span>
|
|
271
|
+
<span className="text-muted-foreground">
|
|
272
|
+
({moduleNames.length} modules, {totalItems} total items)
|
|
273
|
+
</span>
|
|
274
|
+
</div>
|
|
275
|
+
|
|
276
|
+
{/* Modules */}
|
|
277
|
+
{moduleNames.map((moduleName) => (
|
|
278
|
+
<ModuleSection
|
|
279
|
+
key={moduleName}
|
|
280
|
+
moduleName={moduleName}
|
|
281
|
+
group={data.features[moduleName]}
|
|
282
|
+
coverage={moduleCoverages[moduleName]}
|
|
283
|
+
appId={appId}
|
|
284
|
+
/>
|
|
285
|
+
))}
|
|
286
|
+
|
|
287
|
+
{/* Uncategorized */}
|
|
288
|
+
{data.uncategorized && (
|
|
289
|
+
<ModuleSection
|
|
290
|
+
moduleName="Uncategorized"
|
|
291
|
+
group={data.uncategorized}
|
|
292
|
+
coverage={moduleCoverages["Uncategorized"]}
|
|
293
|
+
appId={appId}
|
|
294
|
+
/>
|
|
295
|
+
)}
|
|
296
|
+
</div>
|
|
297
|
+
);
|
|
298
|
+
}
|