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

Draft
wants to merge 66 commits into
base: main
Choose a base branch
from

Conversation

benwaples
Copy link
Contributor

Description

Describe your changes in detail

Motivation and Context

This PR addresses: [GitHub issue or Jira ticket number]

Why is this change required? What problem does it solve?

How Has This Been Tested?

Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc.

Screenshots (optional):

Types of changes

  • Chore (a change that does not modify the application functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Database Migrations

Checklist:

@@ -18,10 +18,13 @@
import React from 'react';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these changes are to match bhe test-utils.jsx as much as possible. It main intention is adding support for testing customHooks with providers

// limitations under the License.
//
// SPDX-License-Identifier: Apache-2.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.

directly ported from BHE

@@ -15,7 +15,7 @@
// SPDX-License-Identifier: Apache-2.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.

Improves types and plumbs queryOptions thru useFeatureFlag (singular).

environmentAggregation: EnvironmentAggregation | null;
};

export const environmentAggregationMap = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

pull from and deduped bhe

@@ -26,11 +25,7 @@ describe('SubNav', () => {
path: '/administration/test-nav-item-path',
};

render(
<BrowserRouter>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A Router is now in the set of default providers when using the test-utils render method

@@ -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

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