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

PR: 6179, 6180 national party account #6273

Merged
merged 24 commits into from
May 31, 2024

Conversation

rfultz
Copy link
Contributor

@rfultz rfultz commented May 17, 2024

Summary

Building the front-end for the national party accounts' receipts and disbursements datatables

Required reviewers

  • UX
  • Front-end for code
  • Back-end and/or SMEs for data accuracy

Impacted areas of the application

Screenshots

Receipts Disbursements
tab:image tab:image
datatable:image datatable:image

Related PRs

Related PRs against other branches:

None for CMS

Known issues

UX and SMEs: when the right-side details panel is open, it scoots down lower than the table. Should we lose a table column?

How to test

  • Pull the branch
  • With env vars or directly in base.py,
    • make sure FEC_API_URL points to stage
    • add a valid API key
  • npm i
  • npm run build
  • ./manage.py runserver

Default, with feature flags on for localhost:

  • /data/browse-data/?tab=raising should offer an option for 'National party account receipts'
  • /data/browse-data/?tab=spending should offer an option for 'National party account disbursements'
  • Both of those pages should link to their respective tables
  • Check all filters
  • Spot check a wide variety of lines' ➲ details panel

To test feature flag:

⭐️ Next steps ⭐️

Linked tickets will need updates to stay in sync with the Webpack #2708 upgrade

Copy link

codecov bot commented May 21, 2024

Codecov Report

Attention: Patch coverage is 89.18919% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 78.01%. Comparing base (e5df5a7) to head (8624a77).
Report is 2 commits behind head on develop.

Files Patch % Lines
fec/fec/static/js/modules/filters/select-filter.js 33.33% 2 Missing ⚠️
fec/fec/static/js/modules/helpers.js 75.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6273      +/-   ##
===========================================
+ Coverage    78.00%   78.01%   +0.01%     
===========================================
  Files          291      291              
  Lines         9414     9447      +33     
  Branches       681      687       +6     
===========================================
+ Hits          7343     7370      +27     
- Misses        2071     2077       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rfultz rfultz changed the title Feature/6179 6180 national party account PR: 6179, 6180 national party account May 22, 2024
Copy link
Member

@patphongs patphongs left a comment

Choose a reason for hiding this comment

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

A couple of fixes for you @rfultz. There's some data issues in the API with line number data, but that's something that @bmathesonFEC is looking at. Let's target these changes for the release branch instead, so we're not pressured to have this in before the cut today. Nothing here that I paired with both @bmathesonFEC and @JonellaCulmer on this review, so we have the necessary required reviewers.

fec/fec/static/js/modules/columns.js Outdated Show resolved Hide resolved
fec/data/templates/layouts/main.jinja Show resolved Hide resolved
fec/data/constants.py Outdated Show resolved Hide resolved
{% block filters %}
<div class="filters__inner">
{{ typeahead.field('committee_id', 'Spender name or ID') }}
{{ text.field('recipient_name', 'Recipient name or ID') }}
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be a typeahead.field so that they can select a committee if it's there. Or just search by the name without selecting from the list.

@patphongs
Copy link
Member

@rfultz One more thing we noticed is that not all the filters (especially the newer ones added here) are not hooked up to the search tags or passed through as URL query parameters. Could you please add this capability so we can remain consistent?

@JonellaCulmer
Copy link
Contributor

@rfultz We're missing committee clickthroughs to committee profile pages. Clicking on a committee name in the table should take you to their profile page.

cc: @patphongs

@rfultz
Copy link
Contributor Author

rfultz commented May 29, 2024

@rfultz We're missing committee clickthroughs to committee profile pages. Clicking on a committee name in the table should take you to their profile page.

cc: @patphongs

Will be part of the next commit/push

Copy link
Member

@patphongs patphongs left a comment

Choose a reason for hiding this comment

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

@rfultz Thanks for taking care of these fixes. I just have one small fix

Copy link
Member

@patphongs patphongs left a comment

Choose a reason for hiding this comment

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

Thanks for pushing up the last few changes @rfultz! This looks good to go 👍

@patphongs patphongs merged commit e20a3e4 into develop May 31, 2024
3 checks passed
@rfultz rfultz deleted the feature/6179-6180-national-party-account branch July 22, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Build national party account disbursements datatable Build national party account receipts datatable
3 participants