Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

DEVPROD-942 Support regular expression search on configure tasks page #2132

Merged
merged 16 commits into from
Nov 7, 2023

Conversation

khelif96
Copy link
Contributor

@khelif96 khelif96 commented Oct 31, 2023

DEVPROD-942

Description

  • Refactor of TextInputs to create a TextInputWithValidator component since this seems to be a common pattern.
  • Use TextInputWithValidator on configure page to support using regular expressions to filter.

Screenshots

image

Copy link

cypress bot commented Nov 1, 2023

Passing run #13714 ↗︎

0 601 7 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Fix test
Project: Spruce Commit: 210b04eb7e
Status: Passed Duration: 18:22 💡
Started: Nov 7, 2023 4:14 PM Ended: Nov 7, 2023 4:33 PM

Review all test suite changes for PR #2132 ↗︎

@khelif96 khelif96 requested a review from a team November 3, 2023 20:28
@khelif96 khelif96 marked this pull request as ready for review November 3, 2023 20:28
Copy link
Contributor

@minnakt minnakt left a comment

Choose a reason for hiding this comment

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

nice!

</IconTooltip>
)
}
validatorErrorMessage="Invalid Regular Expression"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

Suggested change
validatorErrorMessage="Invalid Regular Expression"
validatorErrorMessage="Invalid regular expression"

onChange = () => {},
onSubmit = () => {},
validator = () => true,
validatorErrorMessage = "",
Copy link
Contributor

Choose a reason for hiding this comment

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

It might make sense to put a default message here, otherwise it'll just be blank. Or, force it to be a required prop

Screenshot 2023-11-06 at 3 52 58 PM

* `onSubmit` will be called when the user submits a new input with the enter key or the plus button
* if the input is valid
* @param value - the value of the input
* @returns
Copy link
Contributor

Choose a reason for hiding this comment

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

nit. either delete or add description after returns

@khelif96 khelif96 merged commit 58aab61 into evergreen-ci:main Nov 7, 2023
5 checks passed
@khelif96 khelif96 deleted the DEVPROD-942 branch November 7, 2023 17:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants