Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: implement conditional build parameters flow based on template setting#18390

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

blink-so[bot]
Copy link
Contributor

Summary

This PR implements conditional logic for build parameter flows based on thetemplate_use_classic_parameter_flow workspace setting. When this setting isfalse, the system now directs users to the workspace settings page for ephemeral parameter configuration instead of using the inline popover.

Changes

New Component

  • ConditionalBuildParametersPopover: A new component that conditionally renders either the classicBuildParametersPopover or shows theUpdateBuildParametersDialogExperimental dialog

Updated Components

  • Buttons.tsx: UpdatedStartButton andRestartButton to useConditionalBuildParametersPopover
  • RetryButton.tsx: Updated to useConditionalBuildParametersPopover
  • DebugButton.tsx: Updated to useConditionalBuildParametersPopover
  • UpdateBuildParametersDialogExperimental.tsx: Updated dialog text to be more specific about ephemeral parameters and their dependencies
  • WorkspaceParametersPageViewExperimental.tsx: Combined standard and ephemeral parameters into a unified display with visual indicators

Behavior Changes

Whentemplate_use_classic_parameter_flow istrue:

  • Uses the existingBuildParametersPopover behavior (no change)

Whentemplate_use_classic_parameter_flow isfalse:

  • If ephemeral parameters exist: Shows dialog directing users to workspace settings page
  • If no ephemeral parameters: Proceeds with the action directly
  • Workspace settings page now displays all parameters together with "Ephemeral" badges for ephemeral parameters

Rationale

This change addresses the requirement that ephemeral parameters may depend on values of non-ephemeral parameters. By directing users to the workspace settings page, they can see and configure all parameters in context, ensuring proper dependency handling.

Testing

The changes maintain backward compatibility - workspaces withtemplate_use_classic_parameter_flow: true will continue to work exactly as before. The new flow only activates when the setting isfalse.

Related Issues

Addresses the need for better ephemeral parameter handling in the experimental parameter flow.

blink-sobotand others added2 commitsJune 16, 2025 14:38
- Add ConditionalBuildParametersPopover component that checks template_use_classic_parameter_flow- When classic flow is false, show UpdateBuildParametersDialogExperimental for ephemeral parameters- Direct users to workspace settings page for ephemeral parameter configuration- Update WorkspaceParametersPageViewExperimental to combine standard and ephemeral parameters- Add visual indicators for ephemeral parameters in unified parameter display- Update all workspace action buttons to use conditional logicCo-authored-by: jaaydenh <1858163+jaaydenh@users.noreply.github.com>
- Remove trailing whitespace from ConditionalBuildParametersPopover.tsx- Fix import order in RetryButton.tsx to match linting requirementsCo-authored-by: jaaydenh <1858163+jaaydenh@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@jaaydenh

[8]ページ先頭

©2009-2025 Movatter.jp