Repository navigation
feat(blueprints): add Blueprint-specific service settings #2965
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
0daf663
Initial clean up
rmnbrd 828c7b1
Add blueprint-specific settings
rmnbrd 97631a5
Add preview step
rmnbrd 9daaed3
Add flow to preview changes
rmnbrd 465d9ad
Add optimistic behavior
rmnbrd 409132f
Remove useless settings sections
rmnbrd e4b3c6d
Support helm-based blueprint services + small refactor
rmnbrd 488ea3f
Align with latest backend changes
rmnbrd e7c14d8
Remove blueprint settings debug logging
rmnbrd dadef44
"Overrides" section is collapsed by default
rmnbrd 49af9ea
UI improvements
rmnbrd 5d4df6f
UI improvement
rmnbrd 889dec2
Fix Blueprint update flow's close button behavior
rmnbrd aea7bcf
Track Blueprint settings usage analytics
rmnbrd 5c07886
Redirect non-blueprint services from blueprint settings
rmnbrd 4497dc1
Hide Terraform variables for blueprint services
rmnbrd a6c7351
Remove unused blueprint hook exports
rmnbrd 4610d69
Fix Modal default width styling
rmnbrd d47110f
Validate optional blueprint fields before preview
rmnbrd a51d446
Standardize blueprint update flow step titles
rmnbrd cde176f
Use shared blueprint service predicate
rmnbrd 4f04ab3
Hide blueprint version badge when unavailable
rmnbrd e29309d
Support Helm blueprint repository metadata
rmnbrd e3b87b9
Hide resources for Helm blueprint services
rmnbrd e545e68
Keep blueprint settings after deployment failure
rmnbrd 6f256f9
Fix blueprint preview modal pending layout
rmnbrd 4c43b0d
Export blueprint update utilities
rmnbrd c667076
Use blueprint predicate for service identity
rmnbrd fb96c29
Use default caching for blueprint variables
rmnbrd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
...jectId/environment/$environmentId/service/$serviceId/settings/blueprint-configuration.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import { Navigate, createFileRoute } from '@tanstack/react-router' | ||
| import { useOrganization } from '@qovery/domains/organizations/feature' | ||
| import { BlueprintGeneralSettings } from '@qovery/domains/service-settings/feature' | ||
| import { isBlueprintService } from '@qovery/domains/services/data-access' | ||
| import { useService } from '@qovery/domains/services/feature' | ||
| import { useDocumentTitle } from '@qovery/shared/util-hooks' | ||
|
|
||
| export const Route = createFileRoute( | ||
| '/_authenticated/organization/$organizationId/project/$projectId/environment/$environmentId/service/$serviceId/settings/blueprint-configuration' | ||
| )({ | ||
| component: RouteComponent, | ||
| }) | ||
|
|
||
| function RouteComponent() { | ||
| const { organizationId, projectId, environmentId, serviceId } = Route.useParams() | ||
| const { data: organization } = useOrganization({ organizationId, suspense: true }) | ||
| const { data: service } = useService({ environmentId, serviceId, suspense: true }) | ||
| useDocumentTitle('Blueprint configuration - Service settings') | ||
|
|
||
| if (!service) { | ||
| return null | ||
| } | ||
|
|
||
| if (!isBlueprintService(service)) { | ||
| return ( | ||
| <Navigate | ||
| to="/organization/$organizationId/project/$projectId/environment/$environmentId/service/$serviceId/overview" | ||
| params={{ organizationId, projectId, environmentId, serviceId }} | ||
| replace | ||
| /> | ||
| ) | ||
| } | ||
|
|
||
| if (!organization) { | ||
| return null | ||
| } | ||
|
|
||
| return <BlueprintGeneralSettings service={service} environmentId={environmentId} organizationId={organization.id} /> | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.