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 business details page to React Router #6416

Conversation

cgsunkel
Copy link
Contributor

@cgsunkel cgsunkel commented Jan 8, 2024

Description of change

The business details page has now been migrated onto React Router.

Test instructions

The business details page should load as before

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)

@cgsunkel cgsunkel requested a review from a team as a code owner January 8, 2024 10:18
@cgsunkel cgsunkel changed the title Migrate business details to react router Migrate business details page to React Router Jan 8, 2024
Copy link

cypress bot commented Jan 8, 2024

Passing run #50222 ↗︎

0 24 0 0 Flakiness 0

Details:

Create stripped down layout so layout can appear as root
Project: data-hub-frontend Commit: d9b63c9c63
Status: Passed Duration: 02:00 💡
Started: Jan 16, 2024 3:57 PM Ended: Jan 16, 2024 3:59 PM

Review all test suite changes for PR #6416 ↗︎

@cgsunkel cgsunkel force-pushed the feature/migrate-business-details-to-react-router branch 2 times, most recently from 033e26a to 2e5b56b Compare January 8, 2024 16:53
@cgsunkel cgsunkel force-pushed the feature/migrate-business-details-to-react-router branch from 2e5b56b to 3f47703 Compare January 8, 2024 16:54
Copy link
Contributor

@dredmonds dredmonds left a comment

Choose a reason for hiding this comment

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

LGTM👍

}) => {
const { companyId } = useParams()
return (
<CompanyResource id={companyId}>
Copy link
Contributor

@paulgain paulgain Jan 9, 2024

Choose a reason for hiding this comment

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

We shouldn't be using any Resource at root, the layout has to come first. By using the Resource as root the entire page is blank until the API has responded. We don't want blank pages during an API request(s). Please take a look at Peter's recent work to understand how things have changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you please point me to an example of where this new approach has been merged into main as I am not able to find anything matching this description in the last few PRs.

@cgsunkel cgsunkel requested a review from paulgain January 17, 2024 11:10
@cgsunkel cgsunkel merged commit 1c4faae into feature-merge/company-layout-refactoring Jan 18, 2024
14 checks passed
@cgsunkel cgsunkel deleted the feature/migrate-business-details-to-react-router branch January 18, 2024 09:38
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