Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Roles page updates #87

Merged
merged 2 commits into from
Aug 9, 2021
Merged

Roles page updates #87

merged 2 commits into from
Aug 9, 2021

Conversation

cagdas001
Copy link
Contributor

  • (55641f6) fix(roles): do not allow manual skill selection (if not in the list)

    • Fix an issue that was allowing users to be able to add non-existing skills.

      • The Typeahead component was also firing the onChange event on Blur, Enter and Esc presses.
      • To overcome this, added a property (enforceListOnlySelection) to the component. If it's set, the onChange event will be fired only if the input is in the suggestion list.
    • Add minLengthForSuggestions property to the Typeahead component.

      • This is the minimum length to retrieve & display suggestions and was hardcoded (with 3) in the component.
      • The new property allows to specify it. The ability to set it to 1 is useful for displaying skills like C, C#, which have less than 3 characters.

      Adresses topcoder-platform/taas-app#426

  • (6104e7d) feat(roles): allow manual inputs in integer fields

    • Remove +/- buttons in the integer fields of Roles form.
    • Allow manual input in the integer fields.
    • Add logic to make time conversion between human-readable strings (e.g. "2 weeks") and numeric hours (336).
    • Add proper validations on manual inputs.

Addresses: topcoder-platform/taas-app#425, topcoder-platform/taas-app#403 (comment)

* Fix an issue which was allowing users to be able to add non-existing skills.
  * The `Typeahead` component was also firing the `onChange` event on Blur, Enter and Esc presses.
  * To overcome this, added a property (`enforceListOnlySelection`) to the component. If it's set, the `onChange` event will be fired only if the input is in the suggestion list.
* Add `minLengthForSuggestions` property to the `Typeahead` component.
  * This is the minimum length to retrieve & display suggestions and was hardcoded (with 3) in the component.
  * The new property allows to specify it. The ability to set it to `1` is useful for displaying skills like `C`, `C#`, which have less than 3 characters.

Adresses https://github.com/topcoder-platform/taas-app/issues/426
* Remove +/- buttons in the integer fields of Roles form.
* Allow manual input in the integer fields.
* Add a logic to make time conversion between human-readable strings (e.g. "2 weeks") and numeric hours (336).
* Add proper validations on manual inputs.

Addresses: https://github.com/topcoder-platform/taas-app/issues/425, https://github.com/topcoder-platform/taas-app/issues/403#issuecomment-892774361
@urwithat urwithat merged commit 73252ea into topcoder-archive:dev Aug 9, 2021
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