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

Migrate company edit history page to React Router #6548

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

cgsunkel
Copy link
Contributor

@cgsunkel cgsunkel commented Feb 21, 2024

Description of change

The company Edit History page has been migrated to React Router. The deprecated EditHistory component originally used here has been replaced with a CollectionList (the EditHistory component itself will be removed in an upcoming PR).

I've included a couple of small changes as part of the switchover:

  • The headquarter type field now displays the headquarter type rather than the acronym displayed currently (such as Global HQ instead of ghq
  • A badge has been added showing the number of changes made

Test instructions

The company edit history page should work as normal.

Screenshots

Before

Screenshot 2024-02-22 at 13-24-05 Department for Business and Trade

After

Screenshot 2024-02-22 at 13-23-38 Edit history - Business details - One List Corp - Companies - DBT Data Hub

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)

Copy link

cypress bot commented Feb 21, 2024

Passing run #51366 ↗︎

0 26 0 0 Flakiness 0

Details:

Remove legacy code
Project: data-hub-frontend Commit: 875b833b3e
Status: Passed Duration: 02:05 💡
Started: Feb 26, 2024 5:12 PM Ended: Feb 26, 2024 5:14 PM

Review all test suite changes for PR #6548 ↗︎

@cgsunkel cgsunkel force-pushed the feature/migrate-company-edithistory-to-rr branch from 2b9d6b8 to 736d196 Compare February 22, 2024 13:23
@cgsunkel cgsunkel marked this pull request as ready for review February 22, 2024 13:50
@cgsunkel cgsunkel requested a review from a team as a code owner February 22, 2024 13:50
@cgsunkel cgsunkel force-pushed the feature/migrate-company-edithistory-to-rr branch 4 times, most recently from e179c79 to 1a8393f Compare February 23, 2024 11:20
@cgsunkel cgsunkel force-pushed the feature/migrate-company-edithistory-to-rr branch from 1a8393f to 875b833 Compare February 26, 2024 17:06
@cgsunkel cgsunkel merged commit 6f42f28 into main Feb 26, 2024
16 checks passed
@cgsunkel cgsunkel deleted the feature/migrate-company-edithistory-to-rr branch February 26, 2024 17:59
chopkinsmade pushed a commit that referenced this pull request Feb 26, 2024
swenban pushed a commit that referenced this pull request Feb 27, 2024
* Refactor company edit history page to use React Router

* Update and rewrite tests

* Remove legacy code
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.

3 participants