8000 fix: show error message for incompatible parameters by jaaydenh · Pull Request #18365 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

fix: show error message for incompatible parameters #18365

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 1 commit into from
Jun 13, 2025

Conversation

jaaydenh
Copy link
Contributor
@jaaydenh jaaydenh commented Jun 13, 2025

resolves coder/preview#148

If there are any immutable params with diagnostics on the workspace parameters page, display this error dialog.

Screenshot 2025-06-13 at 18 06 36

@jaaydenh jaaydenh self-assigned this Jun 13, 2025
@jaaydenh jaaydenh requested a review from Emyrk June 13, 2025 17:07
Copy link
Member
@Emyrk Emyrk left a comment

Choose a reason for hiding this comment

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

👍

@@ -596,11 +596,18 @@ export const CreateWorkspacePageViewExperimental: FC<
const currentParameterValueIndex =
form.values.rich_parameter_values?.findIndex(
(p) => p.name === parameter.name,
) ?? -1;
Copy link
Member

Choose a reason for hiding this comment

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

This feels like it could be a bad default 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup, I removed this to check undefined instead

@Kira-Pilot
Copy link
Member

Need a docs update so this is clear to new users.

@jaaydenh jaaydenh merged commit dc5f69e into main Jun 13, 2025
37 checks passed
@jaaydenh jaaydenh deleted the jaaydenh/incompatible-parameters-warning branch June 13, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display error message on workspace parameters page if a required mutable parameter without a value is present
3 participants
0