fleet/frontend/components
Scott Gress dc4fd676c5
Update password requirements check when setting up (#32261)
for #31876 

# Details

This PR updates the validation for password requirements to be
consistent in all places, and to show more specific error messages when
the entered password does not meet the requirements.

Previously the `valid_password` helper just returned a boolean
indicating whether a password was valid. It now returns an object with
`isValid`, `error` and `error_code` so that different types of password
issues can be surfaced. This allows us to continue having a single
source of truth for password validation, while providing more helpful
error messages when a password doesn't meet our criteria.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [X] Added/updated automated tests
- [X] QA'd all new/changed functionality manually
  - [X] First time setup (adding the initial user)
  - [X] Add user in settings -> manage users
  - [X] Changer user password in settings -> manage users
  - [X] Password reset form
2025-08-26 16:59:05 -05:00
..
ActionsDropdown Fleet UI: Add self-service opening instructions to apps and programs (#32169) 2025-08-26 11:02:30 -04:00
ActivityDetails/InstallDetails FE: Cleanup lint warnings (#32086) 2025-08-21 16:21:45 -05:00
ActivityItem API only users show a different avatar in the activity feed (#30512) 2025-07-07 10:45:51 -04:00
AddHostsModal change button styles for turn on mdm info banner (#31374) 2025-08-01 15:36:03 +01:00
App Remove Android feature flag from frontend (#29890) 2025-06-12 20:05:56 -05:00
AuthenticationFormWrapper UI – refactor forms and form fields (#16159) 2024-01-18 10:48:44 -05:00
Avatar Never use gravatar for API users (#30593) 2025-07-07 12:32:53 -04:00
AvatarTopNav FE: Update User menu to use react select 5 (#24281) 2024-12-20 10:39:06 -05:00
BackLink UI – Host query report page (#15511) 2023-12-08 16:54:24 -08:00
buttons change button styles for turn on mdm info banner (#31374) 2025-08-01 15:36:03 +01:00
Card Fleet UI: Info banner component, uses Card as base component, tests (#26276) 2025-02-19 10:36:36 -05:00
CardHeader Fleet UI: Revamp host > software page with inventory/library tabs (#29759) 2025-06-20 15:02:22 -04:00
ClickableUrls Fix issue with policy details modal causing 500 error page (#26628) 2025-02-27 09:43:34 -06:00
ClickOutside add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
CustomLink Fleet UI: Stop propogation of clickable parent on a custom link (#31662) 2025-08-06 15:33:07 -04:00
DataError Fleet Desktop: Update component level error states (#28816) 2025-05-12 09:25:09 -04:00
DataSet Set line-height on .data-set class (#31659) 2025-08-07 13:19:59 -05:00
DeviceUserError Fleet UI: Consistent icon for device user error as data error (#29535) 2025-05-29 07:19:34 -04:00
Editor Fleet UI components; Editor copy button added, File details/uploader gitopsCompatible can now be false (#29307) 2025-05-21 13:32:18 -04:00
EmailTokenRedirect Merge branch 'main' into 15919-vulnerabilities-page 2024-02-22 16:27:15 -06:00
EmptyTable fix 500 page when filtering by vulnerabilities on host software (#25816) 2025-01-29 12:09:28 +00:00
EnrollSecrets Misc. FE code cleanup (#31257) 2025-07-25 16:12:23 -07:00
FileDetails Fleet UI components; Editor copy button added, File details/uploader gitopsCompatible can now be false (#29307) 2025-05-21 13:32:18 -04:00
FileProgressModal Fleet UI: Info banner component, uses Card as base component, tests (#26276) 2025-02-19 10:36:36 -05:00
FileUploader Fleet UI components; Editor copy button added, File details/uploader gitopsCompatible can now be false (#29307) 2025-05-21 13:32:18 -04:00
FlashMessage FE: Cleanup lint warnings (#32086) 2025-08-21 16:21:45 -05:00
FleetMarkdown UI - Update name (#25873) 2025-01-31 10:37:56 -08:00
forms Update password requirements check when setting up (#32261) 2025-08-26 16:59:05 -05:00
GitOpsModeTooltipWrapper disable deletion of EULA from UI when gitops mode enabled (#30555) 2025-07-07 15:32:33 +01:00
Graphic Create new ListItem and FileUploader component and use on controls page (#15103) 2023-11-13 15:30:22 -08:00
graphics add UI for certificate authority list (#26955) 2025-03-11 14:31:02 +00:00
HumanTimeDiffWithDateTip UI for scheduling batch scripts (#31885) 2025-08-14 10:10:45 -05:00
Icon Icons improvements (making frontend consistent with Figma component library) (#14185) 2023-10-31 16:06:38 +00:00
icons Fleet UI: Fix OS vs. Software icon bug (#31911) 2025-08-14 13:18:24 -04:00
InfoBanner Fleet UI: Add 24px gap between banner text and CTA (#29864) 2025-06-10 14:47:03 -04:00
InheritedBadge Fleet UI: Updates to dropdown selected states (#25635) 2025-01-22 10:22:59 -05:00
LastUpdatedHostCount Fleet UI: Move view all host link onto host count (#28042) 2025-04-10 09:14:28 -04:00
LastUpdatedText Fleet UI: Add timestamps to host count on software detail pages (#25143) 2025-01-07 09:22:41 -05:00
LicenseExpirationBanner Fleet UI: Component fixes (styling bugs and code cleanup) (#26149) 2025-02-26 13:47:28 -05:00
LinkWithContext Install software setup experience UI (#22651) 2024-10-09 16:09:38 +01:00
ListItem UI for managing custom variables (#31875) 2025-08-15 08:24:55 -05:00
LiveQuery UI: Labels by IdP (#30368) 2025-06-30 10:05:03 -07:00
LogDestinationIndicator Fixed tooltip not showing the correct log destination (#30124) 2025-06-19 10:39:07 -04:00
MainContent FE: Cleanup lint warnings (#32086) 2025-08-21 16:21:45 -05:00
MDM add anroid enterprise deleted banner (#26685) 2025-03-10 13:16:43 +00:00
Modal UI: Add ability to run a script on all hosts that match a set of supported filters; Add UI to view batch run summaries (#29025) 2025-05-22 16:45:43 -07:00
ModalFooter UI: Add ability to run scripts on batches of hosts (#28563) 2025-04-28 16:32:41 -07:00
modals/ShowQueryModal FE: Button renaming, better storybook view, remove unused code (#28245) 2025-04-16 09:56:09 -04:00
NotSupported UI: Ensure 'Not supported' cell for Chromebooks never wraps (#12227) 2023-06-08 12:10:37 -04:00
PaginatedList UI for managing custom variables (#31875) 2025-08-15 08:24:55 -05:00
Pagination Fleet UI: Unify manage automations > paginated list footer styling (#27841) 2025-04-03 13:07:57 -04:00
PlatformCompatibility Update dashboard, manage hosts, and host details UI for Android MDM feature (#26577) 2025-02-26 12:03:56 -06:00
PlatformSelector Add ability to target labels on policies (#27599) 2025-04-02 16:31:03 -05:00
PremiumFeatureMessage feat: enable multiple ABM and VPP tokens (#21693) 2024-08-29 18:51:46 -04:00
ProbabilityOfExploit Fleet UI: /software/vulnerabilities page (#16676) 2024-02-15 10:35:43 -07:00
ProgressBar UI for scheduling batch scripts (#31885) 2025-08-14 10:10:45 -05:00
queries UI: Add ability to run scripts on batches of hosts (#28563) 2025-04-28 16:32:41 -07:00
QueryFrequencyIndicator Fleet UI: Tooltip shows dynamically on truncated text only (#20420) 2024-07-15 12:08:26 -04:00
Sandbox Fleet UI: Fix several team ids that were dropping in certain flows (#26590) 2025-02-27 10:53:34 -05:00
SectionHeader Fleet UI: Align update text baseline with neighboring text (#25298) 2025-01-09 15:01:09 -05:00
side_panels Fleet UI: Updates to dropdown selected states (#25635) 2025-01-22 10:22:59 -05:00
SidePanelContent [small unreleased bug] Fleet UI: Fix Show schema button location (#18284) 2024-04-17 13:48:48 -04:00
Spinner Fleet UI: New Dashboard host count cards (+ their responsiveness to 320px) (#25694) 2025-01-29 15:15:49 -05:00
SQLEditor Drop a few more font size overrides (#30168) 2025-06-19 22:16:39 -05:00
StackedWhiteBoxes Fleet UI: 2FA (#24442) 2024-12-05 15:54:43 -05:00
StatusIndicator UI - Fix another (less) flakey frontend test (#24110) 2024-11-25 10:28:58 -08:00
StatusIndicatorWithIcon UI: Add ability to run a script on all hosts that match a set of supported filters; Add UI to view batch run summaries (#29025) 2025-05-22 16:45:43 -07:00
TableContainer FE: Cleanup lint warnings (#32086) 2025-08-21 16:21:45 -05:00
TabNav Fleet UI: Fix host details > software vuln filter z index issue (#28655) 2025-05-01 09:19:22 -04:00
TabText Fleet UI: Clean up TabNav and TargetChipSelector components (#26256) 2025-02-27 10:48:08 -05:00
Tag Feat UI creat policies fleet apps title details (#23972) 2024-11-26 17:21:00 -05:00
TargetLabelSelector Add ability to target labels on policies (#27599) 2025-04-02 16:31:03 -05:00
TargetsInput UI: Labels by IdP (#30368) 2025-06-30 10:05:03 -07:00
TeamsDropdown UI: Allow editing the name and team of a "Save as new" query (#30544) 2025-07-03 13:11:06 -07:00
TeamsHeader Fleet UI: No team view for software pages (#20641) 2024-07-30 13:20:13 -04:00
Textarea Fleet UI: Add textarea variant 'code' and apply to various modals (#27930) 2025-04-10 11:25:28 -04:00
TooltipTruncatedText UI: New side nav styles, abstractions (#30568) 2025-07-07 08:29:09 -07:00
TooltipWrapper Fleet UI: Host software followup (#30205) 2025-06-23 11:09:20 -04:00
top_nav UI: User menu- restore 2 dividers, remove border radius (#29376) 2025-05-22 10:19:38 -07:00
TurnOnMdmMessage FE: Button renaming, better storybook view, remove unused code (#28245) 2025-04-16 09:56:09 -04:00
ViewAllHostsLink My device page: Fix 'show details' to open software details modal (#26771) 2025-03-03 16:21:51 -05:00
YamlAce UI - GitOps mode, part 2 (#26509) 2025-02-21 12:22:08 -08:00
generate Create UI component generator (#11644) 2023-05-11 12:00:27 -07:00