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 EYB leads page sort by filter #7465

Merged
merged 4 commits into from
Jan 21, 2025

Conversation

ClaudiaGC1339
Copy link
Contributor

@ClaudiaGC1339 ClaudiaGC1339 commented Jan 16, 2025

Description of change

Added a sort by dropdown filter to the EYB leads page. The filter sorts by most recently created and company name A-Z.

API part of the work: uktrade/data-hub-api#5896

Test instructions

Navigate to the EYB leads tab. The sort by filter should be visible above the leads collection list.

Screenshots

Before

image

After

image

Checklist

  • Has the branch been rebased to main?
  • Automated tests (Any of the following when applicable: Unit, Functional or End-to-End)
  • Manual compatibility testing (Browsers: Chrome, Firefox, Edge, Safari)

ClaudiaGC1339 and others added 3 commits January 16, 2025 12:28
Co-authored-by: Oliver Roberts <oliverjwroberts@gmail.com>
Co-authored-by: Oliver Roberts <oliverjwroberts@gmail.com>
Copy link

cypress bot commented Jan 16, 2025

data-hub-frontend    Run #58744

Run Properties:  status check passed Passed #58744  •  git commit f9008a9228: Specifically target the request to test.
Project data-hub-frontend
Branch Review feature/CLS2-928-add-eyb-sort-by-filter
Run status status check passed Passed #58744
Run duration 08m 10s
Commit git commit f9008a9228: Specifically target the request to test.
Committer Oliver Roberts
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 4
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 74
View all changes introduced in this branch ↗︎

@ClaudiaGC1339 ClaudiaGC1339 marked this pull request as ready for review January 20, 2025 08:16
@ClaudiaGC1339 ClaudiaGC1339 requested a review from a team as a code owner January 20, 2025 08:16
@ClaudiaGC1339 ClaudiaGC1339 changed the title CLS2 928 Add EYB leads page sort by filter Add EYB leads page sort by filter Jan 20, 2025
For context, when visiting the index of a page which has default query parameters (and the index url does not contain these), the app makes a second request with those parameters. As a result, multiple requests were caught by the intercept.

This commit changes the intercept statements for most tests to target a specific request which assertions can then be carried out on.
Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.60%. Comparing base (25a7eb9) to head (f9008a9).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7465      +/-   ##
==========================================
+ Coverage   88.54%   88.60%   +0.05%     
==========================================
  Files        1152     1152              
  Lines       17963    17965       +2     
  Branches     5121     5122       +1     
==========================================
+ Hits        15906    15918      +12     
+ Misses       2057     2047      -10     

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

@oliverjwroberts oliverjwroberts merged commit f462e92 into main Jan 21, 2025
16 checks passed
@oliverjwroberts oliverjwroberts deleted the feature/CLS2-928-add-eyb-sort-by-filter branch January 21, 2025 08:25
chopkinsmade pushed a commit that referenced this pull request Jan 21, 2025
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.

4 participants