Commit graph

969 commits

Author SHA1 Message Date
jacobshandling
ea9b5ba776
UI – 11/26 Disk encryption spec updates (#24175)
## #24173 

<img width="1390" alt="Screenshot 2024-11-26 at 11 08 25 AM"
src="https://github.com/user-attachments/assets/3afc7031-2bac-4cc9-ac8d-e47390a0ef93">
<img width="1392" alt="Screenshot 2024-11-26 at 10 45 11 AM"
src="https://github.com/user-attachments/assets/2eccc992-e0bd-4c5c-b001-75cde60317b5">

- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-11-26 11:29:50 -08:00
jacobshandling
ec7bb8be09
UI - Fix DUP banners for Fedora disk encryption (#24153)
## Addresses unreleased bug where banners were not functioning for
Fedora host

<img width="1464" alt="Screenshot 2024-11-25 at 4 39 05 PM"
src="https://github.com/user-attachments/assets/78c3adee-ff45-4236-b1b1-299d79575cb6">


- [x] Manual QA for all new/changed functionality

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-11-26 10:09:57 -08:00
RachelElysia
b45aa4761d
Fleet UI: Add more description to delete host modal (#24089) 2024-11-25 08:57:27 -05:00
RachelElysia
a6809039c8
FE: Fix flaky host summary tooltip test (#24029)
Let's see if this is any better

- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality

`test-js (ubuntu-latest)` SuccessCount / RunCount:
5/5 🎉 

___
after merging `main`:
`test-js (ubuntu-latest)` SuccessCount / RunCount:
5/5 
__

10/10 total 🎉🎉

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-11-22 15:34:51 -08:00
Luke Heath
3b64f10a77
Comment out flakey frontend test (#24105) 2024-11-22 17:09:35 -06:00
jacobshandling
4a7654fc3d
UI - remove an inaccurate comment (#24022)
Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-11-21 09:59:34 -08:00
jacobshandling
830ff9dea5
UI - fix a small issue in the device user page banner logic, add test (#24001)
**Bug:**
<img width="1399" alt="Screenshot 2024-11-20 at 4 43 19 PM"
src="https://github.com/user-attachments/assets/31a3fd0e-3eda-461b-9c56-d4e821f8592f">


**Fixed:**
<img width="1391" alt="Screenshot 2024-11-20 at 4 44 48 PM"
src="https://github.com/user-attachments/assets/257b080a-d83e-4317-b3da-91922ed423a0">


- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-11-21 09:29:24 -08:00
jacobshandling
096d67dd5a
Linux disk encryption: frontend changes, backend missing private key errors, remove disk encryption endpoints dependence on MDM being enabled (#23714)
## Addresses #22702,  #23713, #23756, #23746, #23747, and #23876
_-Note that much of this code as is will render as expected only once
integrated with the backend or if manipulated manually for testing
purposes_

**Frontend**:
- Update banners on my device page, tests
- Build new logic for calling endpoint to trigger linux key escrow on
clicking `Create key`
- Add `CreateLinuxKeyModal` to inform user of next steps after clicking
`Create key`
- Update banners on host details page, tests
- Update the Controls > OS settings section with new logic related to
linux disk encryption
- Expect and include counts of Linux hosts in aggregate disk encryption
stats UI
- Add "Linux" column to the disk encryption table
- Show disk encryption related UI for supported Linux platforms
- TODO: confirm platform string matching functionality in manual e2e
testing
- Expand capabilities of `SectionHeader` component, apply to new UI
- Flash "missing private key" error, with clickable link, when trying to
update disk encryption enabled while no server private key is present.
- TODO: QA this once other endpoints on Controls > Disk encryption are
enabled even when MDM not turned on
- Update Disk encryption key modal copy


-Other TODO:
  - Confirm when integrated with API:
    - Aggregate disk encryption counts
    - Disk encryption table Linux column
    - Show disk encryption key action on host details page when expected
    - Opens Disk encryption key modal, displays key as expected
  
**Backend**:
- For "No team" and teams, error when trying to update disk encryption
enabled while no server private key is present.
- Remove requirement of mdm being enabled for use of various endpoints
related to Linux disk encryption
- Update tests


_________
**Host details and my device page banners**

![banners](https://github.com/user-attachments/assets/b76fbfbd-0969-40eb-b8b1-9fd0d4fd0f4f)

**Create key modal**
<img width="1799" alt="create-key-modal"
src="https://github.com/user-attachments/assets/81a55ccb-b6b9-4eb6-b2ff-a463c60724c0">

**Enabling disk encryption**

![turning-on-enforcement](https://github.com/user-attachments/assets/005010b9-2238-46f8-9579-f07823898a78)

**Disk encryption: Fleet free**
<img width="1912" alt="free"
src="https://github.com/user-attachments/assets/9f9cace3-8955-47c2-87d9-24ff9387ac1a">

**Custom settings: turn on MDM**
<img width="1912" alt="turn on mdm"
src="https://github.com/user-attachments/assets/4d3ad47b-4035-4d93-86f0-dc2691b38bb4">

**Device status indicators**

![host-status-indicators](https://github.com/user-attachments/assets/5fc72c1e-816b-45b3-a650-5c1fcc48f09e)

**Encryption key action and modal**

![de-key-action-and-modal](https://github.com/user-attachments/assets/632f7b2c-c07e-4e30-87ef-e6437ae42a78)



- [x] Changes file added for user-visible changes in `changes/`
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
  - [ ] Full e2e testing to do when integrated with backend

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
Co-authored-by: Ian Littman <iansltx@gmail.com>
2024-11-20 11:58:47 -08:00
Jahziel Villasana-Espinoza
59abd8b1d0
fix: update logic for filtering VPP apps based on host MDM status (#23656)
> Related issue: #23247 

# Checklist for submitter

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

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [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/Committing-Changes.md#changes-files)
for more information.
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-11-11 14:35:05 -05:00
jacobshandling
8fe73d7efe
UI: Dismiss error flash on DUP when changing URL (#23671)
## #23669 


![ezgif-4-55897686f6](https://github.com/user-attachments/assets/20232177-d919-4a67-bfe9-d4c20c375dd3)


- [x] Changes file added for user-visible changes in `changes/`
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-11-11 10:14:49 -08:00
RachelElysia
518a3115cd
Followup: Fix run script from script details bug, clean code (#23601) 2024-11-08 09:22:49 -05:00
RachelElysia
576dcff1a7
Fleet UI: Add script content modal to UI in various places (#23461) 2024-11-06 12:48:11 -05:00
jacobshandling
dfe308f98d
Frontend - fix flakey frontend test (#23408)
Passed 5/5 runs of test-js with no flakes

- [x] Added/updated tests

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-11-05 10:16:08 -08:00
RachelElysia
2d2aa24466
Fleet UI: Hide host software filters when no software + no filters applied (#23519) 2024-11-04 21:51:08 -05:00
RachelElysia
c4ed4feb8f
Fleet UI: Fix silly truncation of table item names (#23353) 2024-10-30 13:49:46 -04:00
RachelElysia
da860c2f42
Fleet UI: Do not truncate label/platform dropdown text (#23338) 2024-10-30 12:22:27 -04:00
Sarah Gillespie
48d140145f
Update tooltips for bootstrap package install status and VPP app install status (#23178) 2024-10-29 13:36:49 -05:00
Jahziel Villasana-Espinoza
4b14f73e5b
feat: show "Fleet" as actor on setup experience activities (#23334)
> Related issue: #23310 

# Checklist for submitter

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

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Manual QA for all new/changed functionality
2024-10-29 12:01:09 -04:00
RachelElysia
2a756088f1
Fleet UI: Accessibility button actions, tabbing (#22916) 2024-10-25 11:02:52 -04:00
RachelElysia
3636fe2f79
Fleet UI: Fix select query not scrolling (#23208) 2024-10-25 09:35:13 -04:00
jacobshandling
de7c792945
Restore intended flash messages (#23152)
Addresses #23139 and #23141

- Remove a premature `return` that prevented subsequent `renderFlash`
from firing
- Fix order of `push` and subsequent `renderFlash` for correct behavior
- Check codebase for additional instances of problematic `push` calls
_after_ associated `renderFlash` calls via regex
`\renderFlash\([\s\S\n]{0,400}router\.push/`
- Misc cleanup


![ezgif-6-c49d5d0432](https://github.com/user-attachments/assets/40a96439-7647-45ec-8847-5b0c85b448aa)


- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-10-23 14:09:14 -07:00
Gabriel Hernandez
c71237daa2
add error message for host having mdm off to host details (#23080)
relates to #22041

This adds an error message when refetching a host when mdm is not turned
on for it. This was accidentally added to the My Device page, so we are
moving it to the Host details page.
2024-10-23 18:15:53 +01:00
RachelElysia
c7b4127e33
Fleet UI: Tabbing through hdp tabs and global view all host links fixed (#23101) 2024-10-23 09:24:42 -04:00
jacobshandling
d3ccb51755
UI - Improve UX of Flash messages (#22836)
## #22661 


![ezgif-6-71e48912ae](https://github.com/user-attachments/assets/01144620-0eba-48f0-9254-cc4795fde9fd)

- Update `FlashMessage` behavior to, by default, hide itself when the
user performs any URL-changing navigation
- Add `persistOnPageChange` option to `renderFlash` API and associated
notification context and reducer logic, allowing override of this
behavior on a per-call basis
- Ensure proper order of evaluation of URL changes and render flash
action dispatches on the event loop
- Clean up legacy unused "undo"-related arguments and logic
- Allow the user to click in the same horizontal dimension as a flash
message
- Other misc. cleanup and refactoring

[Demo - messages hidden on page (any URL)
change](https://www.loom.com/share/1e884b6ba11c4b59bc74f51df3690131?sid=9b53e78b-6535-4541-b676-377760366cf4)

- [x] Changes file added for user-visible changes in `changes/`,
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-10-22 10:52:20 -07:00
Gabriel Hernandez
f66b41ef37
fix for downloading manual enrolment profile when device token is expired (#23004)
relates to #22322

Makes a fix in the UI so that we show an error message when the device
token is expired and the user tried to download the mdm enrollment
profile.

**Showing error when device token is expired and tried to download mdm
enrollment profile**
https://www.loom.com/share/6306dcf851c24d5f8916ecb2498288cb


- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
- [x] Manual QA for all new/changed functionality
2024-10-18 14:43:05 +01:00
RachelElysia
9dbe04da49
Fleet UI: NDES SCEP followup (#22963) 2024-10-17 10:21:26 -04:00
RachelElysia
97ef401bea
Fleet UI: Checkbox and accessibility styling, tab through select targets (#22943) 2024-10-17 10:01:23 -04:00
RachelElysia
346ebe0d0a
Fleet UI: Close modals with no CTA, and query sidebar, using enter key (#22907) 2024-10-16 11:24:08 -04:00
Gabriel Hernandez
777c3bc342
add UI error message my device page for host having mdm turned off (#22906)
relates to #22041

Add a error message to the UI on the My device page when performing and
action requiring mdm but the host has mdm turned off.


- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
2024-10-15 17:27:24 +01:00
jacobshandling
88fe04ebdf
UI - Show installer extension in select options (#22720)
## #22656 

- Tighten software `source` and `browser` types
- Include package extensions, when present, in help text
<img width="1271" alt="Screenshot 2024-10-07 at 3 09 47 PM"
src="https://github.com/user-attachments/assets/d401498b-41d0-4afe-8bca-4e52b821939c">

- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-10-08 12:19:32 -07:00
jacobshandling
4c661acb19
UI - Limit width of query selection options (#22722)
## #22660 
<img width="1271" alt="Screenshot 2024-10-07 at 1 48 25 PM"
src="https://github.com/user-attachments/assets/5621b0fc-62b5-40c7-8f94-150bb2bf49fb">
- [x] Manual QA for all new/changed functionality

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-10-07 15:02:05 -07:00
jacobshandling
21175ea706
Render unsupported screen size on My device page (#22643)
## #22490 

- Componentize relevant UI
- Apply to both core layout and My device page
<img width="876" alt="Screenshot 2024-10-03 at 4 28 18 PM"
src="https://github.com/user-attachments/assets/931ccd78-e525-43d9-8a5d-169e2bf6624b">

- [x] Changes file added for user-visible changes in `changes/`,
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-10-04 10:25:08 -07:00
RachelElysia
d056f04dd7
Fleet UI: Label display names fix (#22641) 2024-10-04 10:17:25 -07:00
RachelElysia
119ca54a93
Fleet UI: Do not wrap host details dropdown options (#22624) 2024-10-03 16:08:23 -07:00
RachelElysia
3d43aeb563
Fleet UI: Add tooltips to battery condition (#22550) 2024-10-03 08:05:36 -07:00
Rachael Shaw
f8f021878a
Fix capitalization in "My device" info modal (#22489)
Update button text: "Ok" ➡️ "OK"
2024-09-27 17:32:32 -05:00
jacobshandling
cea4252f04
18354 lock wipe message updates (#22447)
## #18354

- Update 3 success messages

- [x] Changes file added for user-visible changes in `changes/`,
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-09-27 09:55:50 -07:00
RachelElysia
e68dafe3a7
Fleet UI: Fix host software filter dropdown to persist other changes (#22392) 2024-09-26 07:42:53 -07:00
RachelElysia
7fa51b6c46
Fleet UI: Make delete host modal generic for ABM/fleetd hosts deletion (#22394) 2024-09-25 11:44:13 -07:00
Roberto Dip
adf3ad6214
allow to install VPP apps without scripts (#22365)
for #22352

# Checklist for submitter

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

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-09-25 11:14:51 -03:00
RachelElysia
31ac40828f
Fleet UI: Hide redundant built in label filtering (#22308) 2024-09-24 09:05:39 -07:00
RachelElysia
57abc0f107
Fleet UI: Fix self-service icon from cutting off (#22310) 2024-09-24 09:04:10 -07:00
RachelElysia
3b001ea07c
Fleet UI: Host status dropdown styling fixes (#22314) 2024-09-24 09:02:48 -07:00
RachelElysia
f83260a8f2
Fleet UI: Host details > about info uses less columns at small widths (#22257) 2024-09-23 09:35:34 -07:00
RachelElysia
d7594d1f1d
Fleet UI: Disable install/uninstall actions if scripts are disabled (#22240) 2024-09-20 13:19:43 -07:00
Ian Littman
f7fab000f8
Pass through uninstall error messages from backend (#22208)
# Checklist for submitter

- [x] Manual QA for all new/changed functionality

[See
Slack](https://fleetdm.slack.com/archives/C01EZVBHFHU/p1726605318985819?thread_ts=1726588126.583269&cid=C01EZVBHFHU)
from @noahtalerman for context
2024-09-18 11:22:22 -05:00
RachelElysia
0fe6b6c6e1
Fleet UI: Host filter styling/click bug fixes (#22147) 2024-09-17 10:10:34 -07:00
jacobshandling
b93d2629d7
UI - Support software status filter for 'No teams' on the hosts page (#22143)
## #22136 


![ezgif-4-00c412809f](https://github.com/user-attachments/assets/5c22cc43-8182-4769-b0b3-4d34fa427488)

- [x] Changes file added for user-visible changes in `changes/`
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-09-17 12:01:02 -04:00
jacobshandling
c0ac242e11
UI - Host filters bug (#22132)
## #22088 

- Hosts page filters were using the same type that had been updated with
additional, more granular options, but the filters for that page still
only support the aggregate options "install", "pending" or "failed".
Updated hosts page to use new type `SoftwareAggregateStatus` to maintain
functionality.
- Note that this does _not_ fix this related but distinct _released_
bug: https://github.com/fleetdm/fleet/issues/22136

- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-09-16 17:24:09 -04:00
Roberto Dip
519ee09117
add new changes for BYOD and fix issues (#22079)
for #21019 

# Checklist for submitter

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

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-09-13 14:53:05 -03:00