-
Notifications
You must be signed in to change notification settings - Fork 85
Filtering and sorting for discovered assets in Action Center #6401
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@@ -5,8 +5,7 @@ import { | |||
Page_ConsentReportingSchema_, | |||
PreferencesSavedExtended, | |||
} from "~/types/api"; | |||
import { DateRange } from "~/types/common/DateRange"; | |||
import { PaginationQueryParams } from "~/types/common/PaginationQueryParams"; | |||
import { DateRangeParams, PaginationQueryParams } from "~/types/query-params"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up consolidating all of the various "Params" files in to one query-params.d.ts
file. Many of these updates like this are just updating that and you can just gloss over them.
@@ -1,4 +1,4 @@ | |||
import { formatDistance } from "date-fns"; | |||
import { formatDistanceStrict } from "date-fns"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this removes the "about..." prefix, etc for a cleaner column.
@@ -105,14 +106,12 @@ export const MonitorResult = ({ | |||
</Col> | |||
<Col span={3} className="flex items-center justify-end"> | |||
{!!lastMonitoredDistance && ( | |||
<Tooltip title={formattedLastMonitored}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redundant tooltip clean up here
React.Children.count(props.children) === 1 && | ||
React.isValidElement(props.children) && | ||
typeof props.children.type === "object"; | ||
const WrappedTag = React.forwardRef<HTMLElement, CustomTagProps>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is the only real change here. Addressing some console errors that complained about lack of forwardRef on these components.
CustomTypographyTextProps) => ( | ||
<Typography.Link className={getTextSizeClassName(size)} {...props} /> | ||
); | ||
const CustomLink = React.forwardRef< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, just adding the forwardRef
1abc68f
to
5bc6eb9
Compare
e6de0a5
to
b398184
Compare
fides
|
Project |
fides
|
Branch Review |
main
|
Run status |
|
Run duration | 00m 55s |
Commit |
|
Committer | Jason Gill |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
5
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
Closes ENG-237
Description Of Changes
Added filtering capabilities to the discovered assets table in the action center, allowing users to filter by resource type, data uses, locations, and consent status. Improved query parameter handling with new utility functions and enhanced API endpoints to support the filtering functionality. Also improved time display formatting and fixed UI interaction issues.
Code Changes
buildArrayQueryParams
utility function to handle array-based URL query parametersconvertToAntFilters
utility function to transform arrays into Ant Design filter objectsgetWebsiteMonitorResourceFilters
API endpoint to fetch available filter optionsgetDiscoveredAssets
API query to support filtering by resource type, data uses, locations, and consent statusDiscoveredAssetsColumnKeys
enumMonitorResult
component usingformatDistanceStrict
for more precise formattingMenuHeaderCell
componentany
to specific types (string
,Schema
)Steps to Confirm
Pre-Merge Checklist
CHANGELOG.md
updatedmain
downgrade()
migration is correct and works