Skip to content

feat: Use search attributes in start form#1055

Merged
Assem-Uber merged 24 commits intocadence-workflow:masterfrom
Assem-Uber:feature/15450/use-search-attributes-in-start-form
Oct 29, 2025
Merged

feat: Use search attributes in start form#1055
Assem-Uber merged 24 commits intocadence-workflow:masterfrom
Assem-Uber:feature/15450/use-search-attributes-in-start-form

Conversation

@Assem-Uber
Copy link
Contributor

Summary
Replace json field used for search attributes with the new search attributes field.

Screenshots
Form
Screenshot 2025-10-24 at 16 43 15
Search attributes in start event
Screenshot 2025-10-24 at 16 43 26

Assem-Uber and others added 18 commits October 15, 2025 10:02
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* Create hook for fetching search attributes

Signed-off-by: Assem Hafez <assem.hafez@uber.com>

* use stringifyUrl

Signed-off-by: Assem Hafez <assem.hafez@uber.com>

---------

Signed-off-by: Assem Hafez <assem.hafez@uber.com>
…rkflow#1049)

* propagate user headers from server renders

* fix tests

* dynamically import headers

* log propagated header keys

* add test cases

* import headers inline
*Add import/named rule to .eslintrc to enable detecting import issues
* Use deep imports for Lodash
* Fix other misc lint issues (unused imports/variables)

Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
…ture/15450/use-search-attributes-in-start-form
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
@Assem-Uber Assem-Uber changed the title feature: Use search attributes in start form feat: Use search attributes in start form Oct 24, 2025
Assem-Uber and others added 5 commits October 27, 2025 13:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the JSON text field for search attributes with a dedicated search attributes component in the workflow start form. The change improves the user experience by providing a structured input method with type-aware fields instead of raw JSON editing.

Key Changes:

  • Replaced JSON textarea with WorkflowActionsSearchAttributes component for structured input
  • Updated schema validation to handle array of key-value pairs instead of JSON strings
  • Added helper function to extract and format search attribute validation errors

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
workflow-actions-search-attributes.types.ts Removed optional label prop from component interface
workflow-actions-search-attributes.tsx Removed FormControl wrapper and label prop usage
workflow-actions-search-attributes.test.tsx Removed tests for label customization
workflow-action-start-optional-section.types.ts Added cluster prop to support fetching search attributes
workflow-action-start-optional-section.tsx Integrated WorkflowActionsSearchAttributes component with search attributes fetching
workflow-action-start-optional-section.test.tsx Updated tests to mock new component and verify error handling
workflow-action-start-form.tsx Passed cluster prop to optional section
start-workflow-form-schema.ts Changed validation from JSON string to array of key-value objects
transform-start-workflow-form-to-submission.ts Converted array format to object for API submission
get-search-attributes-error-message.ts Added helper to extract error messages from nested field errors
get-search-attributes-error-message.test.ts Added comprehensive tests for error message extraction
start-workflow-request-body-schema.ts Strengthened validation to allow only string, number, or boolean values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Assem-Uber Assem-Uber merged commit d23c27e into cadence-workflow:master Oct 29, 2025
5 checks passed
@Assem-Uber Assem-Uber deleted the feature/15450/use-search-attributes-in-start-form branch October 29, 2025 12:06
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.

3 participants