Skip to content

feat: Crawl History & Snapshot Comparison View#59

Merged
saurabhsharma2u merged 2 commits into
mainfrom
feat/crawl-history-view-4350587724974819289
Feb 27, 2026
Merged

feat: Crawl History & Snapshot Comparison View#59
saurabhsharma2u merged 2 commits into
mainfrom
feat/crawl-history-view-4350587724974819289

Conversation

@saurabhsharma2u

Copy link
Copy Markdown
Contributor

This PR introduces a comprehensive Crawl History feature to the Crawlith dashboard.
It allows users to:

  1. View a Timeline: See all past crawls with key metrics (Pages, Health, Issues).
  2. Analyze Trends: Visualize how Total Pages, Health Score, and Broken Links evolve over time with interactive charts.
  3. Compare Snapshots: Select any two snapshots to see a detailed diff:
    • Pages Added / Removed
    • Health Score Delta
    • New vs. Resolved Critical Issues (e.g., Broken Links)
  4. Manage History: Delete old snapshots with a confirmation.

Technical Changes:

  • Core: Enhanced SnapshotRepository.deleteSnapshot to cascade delete pages that are no longer referenced by any snapshot, preventing database bloat.
  • Server: Added API endpoints:
    • 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.
  • Web:
    • New HistoryView container.
    • TrendChart component (lightweight SVG implementation).
    • SnapshotTable with Compare/Delete actions.
    • ComparisonView for detailed diff analysis.
    • Integrated into Sidebar and App routing state.

PR created automatically by Jules for task 4350587724974819289 started by @saurabhsharma2u

- 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.
@google-labs-jules

Copy link
Copy Markdown

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

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.
@saurabhsharma2u
saurabhsharma2u marked this pull request as ready for review February 27, 2026 06:35
@saurabhsharma2u
saurabhsharma2u merged commit 42bd6a2 into main Feb 27, 2026
6 checks passed
@saurabhsharma2u
saurabhsharma2u deleted the feat/crawl-history-view-4350587724974819289 branch February 27, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant