Skip to content

Add sandbox indicator for Sandbox Project#7243

Open
sumitdahal7 wants to merge 2 commits into
developfrom
feat/7226-add-sandbox-indicator
Open

Add sandbox indicator for Sandbox Project#7243
sumitdahal7 wants to merge 2 commits into
developfrom
feat/7226-add-sandbox-indicator

Conversation

@sumitdahal7
Copy link
Copy Markdown
Collaborator

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation
  • 🧑‍💻 Refactor
  • ✅ Test
  • 🤖 Build or CI
  • ❓ Other (please specify)

Related Issue

Fixes #7226

Describe this PR

This PR introduces a Sandbox Mode indicator in the application header to provide clear visual feedback when a user
is interacting with a sandbox project.

Key Changes:
In Header Component:

  • Implemented logic to extract the projectId from the current URL.

  • Integrated useProjectSummaryQuery to fetch project details.

  • Added a conditionally rendered "Sandbox Mode" badge next to the Tasking Manager logo for projects with
    sandbox: true.

  • Testing: Updated the Header component tests to include QueryClientProviders, ensuring that the new API hook
    doesn't break existing test suites.

Screenshots

image

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add indication Sandbox mode to all project pages

1 participant