-
Notifications
You must be signed in to change notification settings - Fork 198
Fix/empty settings section on exit #2563
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,9 +53,13 @@ | |
| <Layout.Stack> | ||
| {#if !isGlobal} | ||
| <Alert.Inline> | ||
| When there is a naming conflict with a global variable in your <Link | ||
| href={`${base}/project-${$project.region}-${$project.$id}/settings/variables`}> | ||
| project settings</Link> | ||
| When there is a naming conflict with a global variable in your {#if $project && $project.region && $project.$id} | ||
| <Link | ||
| href={`${base}/project-${$project.region}-${$project.$id}/settings/variables`}> | ||
| project settings</Link> | ||
| {:else} | ||
| project settings | ||
| {/if} | ||
|
Comment on lines
+56
to
+62
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. URL format inconsistent with updateVariables.svelte. The null-safety guard is correctly implemented. However, this file uses
All three locations link to the global variables in project settings but use different URLs. Standardize on a single URL format across all references. Verify which URL format correctly navigates to the global variables section: #!/bin/bash
# Find the settings route structure to determine correct URL format
fd -e svelte "settings" src/routes | head -20
# Check for variables route or anchor usage
rg -nP 'settings.*variables|variables.*settings' --type=svelte src/routes -C2🤖 Prompt for AI Agents |
||
| and a {product} environment variable, the global variable will be ignored. | ||
| </Alert.Inline> | ||
| {/if} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistencies in link implementation and URL format.
Two issues to address:
Component inconsistency: This uses an
<a>tag, while lines 277-280 use the<Link>component for a similar purpose. Both link to project settings but use different implementations.URL format inconsistency: This links to
/settings(line 332), while line 278 links to/settings#variables. Both contexts reference global variables in project settings, so they should navigate to the same location.Ensure consistent component usage and URL format across all project settings links.
{#if $project && $project.region && $project.$id} - <a - href={`${base}/project-${$project.region}-${$project.$id}/settings`} - title="Project settings" - class="link"> - project settings</a - >. + <Link + href={`${base}/project-${$project.region}-${$project.$id}/settings#variables`}> + project settings</Link + >. {:else} project settings. {/if}📝 Committable suggestion
🤖 Prompt for AI Agents