Commit Graph

2406 Commits

Author SHA1 Message Date
Gabriel Hernandez
66f5c34288
show error messages in flash message when wiping (#17245)
quick change to show the error message when wiping fails
2024-02-28 17:34:54 +00:00
Gabriel Hernandez
b692d7fa05 Merge branch 'main' into feat-mdm-wipe-host 2024-02-28 11:54:45 +00:00
RachelElysia
57c3ec2ca5
[unreleased bug] Fleet UI: exploit not exploited key for filtering vulns (#17176) 2024-02-27 09:33:13 -05:00
Gabriel Hernandez
5d20ee85fc
UI for wiping a host (#16874)
# Checklist for submitter

add ability in the UI to wipe a host managed by the fleet mdm. This
includes:

**new wipe host action dropdown option:**


![image](https://github.com/fleetdm/fleet/assets/1153709/a5c01e45-d494-4762-8504-1e1963093809)

**new wipe modal to initiate wiping a host:**


![image](https://github.com/fleetdm/fleet/assets/1153709/829c8dfb-a60f-427b-b6b8-2804924c0b71)

**wipe and wiping host status tags: **


![image](https://github.com/fleetdm/fleet/assets/1153709/de947160-7273-409d-bcfd-c219e887bb9d)


![image](https://github.com/fleetdm/fleet/assets/1153709/2a13e79a-2bcd-4aa5-b15f-5bb57348d191)

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
- [x] Manual QA for all new/changed functionality
2024-02-26 14:26:30 +00:00
Jacob Shandling
f18786b822
UI – handle missing vuln.severity (#17143) 2024-02-23 17:33:24 -06:00
RachelElysia
67cff18106
[unreleased bug] Fleet UI: Remove stack table controls on vulnerabili… (#17130) 2024-02-23 16:02:54 -05:00
RachelElysia
22bcc6cce7
[unreleased bug] Fleet UI: Button container min-width = max-content (#17128) 2024-02-23 16:02:33 -05:00
Victor Lyuboslavsky
64e76f6f10
15919 vulnerabilities page (#17047)
#15919 

This is a feature branch. All PRs into this branch have already been
reviewed.
2024-02-23 11:00:31 -06:00
RachelElysia
2a6e94a55e
Frontend tech debt: Cleanup {} around strings (#16592) 2024-02-23 09:57:18 -05:00
Victor Lyuboslavsky
9e83339f3d
Merge branch 'main' into 15919-vulnerabilities-page 2024-02-22 16:27:15 -06:00
Gabriel Hernandez
2c383a060f
Fix UI software versions and os initial loading state (#16927)
relates to #16854

This fixes the inital loading state in the UI for the software versions
and os tables.

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
- [x] Manual QA for all new/changed functionality
2024-02-22 16:54:32 +00:00
RachelElysia
0d7c7324b1
Fleet UI: Update queries and policies page descriptions (#17080) 2024-02-22 11:06:29 -05:00
Sarah Gillespie
dfa8695dd5
Fix UI styling of loading state for automatic enrollment settings page (#16959) 2024-02-22 10:01:04 -06:00
RachelElysia
8f29a024ee
Fleet UI: Update empty policy states (#17030) 2024-02-22 10:31:49 -05:00
RachelElysia
20d6a1bc19
Fleet UI: Rename user settings/profile page to account page (#17032) 2024-02-22 10:31:16 -05:00
RachelElysia
5223e8b2a2
[Released bug] Fleet UI: Update policy count on deletion of policies (#17037) 2024-02-22 09:05:49 -05:00
RachelElysia
ff5748fd8f
Fleet UI: Move show query button in query report (#17044) 2024-02-22 09:05:02 -05:00
RachelElysia
bdceb29559
Fleet UI: Rename team modal aptly named rename team (#17026) 2024-02-22 09:02:58 -05:00
Gabriel Hernandez
7e3c0ef419
make os updates take up full width of the viewport (#16921)
relates to #16763

makes os updates page take up the full width of the viewport

- [ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Manual QA for all new/changed functionality
2024-02-21 19:01:11 +00:00
Gabriel Hernandez
9af2a262cb
change delete host modal and move pluralize util (#16918)
changes the delete host modal copy and moves pluralize to live with
other string utils


![image](https://github.com/fleetdm/fleet/assets/1153709/8b596a7e-3535-4d65-a368-5f301921d256)

- [x] Manual QA for all new/changed functionality
2024-02-21 19:01:01 +00:00
Jacob Shandling
1cf7362968 Merge branch 'main' into 15919-vulnerabilities-page 2024-02-21 10:58:58 -08:00
RachelElysia
a34863fea0
Fleet UI: Update page descriptions styling (#17001) 2024-02-21 13:37:43 -05:00
RachelElysia
0aa187cbca
Fleet UI: Set up flow breadcrumbs refactor (#16905) 2024-02-21 13:37:29 -05:00
Jacob Shandling
9d7966ac5f
handle either 403 or 404 on SW details pages (#17017)
Update per
https://github.com/fleetdm/fleet/issues/16948#issuecomment-1955239845

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-02-20 15:44:47 -08:00
Jacob Shandling
6c24f1b447
uncomment api calls (#17016)
uncomment real API calls

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-02-20 14:42:51 -08:00
Jacob Shandling
31cd1e89d3
UI – Uncover the "Done" button on Add hosts > advanced > plain osquery (#17002)
## –> #16998 
<img width="966" alt="Screenshot 2024-02-20 at 11 23 20 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/2d15afe2-acfa-4e50-9877-eace26cbb3e2">


- [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-02-20 11:49:34 -08:00
Sarah Gillespie
eaa5c8bf56
Fix unreleased bug in host summary UI (#16999) 2024-02-20 12:47:37 -06:00
Jacob Shandling
436e900d62
UI – update 4 Software > details pages with desired empty state for 404 responses (#16944)
## Addresses #16948

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-02-20 10:28:16 -08:00
Jacob Shandling
9e3f36c60c
UI – Fix alignment of empty states on 2 Software details pages (#16969)
## Addresses #16942 
- Disable header on empty table
- make vertical margin even
- also addresses same issue on Software version details tables
<img width="1912" alt="Screenshot 2024-02-19 at 1 56 34 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/8605a7a8-5538-407e-94ba-6e3ee33aefa5">

- [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-02-19 14:51:32 -08:00
Jacob Shandling
4df1159d75
UI – Apply missing truncation and overflow styles to SW OS table (#16971)
## –> #16941 

<img width="968" alt="Screenshot 2024-02-19 at 2 20 12 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/461d7eab-57ac-45e9-aa36-1310118caacd">


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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-02-19 14:50:36 -08:00
Gabriel Hernandez
e261bb5eb7
render the windows disk encryption error details message as a plain text (#16936)
relates to #16417

renders the Windows host disk encryption error messages as standard
text. These messages do not follow the expected format (e.g.
`/foo/bar/baz: status 200`), so we will just render them as standard
text.


![image](https://github.com/fleetdm/fleet/assets/1153709/7ed1ce39-56b0-4be2-885a-3e73af31fc9f)

- [x] Manual QA for all new/changed functionality
2024-02-19 17:08:39 -03:00
Jacob Shandling
443ec3c622
Update no-hosts empty states copy (#16943)
Simple copy updates per
https://github.com/fleetdm/fleet/pull/16908#discussion_r1493009227

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-02-16 14:22:01 -08:00
Jacob Shandling
5ec1c2c4bf
Software page, details empty states when no hosts are affected (#16908)
## Addresses #16870 


![Screenshot-2024-02-15-at-50759PM(1)](https://github.com/fleetdm/fleet/assets/61553566/9ced47ea-6bbc-4ea6-b31f-26b3ea01a135)

## Checklist for submitter
- [x] Manual QA

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-02-16 13:50:25 -08:00
Noah Talerman
50edcc07d0
Docs: Windows OS updates (#16270)
Docs for the "Windows OS updates" (#11951) user story

- Update "macOS updates" doc page to cross-platform "OS updates" page
- Update pricing page
- Update copy in the UI to clarify behavior of Windows updates

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
Co-authored-by: Rachael Shaw <r@rachael.wtf>
2024-02-16 14:30:00 -06:00
Jacob Shandling
cd895c45d6
UI – add correct breakpoint to SoftwareTable (#16911)
## Addresses #16910 
- This table's controls now break at the same breakpoint as those of
other tables, preventing these style issues:
https://www.loom.com/share/57144ff9703e4eb5a57b1af179a55923


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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-02-16 07:59:42 -08:00
Jacob Shandling
2cf3b52424
UI – ensure checkbox ticks in hidden modals are also hidden (#16913)
## Addresses #16912

![Screenshot 2024-02-15 at 10 25
47 PM](https://github.com/fleetdm/fleet/assets/61553566/cdfc7677-bf28-4d1f-9bdd-0caa3dd1a837)


- [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-02-16 07:58:27 -08:00
Jacob Shandling
dd9a755f69
UI – Prevent loss of focus on Software titles table search field (#16917)
## Addresses #16752 


https://www.loom.com/share/10553b9c763541bfbda3da415d72afea?sid=68aa17d0-6868-4a9b-9072-d1079a2ce95e

- [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-02-16 07:56:56 -08:00
Jahziel Villasana-Espinoza
05cfc3a364
Revert "fix: add observer and observer plus to lock/unlock permissions (#16886)" (#16924)
This reverts commit bd66898d38.

# 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

---------

Co-authored-by: Gabriel Hernandez <ghernandez345@gmail.com>
2024-02-16 10:52:14 -05:00
Gabriel Hernandez
119d1df76f
add permission check to software titles/versions endpoints (#16561)
relates to #16052

This adds a team permission check the `GET software/titles/:id`
endpoint. If the user should not be able to get the software title if it
is not on a host that is on the same team as the user (e.g. software
title 1 is on host 1, which is on team 1. A user who is only on team 2
should get a 403 response)

The UI is also updated to show the access denied error page when the we
receive a 403 response for the software title

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

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#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

---------

Co-authored-by: Roberto Dip <dip.jesusr@gmail.com>
Co-authored-by: Roberto Dip <me@roperzh.com>
2024-02-15 17:22:27 -03:00
RachelElysia
0f727001d7
[Styling released bugs] Fleet UI: Consistent capitalization, consistent empty state header (#16883) 2024-02-15 13:32:55 -05:00
RachelElysia
c3ec182ba6
[Released bug] Fleet UI: Fix my device page last restarted date (#16879) 2024-02-15 13:31:44 -05:00
RachelElysia
edb70c955d
[Released bug] Fleet UI: Fix software vulns crashing page (#16890) 2024-02-15 13:29:18 -05:00
RachelElysia
19e9d7924b FE Vuln feature: Vuln feat error handling (#16847)
## Issue
Iteration of #16786

## Description
- [x] Add missed team param to OS version page Name links
- [x] Update error handling on details pages to use `useErrorHandling`
like other pages of UI

## Screen recording
- Missed team param added
- Error handling on pages


# 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. -->

- [ ] Manual QA for all new/changed functionality
2024-02-15 10:35:58 -07:00
RachelElysia
de40fa6988 Fleet UI Software pages: Add team id params onto various software detail pages (#16757) 2024-02-15 10:35:58 -07:00
Jacob Shandling
f0c4dd854b Add teams features to Vuln details page (#16761)
## Addresses #16758 

- Add Teams functionality to the Vulnerability details page
  - Premium only
  -  All links from page include team_id query param
      - To hosts page
      - To OS details pages
      - To SW version details pages
  - API call includes `team_id` query param 
  - Teams header
- If user only has access to one team, just shows the teamname (no
dropdown)
    -  Otherwise, Dropdown with team options
    - Includes "All teams," but not "No teams"
- Add empty state when ~both vulnerable OS versions and SW versions are
empty~ affected hosts === 0

<img width="1657" alt="Screenshot 2024-02-12 at 4 47 36 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/4f0bb856-57c4-4905-b82b-b00dac6a8306">
<img width="1552" alt="Screenshot 2024-02-12 at 4 45 42 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/45d6bbb5-0b31-46df-a715-7fa176029a1d">
<img width="1552" alt="Screenshot 2024-02-12 at 4 45 47 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/de6c68a6-aaa4-4637-998c-569b4d189433">

---------
Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-02-15 10:35:58 -07:00
RachelElysia
4f32ba3235 Vuln FE Iteration: Free columns, clickable rows, export host call update (#16749) 2024-02-15 10:35:58 -07:00
Jacob Shandling
c387054af1 UI – Add row select to vuln details tables (#16748)
## Follow-up for new specs to #16472 

- Make rows in both tables clickable
<img width="1277" alt="Screenshot 2024-02-12 at 12 21 07 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/4392b514-6144-4b00-bcd6-1ce833b14185">
<img width="1277" alt="Screenshot 2024-02-12 at 12 21 11 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/1ce6ecb8-cf26-41bb-a725-d078a60658b1">

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-02-15 10:35:43 -07:00
RachelElysia
6addcd5984 Fix API call interface breaking build (#16744) 2024-02-15 10:35:43 -07:00
RachelElysia
add6763787 Fleet UI: /software/vulnerabilities page (#16676) 2024-02-15 10:35:43 -07:00
RachelElysia
afb4b872b0 Frontend: Move probabilityofexploit to own component (#16667) 2024-02-15 10:35:43 -07:00