Add examples, docs, and CLI help/UI improvements#7
Conversation
Add a comprehensive examples catalog, architecture docs, and improved CLI help and example serving. Introduces docs/architecture.md, expands README and AGENTS.md with cross-references and contribution paths, and adds many example folders (basic, advanced, csv, data-first, diagnostics, relations, rest-client, schema-first, schema-manifest) including example metadata, READMEs, config files (migrated to defineConfig and dbDir), seeds and schema fixtures, and generated schema/types for the schema-manifest example. Update scripts/serve-examples.js to read example.json metadata, render titles, descriptions and tags, and include helper functions for formatting; adjust package.json globs to include example metadata and example src. Add CLI arg helper isHelpRequested and wire help handling into several commands (doctor, generate, schema, serve, types) plus small related changes. Overall polish for discoverability, example UX, and developer workflows.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe PR restructures the jsondb examples ecosystem by adding three new complete examples (relations, rest-client, schema-manifest), standardizing all nine example configs to use defineConfig, overhauling example documentation into a consistent format, implementing a CLI help system across subcommands, adding architecture documentation, and enabling metadata-driven example discovery in the UI. ChangesDocumentation, Examples, and CLI Enhancements
🎯 3 (Moderate) | ⏱️ ~25 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add a comprehensive examples catalog, architecture docs, and improved CLI help and example serving. Introduces docs/architecture.md, expands README and AGENTS.md with cross-references and contribution paths, and adds many example folders (basic, advanced, csv, data-first, diagnostics, relations, rest-client, schema-first, schema-manifest) including example metadata, READMEs, config files (migrated to defineConfig and dbDir), seeds and schema fixtures, and generated schema/types for the schema-manifest example. Update scripts/serve-examples.js to read example.json metadata, render titles, descriptions and tags, and include helper functions for formatting; adjust package.json globs to include example metadata and example src. Add CLI arg helper isHelpRequested and wire help handling into several commands (doctor, generate, schema, serve, types) plus small related changes. Overall polish for discoverability, example UX, and developer workflows.
Summary by CodeRabbit
New Features
--helpsupport across CLI subcommands for clearer usage guidance.Documentation
AGENTS.mdanddocs/architecture.md.