Skip to content

[Invoices] Add sorting ability #10651

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

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Conversation

manuthecoder
Copy link
Contributor

This PR introduces invoice sorting functionality for users, with plans to extend sorting to other parts of the platform soon.

image

Work in progress

@manuthecoder manuthecoder requested review from a team as code owners June 17, 2025 18:28
@manuthecoder manuthecoder marked this pull request as draft June 17, 2025 18:29
@manuthecoder manuthecoder requested a review from Copilot June 17, 2025 21:27
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds invoice sorting functionality to allow users to sort invoices by status, date, sponsor, and amount.

  • Updated the invoices index view to render sortable table headers.
  • Introduced a new partial (_sort_table_header.html.erb) for reusable sort-header functionality.
  • Extended the invoices controller to support dynamic sorting parameters and updated SCSS for sorting button styling.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
app/views/invoices/index.html.erb Replaced static headers with sortable header partial rendering.
app/views/events/_sort_table_header.html.erb Added a partial to generate links with sorting logic.
app/controllers/invoices_controller.rb Integrated parameter validation and dynamic sorting into the invoices query.
app/assets/stylesheets/components/_buttons.scss Added new styles for sort buttons, including handling of right-aligned buttons.

@manuthecoder manuthecoder marked this pull request as ready for review June 17, 2025 21:28
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