Skip to content

Allow editing query name in query history #1255#1264

Merged
paustint merged 2 commits into
mainfrom
bug/1263
May 21, 2025
Merged

Allow editing query name in query history #1255#1264
paustint merged 2 commits into
mainfrom
bug/1263

Conversation

@paustint

Copy link
Copy Markdown
Contributor

This feature adds support for editing query history name and saved query names from the query history modal

resolves #1255

Add validation to additional fields to prevent later errors in the upload process.

Improved validation logic to ensure that falsy fields do not properly trigger validation when they are indeed valid. This happened when importing from XLSX and the field type was number with a value of "0".

resolves #1263
@paustint paustint requested a review from Copilot May 21, 2025 22:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 introduces support for editing query and saved query names in the query history modal by adding and refining input validations. Key changes include:

  • Adding length validations and custom error messages for several text fields.
  • Adjusting regex-based validations by removing explicit empty-value checks in favor of relying on the required property.
  • Updating error message wording for numerical fields to clarify bounds.
Comments suppressed due to low confidence (1)

libs/shared/ui-core/src/create-fields/create-fields-utils.tsx:199

  • [nitpick] The updated error messages change the phrasing from specifying a range to using 'not exceed'. Ensure that the documentation and user guidance reflect these updated constraints and phrasing for clarity.
return 'Must not exceed 255 characters';

Comment thread libs/shared/ui-core/src/create-fields/create-fields-utils.tsx Outdated
@paustint paustint merged commit cd754cb into main May 21, 2025
8 checks passed
@paustint paustint deleted the bug/1263 branch May 22, 2025 12:28
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.

Allow edit/rename of Saved Query

2 participants