-
Notifications
You must be signed in to change notification settings - Fork 2k
feat: resource view re-styling with new components #9864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
alejandrobailo
merged 58 commits into
master
from
feat/PROWLER-740-resource-view-restyling
Jan 28, 2026
Merged
Changes from 15 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
4f5fc36
feat(api): add provider_id filters to ResourceFilter
alejandrobailo 282506b
feat(ui): add client-side pagination and search to DataTable
alejandrobailo d596a6f
feat(ui): restyle resources view with improved table and filters
alejandrobailo 8065f69
feat(ui): add filter transition for smoother table updates
alejandrobailo d4e1818
refactor(ui): increase search debounce to 500ms
alejandrobailo b06604a
fix(ui): improve sidebar menu item active state detection
alejandrobailo 5133102
fix(ui): enable nested modals inside resource detail drawer
alejandrobailo c4305cd
feat(api): add provider_id filters to LatestResourceFilter
alejandrobailo c478de5
test(api): add tests for LatestResourceFilter provider_id filters
alejandrobailo 4266a22
refactor(ui): migrate CodeSnippet from HeroUI to shadcn pattern
alejandrobailo 934c42e
refactor(ui): migrate resource-detail from HeroUI to shadcn
alejandrobailo d4afbc2
fix(ui): change default pagination page size to 10
alejandrobailo 9fb3f12
refactor(ui): add paramPrefix support to DataTable components
alejandrobailo f52b4c0
refactor(ui): migrate resource-detail findings to server-side pagination
alejandrobailo 9a8a4e4
style(ui): format menu-item and use-url-filters
alejandrobailo a2b2124
style(ui): remove gap from time range selector buttons
alejandrobailo 9a9fef6
chore: CHANGELOG updated
alejandrobailo 2b6768b
fix(ui): resolve linting and formatting issues
alejandrobailo 7d3d528
chore: update CHANGELOG entries
alejandrobailo 9bdf800
docs(api): add provider_id filters to resources endpoints
alejandrobailo 48aa960
Merge branch 'master' into feat/PROWLER-740-resource-view-restyling
alejandrobailo 31eb9a5
chore(api): mark v1.19.0 as unreleased
alejandrobailo da4a725
chore(ui): bump CHANGELOG to v1.18.0
alejandrobailo 451278b
fix(api): restore OpenAPI tags section
alejandrobailo db7abd1
fix(api): use existing uuid4 import in test
alejandrobailo 078e0ae
refactor(ui): remove unused provider props from resources
alejandrobailo d8498bf
feat(ui): add controlled mode to DataTable components
alejandrobailo 3fa93e4
fix(ui): improve resource detail drawer behavior
alejandrobailo d44fa07
feat(ui): add initial loading spinner to findings tab in resource drawer
alejandrobailo 713eef3
refactor(ui): migrate dropdown and modal to shadcn components
alejandrobailo 75973d4
feat(ui): add shadcn Modal and ActionDropdown components
alejandrobailo 7affdb5
refactor(ui): migrate CustomAlertModal to shadcn Modal
alejandrobailo 8b75bb9
refactor(ui): migrate findings row actions to ActionDropdown
alejandrobailo 238e831
feat(ui): add delta/muted column to resource findings table
alejandrobailo 7154de1
Merge branch 'master' into feat/PROWLER-740-resource-view-restyling
alejandrobailo 8792a60
fix: build conflicts
alejandrobailo e991a9f
fix: useActionState remplaced by controlled client state to render th…
alejandrobailo 726c0b2
refactor(ui): extract resource findings columns to separate file
alejandrobailo bf52a76
fix(ui): correct debounce behavior in controlled search mode
alejandrobailo b46b168
refactor(ui): make DataTableRowActions generic for type safety
alejandrobailo 6eac8bd
Merge branch 'master' into feat/PROWLER-740-resource-view-restyling
alejandrobailo bc1f12f
feat(ui): add group column and simplify resource table labels
alejandrobailo 7787214
Merge branch 'master' into feat/PROWLER-740-resource-view-restyling
alejandrobailo 7f95f59
Merge branch 'master' into feat/PROWLER-740-resource-view-restyling
alejandrobailo 3112abb
fix(api): restore Added section header in changelog
alejandrobailo 99e9675
fix(ui): prevent provider logo from shrinking on resize
alejandrobailo 934ae6d
refactor(ui): scale CodeSnippet with hideCode, icon, and formatter props
alejandrobailo f35ddde
refactor(ui): migrate resources table from HeroUI to shadcn
alejandrobailo 7d57125
refactor(ui): migrate EntityInfo from HeroUI to shadcn
alejandrobailo f906d9b
refactor(ui): replace SnippetChip with CodeSnippet in findings
alejandrobailo f0f72b5
style(ui): format JSX expressions for readability
alejandrobailo 2443698
style(ui): adjust entityId container padding
alejandrobailo 5f6a604
refactor(ui): redesign resources table skeleton
alejandrobailo 25756d0
fix(ui): prevent horizontal scroll on long resource UIDs
alejandrobailo ceff264
fix(api): remove unused variable assignments in tests
alejandrobailo 5e15a34
Merge remote-tracking branch 'origin/master' into feat/PROWLER-740-re…
alejandrobailo ab506a6
fix(auth): preserve callbackUrl during authentication redirect
alejandrobailo 2dbcdc3
test(auth): use goto instead of gotoFresh for callbackUrl test
alejandrobailo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| "use client"; | ||
|
|
||
| import { usePathname, useRouter, useSearchParams } from "next/navigation"; | ||
|
|
||
| import { | ||
| Sheet, | ||
| SheetContent, | ||
| SheetDescription, | ||
| SheetHeader, | ||
| SheetTitle, | ||
| } from "@/components/ui/sheet"; | ||
| import { ResourceProps } from "@/types"; | ||
|
|
||
| import { ResourceDetail } from "./table/resource-detail"; | ||
|
|
||
| interface ResourceDetailsSheetProps { | ||
| resource: ResourceProps; | ||
| } | ||
|
|
||
| export const ResourceDetailsSheet = ({ | ||
| resource, | ||
| }: ResourceDetailsSheetProps) => { | ||
| const router = useRouter(); | ||
| const pathname = usePathname(); | ||
| const searchParams = useSearchParams(); | ||
|
|
||
| const handleOpenChange = (open: boolean) => { | ||
| if (!open) { | ||
| const params = new URLSearchParams(searchParams.toString()); | ||
| params.delete("resourceId"); | ||
| router.push(`${pathname}?${params.toString()}`, { scroll: false }); | ||
| } | ||
| }; | ||
|
|
||
| return ( | ||
| <Sheet open={true} onOpenChange={handleOpenChange}> | ||
| <SheetContent className="my-4 max-h-[calc(100vh-2rem)] max-w-[95vw] overflow-y-auto pt-10 md:my-8 md:max-h-[calc(100vh-4rem)] md:max-w-[55vw]"> | ||
| <SheetHeader> | ||
| <SheetTitle className="sr-only">Resource Details</SheetTitle> | ||
| <SheetDescription className="sr-only"> | ||
| View the resource details | ||
| </SheetDescription> | ||
| </SheetHeader> | ||
| <ResourceDetail resourceDetails={resource} /> | ||
| </SheetContent> | ||
| </Sheet> | ||
| ); | ||
| }; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.