Skip to content
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

Add sortBy saleAmount #1869

Merged
merged 10 commits into from
Jan 8, 2025
Merged

Add sortBy saleAmount #1869

merged 10 commits into from
Jan 8, 2025

Conversation

steven-tey
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Jan 8, 2025

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

Name Status Preview Updated (UTC)
dub ✅ Ready (Inspect) Visit Preview Jan 8, 2025 8:19pm

- Changed `sort` to `sortBy` in LinksDisplayContext and related components for consistency.
- Updated `getLinksForWorkspace` to support legacy `sort` parameter while transitioning to `sortBy`.
- Refined `getLinksQuerySchemaExtended` to streamline sorting logic and removed unnecessary transformation.
- Added new sorting option for "Sales Amount" in the LinksDisplayProvider.

This commit enhances the clarity and maintainability of the sorting functionality across the application.
- Updated `getLinks` operation to utilize `getLinksQuerySchemaBase` instead of `getLinksQuerySchema`.
- Exported `getLinksQuerySchemaBase` from the links schema file for improved accessibility.

This change enhances the consistency and clarity of the query parameters used in the `getLinks` operation.
- Introduced `sortOrder` and updated `order` handling in `getEvents` to improve sorting logic.
- Updated analytics schemas to replace `order` with `sortOrder` for clarity and consistency.
- Modified `EventsTable` component to utilize new `sortOrder` and `sortBy` parameters from search queries.
- Deprecated the `order` parameter in favor of `sortOrder` to streamline event sorting functionality.

These changes enhance the maintainability and clarity of event sorting across the application.
@steven-tey steven-tey requested a review from devkiran January 8, 2025 20:09
@steven-tey steven-tey merged commit 101a5ad into main Jan 8, 2025
6 checks passed
@steven-tey steven-tey deleted the sortby branch January 8, 2025 20:30
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.

2 participants