-
Notifications
You must be signed in to change notification settings - Fork 126
feat(search-attributes): add isDeletable #3041
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
Conversation
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
- Remove hideDeleteButton prop from search attributes form components - Add isExisting flag to SearchAttributeDefinition to track existing vs new rows - Disable delete button for existing attributes while allowing deletion of newly added unsaved rows - Update Zod schema to include optional isExisting field
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
isExisting is UI-only metadata and doesn't need validation
…Forms from stripping it The root cause was SuperForms removing properties not defined in the validation schema. By adding isExisting to the Zod schema with .optional().default(false), SuperForms now preserves the flag correctly throughout the component lifecycle.
Rename property from isExisting to isDeletable with inverted logic for better semantic clarity. Now isDeletable: true means the row can be deleted (new rows) and isDeletable: false means it cannot be deleted (existing rows).
…ults Make isDeletable optional with a default value of true in the component props, removing the need to map over initial attributes to add the flag. Callers are now responsible for explicitly setting isDeletable: false on existing attributes.
Remove rounded-md from vertical nav item links and background highlights for a cleaner, edge-to-edge appearance.
rossedfort
approved these changes
Dec 2, 2025
andrewzamojc
approved these changes
Dec 2, 2025
Contributor
andrewzamojc
left a comment
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.
LGTM
temporal-cicd bot
pushed a commit
that referenced
this pull request
Dec 18, 2025
Auto-generated version bump from 2.43.3 to 2.44.0 Bump type: minor Changes included: - [`d2a09d40`](d2a09d4) chore(server): optimize Docker builds with .dockerignore and improved Dockerfile (#3014) - [`0ae7ce08`](0ae7ce0) Add run Id when fetching initial values for workflow start (#3019) - [`2abd6ba0`](2abd6ba) Add route for archived event history (#3023) - [`20c692df`](20c692d) Move ziggy png under src/lib/vendor and import it (#3025) - [`0ba531d8`](0ba531d) Fix custom public path for render endpoint (#3024) - [`564dcfa9`](564dcfa) Add deprecate to pluralize. (#3026) - [`80b78303`](80b7830) DT-3307 - add custom timestamp formats (#3021) - [`be7fe154`](be7fe15) Remove timestamp from timeline axis (#3031) - [`07dec31d`](07dec31) Clear Schedule timeouts (#3030) - [`34fdd3a4`](34fdd3a) Only add link if deployment is defined (#3035) - [`d59320d1`](d59320d) If greater than 1 attempt, set actions to 0 (#3045) - [`a7629a24`](a7629a2) Bump mdast-util-to-hast from 13.2.0 to 13.2.1 (#3046) - [`37159d8f`](37159d8) Bump express from 4.20.0 to 4.22.0 (#3047) - [`4faf9843`](4faf984) feat(search-attributes): add isDeletable (#3041) - [`37a0a691`](37a0a69) Audit identity field in APIs (#3018) - [`fe84adcc`](fe84adc) update Menu and related components to runes mode (#3048) - [`378a4699`](378a469) Fix empty state png (#3053) - [`bd4dfba2`](bd4dfba) Dangerfile (#3043) - [`82a9971f`](82a9971) fix event-details-link href creation (#3055) - [`23885f39`](23885f3) Support forwarding binary headers (#3000) - [`f8b38697`](f8b3869) fix(codec-server): add spacing between action buttons (#3058) - [`4495de9a`](4495de9) Fix poller reduce logic for pollers with different identities (#3057) - [`271edd95`](271edd9) fix: update Go to 1.24.11 to fix stdlib security vulnerabilities (#3059) - [`20ab1a28`](20ab1a2) fix batch operation close time (#3060) - [`19a64bf7`](19a64bf) Add schedule link (#3061) - [`0c7597c9`](0c7597c) Change from 2 to 1 (#3062) - [`7c74da94`](7c74da9) Time range bug fix (#3050) - [`8a5b5fad`](8a5b5fa) fix(select): make Option children a required prop (#3068) - [`ce4e9a9c`](ce4e9a9) Scheduled by filter updates (#3063) - [`8faf0420`](8faf042) Update ns picker value based on page params (#3065) - [`06ca2389`](06ca238) Make custom signal first (#3069) - [`2f2adc39`](2f2adc3) fix: address security vulnerabilities in dependencies (#3056)
Alex-Tideman
added a commit
that referenced
this pull request
Dec 18, 2025
Auto-generated version bump from 2.43.3 to 2.44.0 Bump type: minor Changes included: - [`d2a09d40`](d2a09d4) chore(server): optimize Docker builds with .dockerignore and improved Dockerfile (#3014) - [`0ae7ce08`](0ae7ce0) Add run Id when fetching initial values for workflow start (#3019) - [`2abd6ba0`](2abd6ba) Add route for archived event history (#3023) - [`20c692df`](20c692d) Move ziggy png under src/lib/vendor and import it (#3025) - [`0ba531d8`](0ba531d) Fix custom public path for render endpoint (#3024) - [`564dcfa9`](564dcfa) Add deprecate to pluralize. (#3026) - [`80b78303`](80b7830) DT-3307 - add custom timestamp formats (#3021) - [`be7fe154`](be7fe15) Remove timestamp from timeline axis (#3031) - [`07dec31d`](07dec31) Clear Schedule timeouts (#3030) - [`34fdd3a4`](34fdd3a) Only add link if deployment is defined (#3035) - [`d59320d1`](d59320d) If greater than 1 attempt, set actions to 0 (#3045) - [`a7629a24`](a7629a2) Bump mdast-util-to-hast from 13.2.0 to 13.2.1 (#3046) - [`37159d8f`](37159d8) Bump express from 4.20.0 to 4.22.0 (#3047) - [`4faf9843`](4faf984) feat(search-attributes): add isDeletable (#3041) - [`37a0a691`](37a0a69) Audit identity field in APIs (#3018) - [`fe84adcc`](fe84adc) update Menu and related components to runes mode (#3048) - [`378a4699`](378a469) Fix empty state png (#3053) - [`bd4dfba2`](bd4dfba) Dangerfile (#3043) - [`82a9971f`](82a9971) fix event-details-link href creation (#3055) - [`23885f39`](23885f3) Support forwarding binary headers (#3000) - [`f8b38697`](f8b3869) fix(codec-server): add spacing between action buttons (#3058) - [`4495de9a`](4495de9) Fix poller reduce logic for pollers with different identities (#3057) - [`271edd95`](271edd9) fix: update Go to 1.24.11 to fix stdlib security vulnerabilities (#3059) - [`20ab1a28`](20ab1a2) fix batch operation close time (#3060) - [`19a64bf7`](19a64bf) Add schedule link (#3061) - [`0c7597c9`](0c7597c) Change from 2 to 1 (#3062) - [`7c74da94`](7c74da9) Time range bug fix (#3050) - [`8a5b5fad`](8a5b5fa) fix(select): make Option children a required prop (#3068) - [`ce4e9a9c`](ce4e9a9) Scheduled by filter updates (#3063) - [`8faf0420`](8faf042) Update ns picker value based on page params (#3065) - [`06ca2389`](06ca238) Make custom signal first (#3069) - [`2f2adc39`](2f2adc3) fix: address security vulnerabilities in dependencies (#3056) Co-authored-by: Alex-Tideman <7967403+Alex-Tideman@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Changes the search attributes form to disable (rather than hide) the delete button for existing attributes. Users can still add new rows and delete them if they haven't been saved to the server yet.
Changes
hideDeleteButtonprop from search attributes form componentsisDeletableflag toSearchAttributeDefinitionto track whether rows can be deletedisDeletablefield (defaults totruefor new rows,falsefor existing)Implementation Details
The
isDeletableproperty uses positive logic:isDeletable: true- Row can be deleted (new, unsaved rows)isDeletable: false- Row cannot be deleted (existing, saved attributes)This property must be included in the Zod schema to prevent SuperForms from stripping it during form state updates.
Behavior
isDeletable: false)isDeletable: true)isDeletable: true)Test Plan