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

3732 - Extract Donations (All Sources) from Dashboard #3795

Merged

Conversation

ChaelCodes
Copy link
Contributor

@ChaelCodes ChaelCodes commented Jul 30, 2023

Resolves #3732

Description

We want to extract the "Donations (All Sources)" card from the dashboard and move it to a Donations Summary page.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Go to /reports/donations_summary
  • See all info that was previously available in the dashboard

Tested manually, and tested auth using request specs, and tested using system specs.

Screenshots

image

@scooter-dangle scooter-dangle added the Ruby for Good 2023 DC Created for Ruby for Good 2023 DC label Jul 30, 2023
@ChaelCodes ChaelCodes changed the base branch from main to dashboard July 30, 2023 15:22
ChaelCodes and others added 3 commits August 3, 2023 18:23
Create new route/controller for Reports::DonationsSummary that presents
all information that was previously available on the Dashboard under
Reporting & Auditing instead.
Reporting & Auditing was not expanding for most of the navigation items
in the list. In addition, the currently selected report was not
highlighted.

active_class and menu_open? now check if the listed path is in the
controller_path instead of doing an exact match on controller_path.

In addition, the report nav items have been updated to reference their
own path, so all reports aren't listed as active when one is selected.
@ChaelCodes ChaelCodes marked this pull request as ready for review August 3, 2023 20:37
Comment on lines +42 to +44
travel_to(test_time)
example.run
travel_back
Copy link
Collaborator

Choose a reason for hiding this comment

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

For a minute I got confused because I'm used to TimeCop where travel is different than freeze. But we're not using that in this project! That said, this could be slightly different:

Suggested change
travel_to(test_time)
example.run
travel_back
travel_to(test_time) do
example.run
end

... but also since I had to read the docs to learn how this isn't TimeCop I see that travel_to automatically adds a travel_back, so you could do a before instead of around.

All that said -- the way it's written works and I'd like to get this merged, so I might merge it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just moved the existing spec and simplified it to avoid using a PageObject. I didn't mess with the time travel.

Copy link
Collaborator

@awwaiid awwaiid left a comment

Choose a reason for hiding this comment

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

Great, thank you!!

@awwaiid awwaiid merged commit d4e6ec2 into rubyforgood:dashboard Aug 5, 2023
@awwaiid
Copy link
Collaborator

awwaiid commented Aug 5, 2023

Ah ... I didn't realize that the tests hadn't run on this. I'll fix them up in another branch I'm doing.

@ChaelCodes
Copy link
Contributor Author

Ah ... I didn't realize that the tests hadn't run on this. I'll fix them up in another branch I'm doing.

Sorry about that. I'm too used to CI too. We can do a revert PR, and I can fix the specs up later this weekend.

I think it's the main branch vs dashboard branch again.

@awwaiid
Copy link
Collaborator

awwaiid commented Aug 5, 2023

Naw is ok -- I'm going backwards on the nav changes, but otherwise I think it is mostly removing the dashboard specs. I'll let you know if it doesn't come out cleanly but so far seems fine

@awwaiid awwaiid added this to the Dashboard Update milestone Nov 12, 2023
Copy link
Contributor

@ChaelCodes: Your PR 3732 - Extract Donations (All Sources) from Dashboard is part of today's Human Essentials production release: 2024.05.26.
Thank you very much for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ruby for Good 2023 DC Created for Ruby for Good 2023 DC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFG 2023] Move Donations (all sources) to Donations | Summary
3 participants