Skip to content

Fix: Show multiple reports for different URLs in reports list#62

Merged
studioprisoner merged 1 commit into
mainfrom
fix/multiple-reports-urls
Aug 2, 2025
Merged

Fix: Show multiple reports for different URLs in reports list#62
studioprisoner merged 1 commit into
mainfrom
fix/multiple-reports-urls

Conversation

@studioprisoner

Copy link
Copy Markdown
Owner

Summary

  • Fixes issue where only one report was shown despite multiple scans of different URLs
  • Changes website creation logic to create separate entries for each unique URL instead of grouping by domain
  • Users can now see separate reports for different pages (e.g., homepage, about, contact, products)

Problem Solved

Previously, when users scanned multiple URLs from the same domain (e.g., https://example.com/, https://example.com/about, https://example.com/contact), the system would:

  • Create a single website entry for the domain (https://example.com)
  • Only show the latest analysis in the reports list
  • Users could only see one report per domain

Solution Implemented

Now the system:

  • Creates separate website entries for each unique URL scanned
  • Each URL gets its own analysis and appears as a separate report
  • Reports list shows all scanned URLs individually
  • Domain limits still properly count unique domains (not URLs)

Technical Changes

  • Website Creation Logic: Modified createOrGet function in websites.ts to store specific URLs instead of parent domains
  • Domain Counting: Updated domain limit logic to count unique domains properly while allowing multiple URLs per domain
  • Reports Pagination: Optimized to apply pagination after grouping for accurate results

Test Plan

  • Scan multiple URLs from the same domain
  • Verify each URL appears as separate report in /dashboard/reports
  • Confirm domain limits still work correctly (count unique domains, not URLs)
  • Test report archiving and restoration functionality
  • Verify existing single-domain scans continue to work

🤖 Generated with Claude Code

- Change website creation logic to create separate entries for each unique URL
- Previously all URLs from same domain mapped to single website entry
- Now each scanned URL (e.g., /about, /contact, /products) creates separate report
- Update domain limit counting to count unique domains properly
- Optimize reports pagination after grouping for accurate results
- Fix report listing to display all scanned URLs individually

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 2, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
convert-iq ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 2, 2025 3:02am

@studioprisoner studioprisoner merged commit 9fe79be into main Aug 2, 2025
5 of 6 checks passed
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