Replace dummy dashboard data with real SQLite data#57
Conversation
- Refactored server to use `@crawlith/core` repositories and DB connection. - Implemented `/api/*` endpoints for context, overview, issues, and metrics. - Updated CLI `ui` command to resolve site and snapshot from DB. - Refactored `@crawlith/web` to fetch data from API instead of using static mocks. - Implemented DashboardContext and data fetching hooks in frontend. - Removed dummy data.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Updated `plugins/server/tests/server.test.ts` to correctly mock `@crawlith/core` dependencies using function expressions to support `new` keyword instantiation. - Added dummy context data to mocks to prevent `process.exit(1)` in `startServer`. - Prefixed unused variables with `_` in: - `plugins/web/src/components/Header.tsx` - `plugins/web/src/components/Graphs/LinkDistributionChart.tsx` - `plugins/server/src/index.ts` - `plugins/cli/src/commands/ui.ts` - Verified tests pass locally.
- Created `docs/cli/` directory. - Added Mintlify-formatted MDX documentation for `crawl`, `page`, `ui`, `probe`, `sites`, and `clean` commands. - Documented all user-facing flags with type, default, usage explanation, and SEO impact. - Avoided exposing internal implementation details (e.g., SimHash, internal file paths).
…issues API, and fix link distribution
Replaced all hardcoded/dummy dashboard data with real snapshot-backed data from the Crawlith SQLite database. The dashboard now reflects the actual state of the crawl, including health scores, issue counts, page rank metrics, and depth distribution.
Key Changes:
snapshot_idto prevent data leakage.PR created automatically by Jules for task 110839491162936791 started by @saurabhsharma2u