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

BED-5453: deep linking support for selected environment #1170

Open
wants to merge 70 commits into
base: main
Choose a base branch
from

Conversation

benwaples
Copy link
Contributor

@benwaples benwaples commented Feb 25, 2025

Description

This PR:

  • Adds deep linking support for the selected environment.
  • Adds useEnvironment and useEnvironmentParams hooks.
  • Refactors references of Domain to Environment

Motivation and Context

This PR addresses: BED-5453

Functionality should be the same from BHCEs perspective apart from now seeing the selected environment in the URL.

How Has This Been Tested?

Added Unit tests and performed manual tests.

Screenshots (optional):

Types of changes

  • Chore (a change that does not modify the application functionality)

Checklist:

@@ -69,6 +69,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"history": "^5.3.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same package added to bhe and bhce

},
}));

const QualityAssuranceV2: React.FC = () => {
Copy link
Contributor Author

@benwaples benwaples Feb 26, 2025

Choose a reason for hiding this comment

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

I made a v2 for the QA component to consolidate the state in a similar way as GroupManagementContent because they behave similarly from a selected environment perspective.

Also added a loading state while fetching the environment

@@ -14,7 +14,7 @@
//
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All changes in here are either renaming useAvailableDomains, or porting styles from the original GraphView

@benwaples benwaples marked this pull request as ready for review March 3, 2025 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request user interface A pull request containing changes affecting the UI code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant