Skip to content
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

fix(fe:FSADT1-1521): clear the AutoComplete field when preventSelection is true #1230

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

fterra-encora
Copy link
Collaborator

@fterra-encora fterra-encora commented Oct 10, 2024

Description

This is a fix for #1223.
Stops preventing the action to clear the input value when preventSelection is true.
And also fixes tests that broke after updates on feat/client3.

Fixes FSADT1-1521

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Documentation update

How Has This Been Tested?

  • New unit tests
  • New integrated tests
  • New component tests
  • New end-to-end tests
  • New user flow tests
  • No new tests are required
  • Manual tests (description below)
  • Updated existing tests

Checklist

  • I have read the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have already been accepted and merged

Further comments


Thanks for the PR!

Deployments, as required, will be available below:
Any successful deployments (not always required) will be available here

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

Copy link
Contributor

Current changelog

Bug Fixes

  • do not prevent the clearing action (f30c248)

Features

  • be:FSADT1-1519: Create API endpoint for predictive search (8ca00b1)
  • be:FSADT1-1519: Create API endpoint for predictive search (3b2941c)
  • be:FSADT1-1519: Create API endpoint for predictive search (b467da6)
  • fe:FSADT1-1521: create the predictive search (#1223) (258ed26), closes #1227
  • fe:FSADT1-1541: Display an error message when the BE is down (#1227) (7127d58)
  • FSADT1-1519: Draft for Create API endpoint for predictive search (1187889)
  • FSADT1-1519: Predictive search #2 (b4b34c3)
  • FSADT1-1519: Predictive search endpoint #1 (cc6f1b2)

Copy link
Contributor

Overall Project NaN% NaN% 🍏

There is no coverage information present for the Files changed

@fterra-encora fterra-encora merged commit 13db50d into feat/client3 Oct 10, 2024
26 checks passed
@fterra-encora fterra-encora deleted the feat/FSADT1-1521-2 branch October 10, 2024 19:31
fterra-encora added a commit that referenced this pull request Oct 17, 2024
* feat(FSADT1-1519): Draft for Create API endpoint for predictive search

* Added temporary feature flag for the search functionality

* feat(FSADT1-1519): Predictive search endpoint #1

* feat(FSADT1-1519): Predictive search #2

* feat(be:FSADT1-1519): Create API endpoint for predictive search

* feat(be:FSADT1-1519): Create API endpoint for predictive search

* chore: Added javadocs

* Removed unused imports

* feat(be:FSADT1-1519): Create API endpoint for predictive search

* Refactored code and included full seach

* Refactored code to have 1 query only

* Added count in the API

* feat(fe:FSADT1-1541): Display an error message when the BE is down (#1227)

* feat(fe:FSADT1-1521): create the predictive search (#1223)

* feat: add search box with predictive search

* fix: fix predictive-search stubs

* feat: update style of search controls

* docs: update interface name

* fix: use placeholder instead of label

* test: add search test file

* feat: navigate to client details

* test: implement tests

* refactor: move functions to the GlobalValidators

* feat: validate autocomplete while typing

* feat: validate keywords

* test: validate keywords

* feat: prevent selection on AutoComplete

* feat: open client details in a new tab

* chore: update endpoint stub

* test: update tests

* feat(fe:FSADT1-1541): Display an error message when the BE is down (#1227)

* fix: rename event from click to click:option

---------

Co-authored-by: Maria Martinez <[email protected]>

* Renamed files

* Added missing key

* fix(fe:FSADT1-1521): clear the AutoComplete field when preventSelection is true (#1230)

* test: fix tests

* fix: do not prevent the clearing action

* Added stubs for full search

* fix: apply the feature flag to the Client search button

And remove it from the check of user's authority.

* chore: add header x-total-count to stub

* feat: add css tag colors from nr-theme

* feat: set status tag colors

* fix: prevent emitting the full css theme

* feat: emit press:enter

* fix: prevent emitting press:enter when it's a selection

* feat: update full search behavior

* feat: prevent search with invalid value

* fix: reset error message

* fix: remove optional from validations

* chore: update stub file

* fix: display empty acronyms

Also sets column widths

* test: check results by index

* fix: fix displaying issue on status column

Also updates css class names

* test: add more tests

* fix: allow empty search

* test: search with no keywords

---------

Co-authored-by: Maria Martinez <[email protected]>
Co-authored-by: Maria Martinez <[email protected]>
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.

2 participants