Skip to content

Conversation

@alejandrobailo
Copy link
Contributor

@alejandrobailo alejandrobailo commented Jan 22, 2026

Context

Restyle the resources view with an improved resource detail drawer, migrating from HeroUI to shadcn/ui components.

Description

  • Restyle resources page with new table design, filters UI, and resource detail drawer
  • Migrate resource-detail and CodeSnippet components from HeroUI to shadcn/ui
  • Add server-side pagination with paramPrefix support for nested tables in drawers
  • Add provider_id filters to ResourceFilter and LatestResourceFilter in API
  • Add filter transition context for smoother table loading states

Steps to review

  1. Navigate to /resources and verify the new table styling and filters work correctly
  2. Click on a resource row to open the detail drawer - verify the Overview and Findings tabs
  3. In the Findings tab, test pagination and search (should use server-side pagination with findingsPage URL params)
  4. Click on a finding in the drawer to verify navigation to finding detail with loading state
  5. Press back in breadcrumbs and verify the active tab is preserved
  6. Verify the CodeSnippet component renders correctly in finding details
  7. Review ui/components/ui/table/data-table.tsx for paramPrefix prop implementation
  8. Review api/src/backend/api/filters.py for provider_id filter additions

Checklist

Community Checklist
  • This feature/issue is listed in here or roadmap.prowler.com
  • Is it assigned to me, if not, request it via the issue/feature in here or Prowler Community Slack

SDK/CLI

  • Are there new checks included in this PR? Yes / No
    • If so, do we need to update permissions for the provider? Please review this carefully.

UI

  • All issue/task requirements work as expected on the UI
  • Screenshots/Video of the functionality flow (if applicable) - Mobile (X < 640px)
  • Screenshots/Video of the functionality flow (if applicable) - Table (640px > X < 1024px)
  • Screenshots/Video of the functionality flow (if applicable) - Desktop (X > 1024px)
  • Ensure new entries are added to CHANGELOG.md, if applicable.

API

  • All issue/task requirements work as expected on the API
  • Endpoint response output (if applicable)
  • EXPLAIN ANALYZE output for new/modified queries or indexes (if applicable)
  • Performance test results (if applicable)
  • Any other relevant evidence of the implementation (if applicable)
  • Verify if API specs need to be regenerated.
  • Check if version updates are required (e.g., specs, Poetry, etc.).
  • Ensure new entries are added to CHANGELOG.md, if applicable.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

alejandrobailo and others added 16 commits January 21, 2026 18:45
- Add paramPrefix prop to DataTableSearch, DataTablePagination, DataTable
- When prefix is used, URL params become prefixed (e.g., findingsPage)
- Remove client-side pagination code (clientSidePagination, clientSearchFilter)
- Delete data-table-client-pagination.tsx and data-table-client-search.tsx

This enables multiple paginated tables on the same page with isolated
URL state (e.g., drawer table won't conflict with main page table).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Replace client-side pagination with getLatestFindings() server action
- Use paramPrefix="findings" for isolated URL params (findingsPage, etc.)
- Add findingDetailLoading state with loader when navigating to finding
- Use controlled Tabs to preserve active tab when returning from finding
- Filter by resource_uid and FAIL status on server side

The drawer's findings table now uses proper server-side pagination
with search, maintaining the same UX as main /resources and /findings tables.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Auto-formatted line breaks for better readability.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

Conflict Markers Resolved

All conflict markers have been successfully resolved in this pull request.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

✅ All necessary CHANGELOG.md files have been updated.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

🔒 Container Security Scan

Image: prowler-api:f09fb0d
Last scan: 2026-01-23 17:40:51 UTC

📊 Vulnerability Summary

Severity Count
🔴 Critical 11
Total 11

10 package(s) affected

⚠️ Action Required

Critical severity vulnerabilities detected. These should be addressed before merging:

  • Review the detailed scan results
  • Update affected packages to patched versions
  • Consider using a different base image if updates are unavailable

📋 Resources:

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.06%. Comparing base (6c6a6c5) to head (e991a9f).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9864      +/-   ##
==========================================
+ Coverage   86.60%   92.06%   +5.46%     
==========================================
  Files         222      181      -41     
  Lines        5645    25119   +19474     
==========================================
+ Hits         4889    23127   +18238     
- Misses        756     1992    +1236     
Flag Coverage Δ
api 92.06% <100.00%> (?)
prowler-py3.10-azure ?
prowler-py3.11-azure ?
prowler-py3.12-azure ?
prowler-py3.9-azure ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
prowler ∅ <ø> (∅)
api 92.06% <100.00%> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

🔒 Container Security Scan

Image: prowler-ui:f09fb0d
Last scan: 2026-01-23 17:35:54 UTC

✅ No Vulnerabilities Detected

The container image passed all security checks. No known CVEs were found.

📋 Resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants