feat: Crawl History & Snapshot Comparison View#59
Conversation
- Added `HistoryView` to visualize crawl history. - Implemented `TrendChart` for tracking metrics over time. - Created `ComparisonView` to diff two snapshots (pages added/removed, new/resolved issues). - Updated `SnapshotRepository` to clean up orphaned pages on snapshot deletion. - Added backend API endpoints for history, trends, and comparison. - Integrated history view into the main dashboard navigation.
|
👋 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 server test mocks to include `delete` method for express router. - Removed unused imports in History components. - Verified tests pass locally.
This PR introduces a comprehensive Crawl History feature to the Crawlith dashboard.
It allows users to:
Technical Changes:
SnapshotRepository.deleteSnapshotto cascade delete pages that are no longer referenced by any snapshot, preventing database bloat.GET /api/history: List of snapshots.GET /api/history/trends: Time-series data for charts.GET /api/history/compare: Logic to compute diffs between two snapshots using SQL (identifying new/resolved issues).DELETE /api/history/:id: endpoint to remove snapshots.HistoryViewcontainer.TrendChartcomponent (lightweight SVG implementation).SnapshotTablewith Compare/Delete actions.ComparisonViewfor detailed diff analysis.SidebarandApprouting state.PR created automatically by Jules for task 4350587724974819289 started by @saurabhsharma2u