Commit Graph

2347 Commits

Author SHA1 Message Date
Victor Lyuboslavsky
a40ee0b258
Web UI no longer gives an error when deleting a large number of hosts. (#14896)
After 30 seconds, the 'Delete host' modal closes and the delete
operation continues in the background. The following text has been added
to the modal when deleting 500 or more hosts: "When deleting a large
volume of hosts, it may take some time for this change to be reflected
in the UI."

#14097 

# 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/` 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
- [x] Backend test added
2023-11-03 12:15:37 -05:00
Gabriel Hernandez
76059564a9
Fix UI abm message link font (#14927)
quick fix to update abm expiry message text and link to same size as
other warning messages
2023-11-03 16:14:02 +00:00
Gabriel Hernandez
7b3d3e7a18
update ABM expiry message to match font size of other warning messages (#14926)
quick fix to font size to match other warning message font sizes
2023-11-03 16:05:30 +00:00
Jacob Shandling
316f2d1547
UI - fix Host details offline status indicator color (#14917)
## Addresses #14358
Match offline indicator color on host details summary to those in the
Manage hosts table:
<img width="1242" alt="Screenshot 2023-11-02 at 10 14 47 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/f8264ce2-958c-4344-af0e-cb7ab2f46330">

<img width="1247" alt="Screenshot 2023-11-02 at 10 17 10 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/6e69db56-42b8-4d03-8fb1-6d73aae864b9">

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

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-11-03 08:33:22 -07:00
Jacob Shandling
36be3d14a1
UI – Refrain from clearing the auth_token and redirecting to login for errors specific to this scenario (#14911)
## Addresses #12968


https://www.loom.com/share/37aaaa36936b47079ff3088c3430e36b?sid=c249306b-a32e-4a33-be83-aae2d13c98aa

- Improve the implementation of error reporting by `sendRequest` to
handle when AxiosError information is being provided in different fields
(`response`, `message`, `code`, or nowhere), as opposed to relying on
only the `response` field, which is empty in some (including this)
situations
- Using the more fine-grained reporting above, exempt `Request aborted`
errors when fetching a user's data, which is what occurs here, from
triggering a token clear and login page redirect.
- Use dedicated token handling utilities everywhere

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-11-03 08:32:41 -07:00
Gabriel Hernandez
82e576ef59
fix view all host link chevron icon (#14924)
Fixes chevron icon for view all host link component


- [x] Manual QA for all new/changed functionality
2023-11-03 15:22:17 +00:00
RachelElysia
bdb2c4c5b7
Fleet UI: Observer+ can run policies in the UI, update docs accordingly (#14796) 2023-11-03 07:42:11 -04:00
RachelElysia
2a22c40345
Fleet UI: Icon alignment (#14860) 2023-11-03 07:41:13 -04:00
RachelElysia
f0d3760784
Fleet UI: Changing pages, filters, or search query clears checkbox selections (#14902) 2023-11-03 07:40:19 -04:00
RachelElysia
c4e70ecb5e
Fleet UI: Update placeholder and hint text for creating a query and policy (#14908) 2023-11-03 07:39:48 -04:00
Gabriel Hernandez
992eb17cf8
fix clipping svg for pdf graphic on chrome (#14892)
related to #14691

fix pdf graphic svg clipping on chrome

**before:**


![image](https://github.com/fleetdm/fleet/assets/1153709/46d80349-ea42-4c8a-9d66-fc1d8b7a1bb5)

**after:**


![image](https://github.com/fleetdm/fleet/assets/1153709/d32f73d2-33ea-4c2a-a25a-415e5735ff2c)

- [x] Manual QA for all new/changed functionality
2023-11-02 15:28:58 +00:00
RachelElysia
487b216a5f
Fleet UI: Align number in host target count when selecting targets (#14849) 2023-11-01 13:03:04 -04:00
RachelElysia
9ad0962de2
Fleet UI: Disable all live query/policy buttons when globally disabled (#14821) 2023-11-01 09:25:39 -04:00
Marko Lisica
8162d052bf
Icons improvements (making frontend consistent with Figma component library) (#14185)
# Checklist for submitter

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

- [ ] Manual QA for all new/changed functionality

---------

Co-authored-by: Gabriel Hernandez <ghernandez345@gmail.com>
2023-10-31 16:06:38 +00:00
Gabriel Hernandez
2504de92cd
fix team changing in dropdown when selecting host in a team (#14822)
relates to #14418

This fixes an issue where the team dropdown would change when a host
that was on a team is selected.

We fixed this by passing the host team into the host actions dropdown
component instead of changing the global current team context attribute.

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2023-10-31 16:03:30 +00:00
RachelElysia
66a982a9ae
Fleet UI: Various team users save inherited queries to current team (#14695) 2023-10-31 11:46:28 -04:00
RachelElysia
d4092f121c
Fleet UI: Remove creating an operating system policy in the UI (#14799) 2023-10-31 09:19:57 -04:00
Gabriel Hernandez
b61f2b1964
fix windows TOS page EULA to fix within narrow viewports (#14773)
relates to #13880

This fixes the eula page on the windows TOS page. It now fits correctly
in narrow viewports.

**before**:


![image](https://github.com/fleetdm/fleet/assets/1153709/79e4deeb-3599-4c13-b74e-4b019e5832b2)

**after**


![image](https://github.com/fleetdm/fleet/assets/1153709/bc36b38f-0042-4f11-b9f3-28c5ebada017)


- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
- [x] Manual QA for all new/changed functionality
2023-10-30 16:03:26 +00:00
Gabriel Hernandez
019377368d
update copy for ABM terms banner message (#14774)
relates to #13012

Updates the copy of the ABM terms banner message to reflect that Apple
may take a long time to update that the terms have been accepted.

- [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] Manual QA for all new/changed functionality
2023-10-27 18:06:10 +01:00
RachelElysia
0b73f43ebd
Fleet UI: Add usage statistics always on for premium users to to app settings page (#14604) 2023-10-27 13:05:06 -04:00
RachelElysia
4a9ef5ae07
Fleet UI: Surface policy resolution to observers in UI (#14574) 2023-10-27 13:04:29 -04:00
Gabriel Hernandez
4d7410d7ae
Fixs multiple banners on host details page when we only want to show ABM expired banner (#14772)
relates to #13010

This fixes the issue where we only want the user to see the ABM banner
on the Host Details page.

We've pulled out the rendering logic of the banners into its own
component and suppress the other banners if the ABM expired banner is
already showing.

- [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] Manual QA for all new/changed functionality
2023-10-27 16:05:19 +01:00
Roberto Dip
3869b41041
prevent a bug preventing .mobileconfig uploads in Linux/Windows (#14716)
For #14056, per the [mdn web
docs](https://developer.mozilla.org/en-US/docs/Web/API/File/type)

> Note: Based on the current implementation, browsers won't actually
> read the bytestream of a file to determine its media type. It is
assumed
> based on the file extension; a PNG image file renamed to .txt would
give
> "text/plain" and not "image/png". Moreover, file.type is generally
> reliable only for common file types like images, HTML documents, audio
> and video. Uncommon file extensions would return an empty string.
Client
> configuration (for instance, the Windows Registry) may result in
> unexpected values even for common types. Developers are advised not to
> rely on this property as a sole validation scheme.
2023-10-26 18:20:24 -03:00
RachelElysia
06aec6401f
Fleet UI: Manage queries page uses URL params as source of truth for table and inherited table views (#14750) 2023-10-26 13:35:55 -04:00
gillespi314
e6d4ed5f7a
Route to query report page after creating new query (#14682) 2023-10-23 10:41:02 -05:00
RachelElysia
e75f413d04
Fleet UI: [styling bugs] Scrollbars attack pt. 2 and unreleased checkbox bug introduced (#14630) 2023-10-18 17:04:08 -04:00
gillespi314
563699d54f
Update host details UI for OS settings to display Windows disk encryption error detail (#14625) 2023-10-18 16:02:15 -05:00
RachelElysia
c84ef31ed9
Fleet UI: [bug fix for release] Team admin and team maintainer can edit query (#14603) 2023-10-18 11:03:55 -04:00
Noah Talerman
4197b5a052
Fix typo (#14605) 2023-10-17 17:35:25 -04:00
RachelElysia
32019d4219
Fleet UI: [Unreleased bug] Observer/Observer+ trying to reach edit query page fix redirects to query report page (#14582) 2023-10-16 16:15:01 -04:00
gillespi314
71f67b845f
Update UI helper function to work with new HumanTimeDiffWithDateTip component (#14573) 2023-10-16 11:48:03 -05:00
RachelElysia
b3b8e5b586
Fleet UI: Interim fix for tooltip not being cut off by table edge (#14119) 2023-10-16 11:46:25 -04:00
Jordan Wright
39e9cdd7b1
Fix certain datetimes to display "Never" when they are prior to Fleet's launch date (#14487)
# Checklist for submitter

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

> [!NOTE]  
> For the reviewer, you won't hurt my feelings at all if you have a
better implementation in mind and want to close this out! I'll be
upfront that I'm much more of a Go dev than a frontend dev. I'm just
using this issue as an opportunity to become more familiar with Fleet,
since I'm a fan of what y'all are doing and have been looking for a
project to spend some spare-time contributing to 😄
>
> You should also have edit access to this branch, so feel free to
commandeer it as you see fit.

# Summary

This PR aims to fix a regression identified in #14353 in which certain
"zero" datetimes are displayed as "54 years ago" instead of the
preferred "Never". The "zero" datetimes are commonly used [as a proxy to
indicate](5cb8051a40/server/datastore/mysql/hosts.go (L1649))
that a date wasn't set, e.g. when a host hasn't had its details fetched
yet.

We don't want to apply this treatment to _all_ datetimes, since some
(like vulnerability data) have valid dates before Fleet was created.

To support both use cases, I:

* Added an optional boolean, `cutoffBeforeFleetLaunch`, to indicate that
dates should be cutoff prior to the hardcoded Fleet launch date. This is
set to `false` in `HumanTimeDiffWithDateTip` for
backwards-compatibility.
* Created `HumanTimeDiffWithFleetLaunchCutoff` which is a drop-in
replacement for `HumanTimeDiffWithDateTip` that sets the
`cutoffBeforeFleetLaunch` flag to `true`.

I then used `HumanTimeDiffWithFleetLaunchCutoff` in the various host
related fields I could find. It's possible I missed some, so please
double-check me! I'm still getting my bearings on the codebase.

Here's a screenshot showing the host table with a host that I had
deleted and waited to appear again:

<img width="1381" alt="Screenshot 2023-10-11 at 11 27 29 PM"
src="https://github.com/fleetdm/fleet/assets/1317288/3cd23879-3233-409f-91a0-8b5e02d09deb">

You may find it helpful to review this commit-by-commit.

Closes #14353
2023-10-16 16:43:47 +01:00
RachelElysia
cf6f226bd5
Fleet UI: [unreleased bug] Fix online hosts percentage string that wasn't rendering (#14568) 2023-10-16 10:55:47 -04:00
Jacob Shandling
53b08bfa99
UI: Fix edit query form padding; align all Fleet checkboxes with their text (#14545)
## Addresses #14535 

- Fix the issue
- Dedupe and modularize styles while at it

**Left: fix | Right: bug**
<img width="1750" alt="Screenshot 2023-10-13 at 11 27 31 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/f13daf10-977c-45f1-bfcc-c294551ca18c">

- Also fix global alignment issue with checkboxes and their text:

**Left: fix | Right: bug**
<img width="868" alt="Screenshot 2023-10-13 at 11 46 42 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/33e92582-65b8-4c5d-aa46-45f8730ef439">

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-10-13 16:07:53 -07:00
Jordan Wright
bcb70fad41
Fleet UI: Fix agent options link (#14403) 2023-10-13 14:34:00 -04:00
Jacob Shandling
defd64d806
Check interval when determining if 'collecting results' (#14523)
## Addresses #14515 

- Include a check that a query's interval is set to something other than
never when deciding whether to display "Collecting results"

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-10-13 10:27:38 -07:00
Gabriel Hernandez
8950d46cbc
Fix script details modal UI bug (#14527)
fix a UI bug of the script details modal rendering incorrectly under the
top nav.

**Before:**


![image](https://github.com/fleetdm/fleet/assets/1153709/07370735-c305-42da-8934-7a375f4c3359)

**After:**


![image](https://github.com/fleetdm/fleet/assets/1153709/0a3cae2c-4cdb-4b72-8941-757949772993)

- [x] Manual QA for all new/changed functionality
2023-10-13 15:09:45 +01:00
Jacob Shandling
600fb401d6
Match no results tooltip text to Figma (#14516)
## Addresses [Reed's comment in
Slack](https://fleetdm.slack.com/archives/C01EZVBHFHU/p1697144038116529)
<img width="655" alt="Screenshot 2023-10-12 at 2 45 51 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/b48621a6-092a-4623-91f5-03d7749733f6">
<img width="655" alt="Screenshot 2023-10-12 at 2 47 47 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/e7844ecd-a2d8-4122-ae3e-35a4a62f45c6">
<img width="655" alt="Screenshot 2023-10-12 at 2 47 32 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/2932fe4a-6b5c-4d09-9a96-1d88c39808e9">

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-10-12 14:52:27 -07:00
Jacob Shandling
aeba3f0396
Disable edit query for o and o+ (#14514) 2023-10-12 13:45:37 -07:00
RachelElysia
eec7b439d3
Fleet UI: Add default table empty state (#14510) 2023-10-12 15:34:14 -04:00
Jacob Shandling
c5ffd58679
Polish report empty states (#14507) 2023-10-12 15:13:52 -04:00
RachelElysia
3af5b805b0
Fleet UI: Remove default states causing race conditions with empty state rendering (#14499) 2023-10-12 14:28:31 -04:00
Gabriel Hernandez
a55b346563
Fix UI typos (#14488)
typo fixes for scripts work.


- [x] Manual QA for all new/changed functionality
2023-10-12 17:05:58 +01:00
RachelElysia
2489675546
Fleet UI: [tiny bug] Autosize input does not scroll within itself (#14492) 2023-10-12 12:00:31 -04:00
RachelElysia
481a8bcff2
Fleet UI: [tiny fix] Body background color for auth pages on resize (#14489) 2023-10-12 11:58:43 -04:00
gillespi314
632e21ce55
Add OS settings filter to UI (#14412) 2023-10-12 10:57:58 -05:00
gillespi314
719e761f28
Fix unreleased UI bug in OS settings modal (#14434) 2023-10-12 10:57:39 -05:00
gillespi314
e139eb412f
Fix unreleased bug in run script UI (#14462) 2023-10-12 10:57:19 -05:00
RachelElysia
05c5af1f2c
Fleet UI: Repush changes to fix info banner again (#14490) 2023-10-12 11:56:40 -04:00
Jacob Shandling
70e0182e4d Merge branch 'main' into 7766-main-merge 2023-10-11 12:56:52 -07:00
Jacob Shandling
11e2b0b533
align Log destination; shrink underline gap (#14448)
before:
<img width="860" alt="Screenshot 2023-10-11 at 10 32 03 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/94556ce3-5f1f-437a-a370-398b39bb3ad7">

after:
<img width="860" alt="Screenshot 2023-10-11 at 10 30 26 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/b457560c-7459-414f-bb7c-be943150c9a7">

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-10-11 12:32:43 -07:00
Roberto Dip
aeb4810541
prevent input secret from overflowing (#14458)
this implements the exact same fix as the component in
`frontend/components/EnrollSecrets/SecretField/_styles.scss`

we should probably refactor the three different components we have:
`SecretField`, `InputFieldHiddenContent` and the ad-hoc component (which
has a TODO) we have inside `EnrollSecretRow`.

for now, adding the padding for #14416
2023-10-11 16:08:48 -03:00
Jacob Shandling
5aa9b80bf7
Enable correct behavior of Discard Data option on direct navigation to Edit Query page (#14437)
- Correctly sets `queryContext.lastEditedQueryDiscardData` when loading
directly from the edit page
- Preserves already working flow from the ManageQueries page


https://github.com/fleetdm/fleet/assets/61553566/193c0fd6-3585-4f36-a77a-28257f7131b2

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-10-11 09:49:13 -07:00
RachelElysia
2ad6fb3603
Fleet UI: [unreleased bug] Fix info banner gap/padding issue (#14443) 2023-10-11 11:50:52 -04:00
RachelElysia
debe6626fd
Fleet UI: [fix] SQL editor remove multiple cursor functionality (#14387) 2023-10-11 11:50:27 -04:00
RachelElysia
102f2af372
Fleet UI: [small fixes] Table horizontally scrolls, "Get help" is on one line (#14414) 2023-10-11 11:16:45 -04:00
Jacob Shandling
9768186048
Enable real API service, handle null results (#14435)
- Remove mock api service and uncomment real api service
- Handle if query_report.results is `null` – should be updated on
backend to return empty array, but doing this as well to facilitate
team-wide manual testing/QA

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-10-10 15:40:36 -07:00
Roberto Dip
9ffa11c25d
Feat: saved scripts (#14409)
For #9537
2023-10-10 19:00:45 -03:00
RachelElysia
c541409ba4
Fleet UI: Small fixes (e.g. hiding last_fetched filter, hide Edit query button for observers) (#14410) 2023-10-10 12:46:51 -04:00
Jacob Shandling
71a0ffc36d
Polish & cleanup, round 1 (#14402)
![Screenshot 2023-10-09 at 6 02 16
PM](https://github.com/fleetdm/fleet/assets/61553566/d1c817b6-901c-4486-b14b-859503888369)

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-10-10 09:32:29 -07:00
RachelElysia
4be39ca938
Frontend: 1000 total results has tooltip (#14397) 2023-10-09 18:09:54 -04:00
Jacob Shandling
18b80c409b
13472 clipped banner (#14396) 2023-10-09 14:51:05 -07:00
Jacob Shandling
eb327faabf
maintenance merge of main into feature branch (#14393)
maintenance merge of `main` into feature branch
2023-10-09 14:28:35 -07:00
RachelElysia
a85f399cac
Fleet UI: Query report (table, buttons, api calls, etc) (#14325)
## Issue
Cerra #13472 

## Description
- Surface query report on the `/queries/{id}` route
- Include table buttons to show query and export query
- Include results count
- Clientside sorting and filtering for columns
- Add mock data to frontend integration mocks and to API mocks for
concurrent development
- 331 + 351 + 2 = 684 lines of code is just mocking data and not actual
changes
- If modifying sorting/filter, modify the exported results
sorting/filter as well
- Last fetched column is sentence cased, sortable by chronological order
and not alpha order of the readable string (e.g., "a year ago" should be
sorted _after_ "over 1 month ago" if sorted most recent to oldest even
though a comes before o in the alphabet)

## Screen recordings (Uses mock data)


https://github.com/fleetdm/fleet/assets/71795832/22766f2b-3387-4a95-b505-b530dda582fa



https://github.com/fleetdm/fleet/assets/71795832/5c2cd8cc-d00e-4ead-b111-e3b33cb7c955



# Checklist for submitter

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

- TODO for QA: Added/updated E2E tests (consider testing some of the
features mentioned in the description)
- [x] Manual QA for all new/changed functionality
2023-10-09 13:38:34 -07:00
Jacob Shandling
2adf3ce477
UI – Componentize "Discard data" option and add it to Edit Query page (#14343)
## Addresses #13470 

- [x] Save query
  - [x] Add checkbox
    - [x] default unchecked
- [x] If global setting is disabled (that is, "Disable query reports" is
_enabled_)
      - [x] this box is disabled
      - [x] copy below is changed
- [x] If enabled locally but globally disabled, box is checked and
disabled
- [x] If user clicks "Edit anyway", the normal checkbox state is
restored, allowing them to edit it anyway., e.g. to prepare for enabling
globally before doing so
- [x] banner under [certain
conditions](https://www.figma.com/file/ss8dSfoueq3REJxoGaxkNw/%237766-See-latest-query-results?type=design&node-id=470%3A9996&mode=design&t=XDBlQetD7kqdEdh9-1)
  - [x] 2 x update help text
- [x] Edit query
  - [x] checkbox
  - [x] back button
  - [x] 2 x help text updates
- [x] save changes modals when
[conditions](https://www.figma.com/file/ss8dSfoueq3REJxoGaxkNw/%237766-See-latest-query-results?type=design&node-id=470%3A8745&mode=design&t=XDBlQetD7kqdEdh9-1)
are met:
    - [x] changed SQL
    - [x] other 
- [x] Mange queries - update[
tooltip](https://www.figma.com/file/ss8dSfoueq3REJxoGaxkNw/%237766-See-latest-query-results?type=design&node-id=470%3A10035&mode=design&t=ACwsj3wVdqzCXulq-1)
- [x] Significant cleanup and improvement of styles and structure around
the Edit Queries page


<img width="854" alt="Screenshot 2023-10-05 at 3 44 05 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/9831570f-3c83-4e59-b040-649d52faa257">
<img width="854" alt="Screenshot 2023-10-05 at 3 44 15 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/dec76eba-46d1-4e43-87e9-e7fc44e84691">
<img width="854" alt="Screenshot 2023-10-05 at 3 45 09 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/a7879b21-49b0-476a-81ab-6b465967510f">
<img width="854" alt="Screenshot 2023-10-05 at 3 45 29 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/14a90d0a-2a52-4e59-8ee8-fb76fce55417">
<img width="1105" alt="Screenshot 2023-10-05 at 3 46 58 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/6c488fbe-4e5a-442b-8b62-2ddd15bda1fe">
<img width="1105" alt="Screenshot 2023-10-05 at 3 47 10 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/649534c5-d859-41f9-8c8a-6882b1dc2219">
<img width="1105" alt="Screenshot 2023-10-05 at 3 47 24 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/eaa0469c-a57a-474d-87bc-21cf2133dd3c">


## Checklist for submitter

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-10-09 11:31:31 -07:00
Marcos Oviedo
f0d77ab3db
Merging Bitlocker feature branch (#14350)
This relates to #12577

---------

Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com>
Co-authored-by: Roberto Dip <dip.jesusr@gmail.com>
2023-10-06 19:04:33 -03:00
RachelElysia
11fc7edc0f
Fleet UI: Fix new query bugs introduced (#14309) 2023-10-06 10:03:19 -07:00
RachelElysia
be7d798a25
Fleet UI: [tiny styling bug] Fix failing policies call out alignment (#14136) 2023-10-05 10:36:23 -07:00
Jacob Shandling
ab50f0f59d
Maintenance merge of main into feature branch (#14308) 2023-10-04 15:59:36 -07:00
Jacob Shandling
df2ada1809
UI - Add 'Discard data' option to Save Query modal (#14284)
## Addresses pt.1 of #13470

4 states + InfoBanner:

<img width="746" alt="Screenshot 2023-10-03 at 2 51 36 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/0cffd9a1-8a96-4723-a080-10d68d7c7c70">
<img width="746" alt="Screenshot 2023-10-03 at 2 51 55 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/12237208-f29a-4c90-86c8-8fb71d64fbf4">
<img width="746" alt="Screenshot 2023-10-03 at 2 52 20 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/6bdeb8c6-250f-4edb-a630-aa978a98e428">
<img width="746" alt="Screenshot 2023-10-03 at 2 52 26 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/bae0e656-56f4-4f6a-9972-5ff0fa2f24bf">

<img width="735" alt="Screenshot 2023-10-03 at 5 15 44 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/b26ce3ed-7949-4823-a6a4-fa04e152a480">

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-10-04 15:19:26 -07:00
RachelElysia
5ed443590e
Fleet UI: Surface delete previous results modals (#14257) 2023-10-04 14:35:18 -07:00
Noah Talerman
9c7079f50c
Windows MDM docs: turn on Windows MDM (#13943)
- Add new "Windows setup" page to "Device Management" section of docs
- Rename "MDM setup"  page to "macOS setup." Update links and add redirect
- Rename existing "macOS setup" page to "macOS setup experience." Update links. Did not add redirect because of conflict with "macOS setup" page
- Remove "MDM" from all MDM doc page titles
2023-10-04 15:39:09 -04:00
Jacob Shandling
be0ce917c1
UI - Add global "Disable query reports" setting to advanced org settings (#14268)
## Addresses #13474 

<img width="842" alt="Screenshot 2023-10-03 at 11 38 12 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/b8f0d81f-ba41-458f-acb5-2224e2774ef8">
- small alignment issues with tooltip-wrapped text should be fixed by
upcoming TooltipWrapper refactor PR

## Checklist for submitter

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-10-04 11:31:26 -07:00
RachelElysia
ee365ea276
Frontend: Step 1 for query caching (organize FE directories, build save modals, modify routes/URLs) (#13908) 2023-10-02 12:26:53 -07:00
Gabriel Hernandez
ccda98d769
Fix UI script content and output display height. (#14168)
relates to #13847

fix max height for script content and output in the script details
modal.

new max heights:


![image](https://github.com/fleetdm/fleet/assets/1153709/9150c388-850f-4ff8-8117-1a266164e5dc)


- [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] Manual QA for all new/changed functionality
2023-09-28 13:02:27 +01:00
Noah Talerman
289909686b
Update end user migration copy (#14158)
- Update UI the IT admin sees
- Update the migration window the end user sees
2023-09-27 12:10:25 -04:00
Luke Heath
c30fd4292e
Adjust teams dropdown arrow position (#14117) 2023-09-25 13:09:58 -05:00
Jacob Shandling
1524510e89
UI – capitalize and align status icon in Automations column (#14095) 2023-09-22 16:27:45 -05:00
RachelElysia
8f6368da4e
Fleet UI: Fix vertical alignment of truncated cell (#14096) 2023-09-22 15:55:35 -04:00
RachelElysia
858092f137
Fleet UI: [tiny bug fixes] Table text cell vertical alignment [released], fix first letter capitalization [unreleased] (#14086) 2023-09-22 10:48:21 -04:00
Gabriel Hernandez
89a6b538b7
fix formatting on the script content and output UI (#14048)
relates to #13847

fixes the formatting of the script content and output fields. we now
preserve the spacing and line breaks.


![image](https://github.com/fleetdm/fleet/assets/1153709/70e28637-ea4b-4679-a38a-02d42f49830c)


- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
- [x] Manual QA for all new/changed functionality
2023-09-22 12:52:27 +01:00
RachelElysia
fd4e2733ba
Frontend: [hour/s old bug] Ensure type null option for lastEditedQueryId (#14055) 2023-09-21 14:51:13 -04:00
RachelElysia
3a74a9fda4
Fleet UI: [bug squashes] Fix team dropdown z-index issue, fix copy icon hover state, fix spacing before icons (#14034) 2023-09-21 13:46:14 -04:00
RachelElysia
8dab938a89
Fleet UI: [small bug] Creating multiple new policies save button always enabled (#14042) 2023-09-21 13:44:02 -04:00
RachelElysia
9c5d7faa58
ChromeOS tables: Errors surfaced in Fleet UI (#12376) 2023-09-19 10:06:29 -04:00
Noah Talerman
c62899e4c5
Tweak copy on Windows automatic enrollment page (#13861)
- Changes uncovered when dogfooding Windows automatic enrollment
2023-09-18 14:57:19 -07:00
Gabriel Hernandez
575c0af92a
Revert "add windows bitlocker to mdm controls page (#13953)" (#13979)
revert windows bitlocker UI work
2023-09-18 18:25:49 +01:00
Gabriel Hernandez
db8c79aa2a
add windows bitlocker to mdm controls page (#13953)
relates to #12926

This implements the changes to the Controls page that add the windows
Bitlocker functionality.
There is some work that needs to be complete when the API is done. For
now we are mocking the new disk encryption API response

**new column for windows hosts:**


![image](https://github.com/fleetdm/fleet/assets/1153709/39adb0fa-c59f-483f-a2c3-45a2b95492aa)

also includes various other changes behind the scenes that include
windows hosts into the disk encryption as well as changes to the
profiles status summary to use StatusIndicatorWithIcon

- [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] Manual QA for all new/changed functionality
2023-09-18 15:22:18 +01:00
RachelElysia
93c3e73665
Fleet UI: [second fix] Fix save policy 1 password autofill (#13914) 2023-09-13 16:52:19 -04:00
RachelElysia
03bce9d369
Fleet UI: [second fix] Sentence case fixes (#13913) 2023-09-13 15:28:34 -04:00
Jacob Shandling
46b1db7850
UI: Update tooltip/link structure & functionality in Software tables (#13893) 2023-09-13 10:19:56 -07:00
RachelElysia
d8d28184f5
Fleet UI: Disable 1password autofills in random inputs (#13762) 2023-09-11 10:01:31 -04:00
RachelElysia
ab263bb76a
Fleet UI: [small released bug] Fix time cell with tooltip component to not have a date restriction, add unit tests for edge cases (#13824) 2023-09-11 09:45:15 -04:00
RachelElysia
11e019eb20
Fleet UI: Fix capitalization (#13748) 2023-09-11 09:44:27 -04:00
RachelElysia
5f55e0f696
Fleet UI: Fix gap in manage automations modal (#13750) 2023-09-11 09:39:36 -04:00
RachelElysia
f0cdb58ea5
Fleet UI: Fix autosize text field to not cut off placeholder text (#13826) 2023-09-11 09:39:01 -04:00
Gabriel Hernandez
fa252e4977
Update controls tabs to show mdm disabled UI state per tab (#13794)
relates to #9831

Update Controls page to individually show the mdm disabled UI state per
tab. Before this was done across the entire control page:


![image](https://github.com/fleetdm/fleet/assets/1153709/67a88cf4-c489-46aa-a802-58c4ef61ac5a)


Also, refactors the code to be less specific to mac OS.


- [x] Manual QA for all new/changed functionality
2023-09-11 12:52:24 +01:00
Jacob Shandling
72f5c5b30c
UI: include team_id when nav to new policy from host details (#13757) 2023-09-06 11:07:13 -07:00
Roberto Dip
541cc638e4
Add an activity log when an script execution is requested (#13655)
For #9553
2023-09-05 20:09:29 -03:00
RachelElysia
7563df638c
Fleet UI: Fix searchability/loading state focus, fix hidden buttons (#13708) 2023-09-05 15:35:42 -07:00
RachelElysia
113f146c39
Fleet UI: Fix copy button location and hover state (#13711) 2023-09-05 13:18:25 -04:00
Gabriel Hernandez
058fd56d3e
Updates to the Script details modal. (#13623)
relates to #13308

This updates the implementation for the scripts details modal. This
includes changing how we are showing messages to the user when there are
errors and also changing how we are displaying the messages for integer
exit codes.


- [x] Manual QA for all new/changed functionality
2023-09-05 15:50:50 +01:00
RachelElysia
7d6264b46b
Fleet UI: More picky regex (Add alternative where must have http and/or www in link) (#13639) 2023-09-01 11:57:15 -04:00
RachelElysia
6173af2b30
Fleet UI: [small unreleased bug fix] Fix empty team policies search to still show inherited policies table, faster team policies page (#13628) 2023-09-01 11:55:32 -04:00
RachelElysia
17e581b916
Fleet UI: [small released styling bugs] Fix live query icons (size, alignment, style, color) (#13593) 2023-09-01 10:18:29 -04:00
RachelElysia
8a796ff5bd
Fleet UI: Server side filtering for global, team, and inherited policies (#13479) 2023-08-31 11:23:57 -04:00
RachelElysia
d4c8111038
Fleet UI: Add more specific page titles to browser tab (#13335) 2023-08-30 16:11:49 -07:00
Roberto Dip
c0cb278a1f
fix MDM SSO layout (#13578)
for #13498 to match the layout as originally described in the
[Figma](https://www.figma.com/file/hdALBDsrti77QuDNSzLdkx/%F0%9F%9A%A7-Fleet-EE%2C-June-2023-and-earlier?type=design&node-id=14776-193245&mode=design&t=fNnPKmLPfiZErDay-0)
file
2023-08-30 14:16:08 -03:00
RachelElysia
12af094a8c
Fleet UI: [tiny released styling bug] Fix alignment on long label names (#13568) 2023-08-29 14:47:26 -04:00
RachelElysia
6cac6ed80a
Fleet UI: Live query UI and export results tables include all columns returned (#13428) 2023-08-29 08:51:37 -04:00
Gabriel Hernandez
3755264529
Feat UI view script activity and script details (#13388)
relates to #13308

Implements the UI for the activity item for script ran, and the script
details modal.

NOTE: Still have to do API integration and will do when API is ready in
another PR.

- [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.
- [ ] Added/updated tests
- [x] Manual QA for all new/changed functionality
2023-08-29 11:47:37 +01:00
RachelElysia
dc97109841
Fleet UI: Store host's team on details page for correct RBAC dropdown (#13530) 2023-08-28 13:11:19 -04:00
RachelElysia
32031a5b75
Fleet UI: More icons updated (#13270) 2023-08-28 13:09:21 -04:00
RachelElysia
96da9fc353
Fleet UI: Fix custom query frequency on manage automations modal (#13511) 2023-08-25 13:00:14 -04:00
RachelElysia
39c3eedc7b
Fleet UI: Improvements to highlighting while tabbing and not clicking (#13508) 2023-08-25 12:26:03 -04:00
RachelElysia
e9a11c429a
Fleet UI: Link improvements (Back links and dashboard tiles right clickable, fix queries link on nav bar) (#13361) 2023-08-23 08:56:32 -04:00
RachelElysia
38c5c58f8a
Fleet UI: [feature] All table links can open in a new tab (#13349) 2023-08-22 09:20:40 -04:00
gillespi314
e08bb000c9
Update nanomdm dependency (#12721)
Updates include:
- Fix issues where `GetBootstrapToken` returned `500` instead of no data
and no error per Apple MDM
[documentation](https://developer.apple.com/documentation/devicemanagement/get_bootstrap_token)
- Incorporate additional updates from the upstream nanomdm repo
2023-08-21 11:07:57 -03:00
Roberto Dip
3b815b04c2
adjust MDM migration copy and timers (#13366)
for #13158
2023-08-18 18:58:40 -03:00
RachelElysia
947eaddb13
Fleet UI: Update banner to remove old icon and use InfoBanner component (#13312) 2023-08-18 09:16:10 -04:00
RachelElysia
8e74f7c42d
Fleet UI: [released tiny bug] Fix dashboard double scroll bar (#13309) 2023-08-18 09:15:44 -04:00
RachelElysia
ccdd1a02f4
Fleet UI: Convert URLs in Policy resolution text to be clickable links (#13023) 2023-08-18 09:15:23 -04:00
Gabriel Hernandez
4e8696cb1d
update windows auto enrollment page list items in UI (#13330)
relates to #12606

this updates the styling of the list items on the windows automatic
enrollment page. It pushes the wrapping text to the right side of the
list number.

**Before:**


![image](https://github.com/fleetdm/fleet/assets/1153709/44b8942e-eb89-4592-bd5a-ccb9a6a53fce)

**After:**


![image](https://github.com/fleetdm/fleet/assets/1153709/7a0e6a0f-2807-4d28-97b0-788f391367cd)

- [x] Manual QA for all new/changed functionality
2023-08-18 12:49:12 +01:00
RachelElysia
e6f3f2e965
Fleet UI: [4.36 unreleased bug] Dropdown width styling fix (#13340) 2023-08-15 16:26:37 -04:00
RachelElysia
6010f06c9c
Fleet UI: Add hover/focus state to icon and border of label filter search (#13299) 2023-08-11 15:47:45 -04:00
RachelElysia
c177b8ecbb
Fleet UI: [released bug] Add hover state/ tabbing state to user side panel buttons (#13292) 2023-08-11 10:21:05 -04:00
RachelElysia
449d0c99d5
Fleet UI: [unreleased bug] Fix hover fill of reveal button (#13291) 2023-08-11 10:00:21 -04:00
RachelElysia
78d070d0b2
Fleet UI: [bug fix] Selected organization tab styling (#13269) 2023-08-11 09:32:02 -04:00
Jacob Shandling
ed229c28f2
Prevent host page label filter text from jumping at low viewport width (#13256) 2023-08-10 14:41:49 -07:00
Jacob Shandling
948ae13507
UI - Fix host count (#13276)
## Addresses #13277 

<img width="642" alt="Screenshot 2023-08-10 at 11 22 19 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/3f7e4b47-c0ef-4f52-9aed-75adcf12ab61">
<img width="649" alt="Screenshot 2023-08-10 at 11 22 49 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/55cf79ca-fbb2-42e8-a545-de30b55fb8f5">

- [x] Manual QA

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-08-10 11:40:43 -07:00
RachelElysia
970b3c3962
Fleet UI: [bug fix] Text cells in all tables no longer overflow into next column (#13241) 2023-08-10 09:27:54 -04:00
RachelElysia
e8889a4d61
Fleet UI: Disable save button for invalid sql or name (#12994) 2023-08-09 16:24:46 -04:00
RachelElysia
ab159edcc9
Fleet UI: Move observer + to under observer to conform with permissions ordering (#13257) 2023-08-09 16:24:09 -04:00
RachelElysia
067447cb64
Fleet UI: Fix typo 12630 (#13255) 2023-08-09 16:23:41 -04:00
RachelElysia
e2d68b9b51
Fleet UI: (Styling bug) Search bar alignment, hover state (#13151) 2023-08-09 13:35:28 -04:00
Jacob Shandling
5b711cdc2e
Frontend – correctly represent all platform string possibilities (#13193) 2023-08-08 10:40:07 -07:00
Gabriel Hernandez
6555d8def4
Feat UI windows automatic enrollment (#12988)
relates to #12606

Implementation of the Windows automatic enrollment Fleet UI pages. This
includes implementation of card for windows automatic enrollment, the
setup page for windows automatic enrollment, and terms and conditions
page for windows (This is currently still being worked on as our current
solution is not working).

**windows mdm auto enrollment card**


![image](https://github.com/fleetdm/fleet/assets/1153709/d4dc1813-dc28-4a63-bacd-cb7e43e18170)

**windows auto enrollment setup page**


![image](https://github.com/fleetdm/fleet/assets/1153709/92da4b05-0d5d-4404-867f-6d315957bdc3)

- [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] Manual QA for all new/changed functionality

---------

Co-authored-by: Marcos Oviedo <marcos@fleetdm.com>
2023-08-08 15:57:55 +01:00
RachelElysia
100e45e700
Fleet UI: [Unreleased bug] Fix setup flow bug created with fix for vertical overflow bug (#13179) 2023-08-07 13:09:44 -04:00
Jacob Shandling
82858f8c3e
UI: Add padding to users count in host details (#13165) 2023-08-07 09:21:48 -07:00
Jacob Shandling
4527d52ead
UI – add grey dashboard icons (#13015) 2023-08-07 09:21:02 -07:00
RachelElysia
fafea94dba
Fleet UI: Dropdown arrows updated, on hover button icon color, etc (#13129) 2023-08-07 09:25:32 -04:00
Luke Heath
4cc5bfbe4a
UI: Add missing call to new query path making function (#13162)
Reapplies https://github.com/fleetdm/fleet/pull/13156/
2023-08-04 14:49:25 -07:00
Luke Heath
8d1fb85d9c
Revert UI query path fix (#13161) 2023-08-04 14:22:15 -07:00
Jacob Shandling
11f9dcaa61 Add missing call to new query path making function 2023-08-04 13:03:12 -07:00
RachelElysia
3c8244b246
Fleet UI: Dynamic autofill for SQL editor (#13093) 2023-08-03 12:42:51 -04:00
RachelElysia
3477178758
Fleet UI: No role = no access, refactor jsx class components to typescript functional components (#12953) 2023-08-02 11:29:49 -04:00
RachelElysia
2e6589b66c
Fleet UI: Update icons (x in flash message and selected targets dropdown) (#12992) 2023-08-02 11:07:24 -04:00
Luke Heath
ad96043e8f
Adjust gravatar network connection test URL (#13076) 2023-07-31 17:39:52 -07:00
Luke Heath
08ac34109a
Change gravatar connection check URL (#13067) 2023-07-31 10:51:35 -07:00
Jacob Shandling
3bf0344396 Merge branch 'main' into 7765-combined-schedules-and-queries 2023-07-28 13:21:04 -07:00
Jacob Shandling
1cf532dfbb
UI - Fix a synchronicity issue in automations API patches (#13035)
## Addresses #13007 

## Fix a synchronicity issue in automations API patches
<img width="825" alt="Screenshot 2023-07-28 at 12 49 21 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/9729dcd0-4813-452a-9911-6cf60f8352af">

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-28 13:01:50 -07:00
Jacob Shandling
37203dbad2
UI - Restore packs logic to host details (#13031)
## Addresses ##13032
### Restore packs logic per product decision
<img width="849" alt="Screenshot 2023-07-28 at 12 12 48 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/93603522-18c0-4d40-8e63-5d516e1345f2">

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-28 12:27:12 -07:00
Juan Fernandez
40e8f83829
Always use writer node when listing queries. (#13024)
Always use writer node when listing queries.
2023-07-28 12:41:05 -04:00
Jacob Shandling
791adf19ad
UI - Add timeout before refetching queries (#13009)
## Addresses #13007 

Avoid race condition by waiting before queries refetch after updating
automations

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-27 14:44:03 -07:00
Jacob Shandling
38b4407671
UI – prevent vertical scrolling for single queries (#12985)
## Addresses #12976 

Prevent vertical scrolling when only a single query is present while
maintaining horizontal scrolling in presence of queries with long names:
<img width="1056" alt="Screenshot 2023-07-26 at 2 26 03 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/9188afdf-c216-49c6-89fd-1dadca4edee0">

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-27 14:32:58 -07:00
RachelElysia
8b5f7fbae9 Fleet UI: Queries default to alpha order (#12924) 2023-07-27 13:53:25 -07:00
Jacob Shandling
0b503a6182 style fixes 2023-07-27 13:51:14 -07:00
RachelElysia
feddda299b Fleet UI: New manage query automations modal (#12747) 2023-07-27 13:47:54 -07:00
Jacob Shandling
4cab838864 Revert "Fleet UI: New manage query automations modal (#12747)"
This reverts commit e13644d664.
2023-07-27 13:44:40 -07:00
Jacob Shandling
c69bba6d0e Merge branch '7765-frontend' into 7765-combined-schedules-and-queries 2023-07-27 13:35:07 -07:00
Jacob Shandling
1daf6f02c6 Revert "Merge front-end changes into 7765 Master Dev branch (#12905)"
This reverts commit 7bff7447b0.
2023-07-27 13:32:24 -07:00
Jacob Shandling
266e9bf2e0
UI – Update platforms column to only display compatible platforms (#13003)
## Addresses #12999 

<img width="1282" alt="Screenshot 2023-07-27 at 11 59 01 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/b60d3b41-3d7b-4550-ba7c-8615bae085a6">


# 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/`
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-27 12:10:22 -07:00
gillespi314
09e6bf9807
Update detail query ingestion and UI related to Windows MDM status (#12960) 2023-07-26 17:35:55 -05:00
Roberto Dip
442e03b276
Improve the error handling for MDM SSO during DEP enrollment (#12966)
For #12692
2023-07-26 14:20:36 -03:00
Luke Heath
cd94d11ad7
Fixed URL used to check Gravatar network availability (#12949) 2023-07-25 10:08:57 -07:00
Jacob Shandling
fd50360278
Fix setup page styling (#12936)
## Addresses #12935 
<img width="780" alt="Screenshot 2023-07-24 at 11 04 11 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/5d4b335a-3abd-4f7c-beaa-79ee151c490f">
<img width="1243" alt="Screenshot 2023-07-24 at 11 03 10 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/3b79ce91-34d6-4b6a-8eb6-50a7ac9f39d3">

# 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/`
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-24 11:13:02 -07:00
RachelElysia
fe7cd295a4
Fleet integration tests: Remove schedule tab from frontend integration tests (#12925) 2023-07-24 11:00:16 -04:00
RachelElysia
fdf89989c5
Fleet UI: Queries default to alpha order (#12924) 2023-07-24 10:46:52 -04:00
Juan Fernandez
7bff7447b0
Merge front-end changes into 7765 Master Dev branch (#12905)
Front-end changes for combined schedules and queries.
2023-07-24 09:47:05 -04:00
RachelElysia
eb63cf8983
Fleet UI: (Unreleased bug) Fix create team query from not disabling the save button (#12903) 2023-07-21 13:03:18 -04:00
Jacob Shandling
a05cf0618b
UI – ManageAutomationsModal style fixes (#12892)
## Addresses #12891 
<img width="712" alt="Screenshot 2023-07-20 at 4 32 00 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/4b4c1ae2-d58b-42b7-bf3f-b81c17b75c1f">


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

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-20 16:43:13 -07:00
Jacob Shandling
2faa476272
UI: 2 Query name styling issues (#12885)
## Addresses #12883 and #12877 

- Truncate long query names such that the name itself is truncated with
ellipses while the "Observer can run" icon and associated tooltip, if
present, remain visible.
- Address lower-case "p"s in query name getting cutoff.

<img width="944" alt="Screenshot 2023-07-20 at 2 21 16 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/09c141e8-a6bf-4380-8bd2-cdcc57019f73">

## QA
@xpkoala –The style that was removed here to address the text cutoff
issue is a far-reaching change, since this problem may be happening
elsewhere the TextCell component is used. I did manually QA this, but
please take a careful look at other tables to double check that other
text cells are still styled correctly.


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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-20 14:45:25 -07:00
Jacob Shandling
fc9a970e57
UI - Search only the current-scope queries (#12880)
## Addresses #12868 
<img width="429" alt="Screenshot 2023-07-20 at 12 44 16 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/e583f1e4-1c8b-4b3f-bde0-7cd9c00e60d9">

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

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-20 12:55:11 -07:00
RachelElysia
099ed43acf
Fleet UI: (Unreleased bug) Team admin/maintainers cannot save global queries (#12878) 2023-07-20 15:38:09 -04:00
RachelElysia
0aa293201a
Fleet UI: (Unreleased bug) Team admin/maintainer can edit and delete any of their team's queries (#12863)
## Issue
Cerra #12858 

## Description
- Allow any team admin/maintainer to use checkboxes on all queries on
the manage queries page for deleting queries
- Allow any team admin/maintainer to click save to update a query on the
edit query page

## QA
- [x] I QAed frontend only on team admin, team maintainer that they had
the functionality
- [x] I QAed frontend only on team observer that they do NOT have the
functionality

NOTE: Needs QA on a branch with backend to confirm full E2E changes

## Screen recording of team maintainer who didn't author the query now
having functionality


https://github.com/fleetdm/fleet/assets/71795832/1e93714a-5721-4278-bac3-5ce9f896a49f



# Checklist for submitter

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

- [x] Manual QA for all new/changed functionality
2023-07-20 11:52:56 -07:00
Jacob Shandling
bc25e23f20
UI - Remove select boxes from inherited QueriesTable (#12875)
## Addresses #12636

<img width="748" alt="Screenshot 2023-07-20 at 11 23 18 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/020bd366-2407-4bb4-87cd-2afa8eeb980d">

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

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-20 11:42:01 -07:00
RachelElysia
640e9a8dda
Fleet UI: (Unreleased bug) Platform compatibility always loads (#12876)
## Issue
Cerra #12859 

## Description
- Ensure compatibility is being calculated and rendered even if query
has loaded before

## Screen recording clicking back and forth into same query and still
seeing compatibility

# Checklist for submitter

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

- [x] Manual QA for all new/changed functionality
2023-07-20 11:41:21 -07:00
RachelElysia
87a7a508a9
Fleet UI: (Unreleased bug) Redirect to query editor on creating a new query (#12870)
## Issue
Unreleased bug #12857 

## Description
Clean up create call so we can easily go to the newly created query
using the newly created query id

## QA
- Rachel and @jacobshandling tested this on the fullstack branch already
and works great
NOTE: Reed should still test :) 

# Checklist for submitter

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

- [x] Manual QA for all new/changed functionality
2023-07-20 11:38:58 -07:00
Jacob Shandling
53bad0b398 Merge branch '7765-frontend' of https://github.com/fleetdm/fleet into 7765-frontend 2023-07-20 09:44:01 -07:00
Jacob Shandling
b22102bb94 Pass team_id when editing existing queries; update error text 2023-07-20 09:43:15 -07:00
RachelElysia
dab19c77d0
Fleet UI: (Unreleased bug) When no platforms are selected, empty string platforms, show ALL platform icons in table and All in platform dropdown (#12865) 2023-07-20 12:43:09 -04:00
Jacob Shandling
b63f465ef7 Use teamIdForAPI for saving new queries 2023-07-20 09:42:55 -07:00
Gabriel Hernandez
700615b2fa
fix for not showing APCP page properly (#12862)
relates to #12827

quick fix to show the Apple MDM page information correctly. The issue
was that we needed to add the `enabled` option to the react query call
to show the data properly.
2023-07-20 16:59:49 +01:00
Jacob Shandling
27a1bfd805
UI - Restore host details Query action and Schedule tab (#12832)
## Addresses a conversation in which we decided _not_ to remove the host
details page's Query action and Schedule tab after all. @zhumo
@rachaelshaw, related to #12636

### Restores these features

<img width="758" alt="Screenshot 2023-07-18 at 4 17 41 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/6a7ce26a-6ee2-4c3d-b2a3-524b90e417f8">

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-19 11:02:53 -07:00
Gabriel Hernandez
dbf43363a7
add tooltip to new logos (#12837)
relates to #12053

quick fix to add tooltip to new inputs for logo
2023-07-19 18:13:19 +01:00
RachelElysia
629f408d31
Fleet UI styleguide update: Replace all search bars and icons with new styling (#12312) 2023-07-19 10:40:59 -04:00
RachelElysia
e13644d664
Fleet UI: New manage query automations modal (#12747) 2023-07-18 17:10:45 -04:00
RachelElysia
a45edfdffa
Fleet UI: New edit query page (#12777) 2023-07-18 16:58:52 -04:00
Jacob Shandling
83c124fb7e "Run query" –> "Live query" 2023-07-18 13:24:01 -07:00
Jacob Shandling
7b967de6c1 Correct topnav team_id behavior 2023-07-18 11:15:54 -07:00
Jacob Shandling
095bf63580
UI – Queries page updates pt.2 (#12820)
## Addresses #12636 – follow-up work to PRs #12713 & #12784 

- Fix alignment of the Platforms dropdown
<img width="1256" alt="Screenshot 2023-07-17 at 7 37 56 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/5f162a99-6840-474f-9679-3115782329cf">

- Hide redundant table headers for inherited queries table
<img width="1255" alt="Screenshot 2023-07-17 at 7 39 35 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/8ef91588-4e5a-4203-a2fc-ae24ab0493db">

- Update SaveQueryModal name field's error state copy (note - [awaiting
product
decision](https://github.com/fleetdm/fleet/issues/12646#issuecomment-1639159107)
on further updates to the UI here - likely for separate ticket):

- Avoid redundant processing by moving it outside of useQuery's `select`
option.

- Leverage query key design to cache global queries for inherited table

- [x] Manual QA

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-18 10:49:51 -07:00
Gabriel Hernandez
04beb67f75
update max-height logo in nav bar (#12811)
quick change to make logo in nav bad have a smaller height. This was
done to give the logo a little more breathing space in the nav bar.

**before:**


![image](https://github.com/fleetdm/fleet/assets/1153709/e3e791bb-1d55-4d60-8245-22fb0a0e0171)

**after:**


![image](https://github.com/fleetdm/fleet/assets/1153709/1b303d11-9e73-444a-8b3a-a39b8b519f4f)
2023-07-18 10:38:37 +01:00
Jacob Shandling
c392837434 handle undefined user-slected platform string 2023-07-17 14:28:13 -07:00
Jacob Shandling
cc009d2d9f update IPlatformString to SelectedPlatformString in SaveQueryModal 2023-07-17 14:22:34 -07:00
Jacob Shandling
1d6870f0a7
UI: Update the save query modal with scheduling-related fields (#12741)
## Addresses #12646
### See issue for list of completed work
![Screenshot 2023-07-12 at 5 41 05
PM](https://github.com/fleetdm/fleet/assets/61553566/b4ece0c9-5df1-4320-9dce-1cd8c2758c6c)


### Also see PR #12713 **notes for review** on that PR for help manually
testing this work in lieu of the completed API.

- [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>
2023-07-17 14:09:59 -07:00
Jacob Shandling
53f57c44db
UI - Queries page updates, pt.1 (#12784)
## Addresses #12636 – follow-up work for PR #12713

- Update Platforms column to render the user-selected platforms for a
query if any, otherwise those that are compatible
<img width="686" alt="Screenshot 2023-07-14 at 6 03 06 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/abd1f079-bdfe-45be-b1dd-58eb903672ef">

  - Clean up typing and names around this column 
- Encapsulate logic for query automations column cells into new
QueryAutomationsStatusIndicator component
  - Increase modularity and decrease coupling of StatusIndicator
- Cleanly handle overflowing queries table due to very long query name
<img width="512" alt="Screenshot 2023-07-14 at 6 07 20 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/6e970038-0aac-4f71-b21d-ececfa66b94f">

- Small copy and layout fixes

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-17 14:09:12 -07:00
Gabriel Hernandez
c5a4fa60b7
Feat UI update macos windows setup (#12744)
relates to #12168

Updates the fleet UI so that the macOS mdm setup flow is similar to the
windows mdm setup. This includes:

**Adding a new macos setup card:**


![image](https://github.com/fleetdm/fleet/assets/1153709/dc3371a6-864b-4af8-8e97-d716d5a51361)


![image](https://github.com/fleetdm/fleet/assets/1153709/5d7ebb54-6c80-45ac-86b2-93d452357b96)

**Adding a new mac os mdm page on a new URL:**


![image](https://github.com/fleetdm/fleet/assets/1153709/30e42176-d4ab-4087-bde0-d74c81fde613)

- [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] Manual QA for all new/changed functionality
2023-07-17 15:51:40 +01:00
RachelElysia
e919f32e68
Frontend: Testing main nav bar and settings nav bar moved from E2E layer to integration layer (#12682) 2023-07-17 09:01:54 -04:00
RachelElysia
07f8cb107f
Fix: 12743 observer plus (#12772)
## Issue
Cerra #12743 

## Fix of the fix
- Fix of team observer + was catching global observer +


# Checklist for submitter

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

- [x] Manual QA for all new/changed functionality
2023-07-14 09:58:20 -07:00
RachelElysia
59eae80868
Fleet UI: Bug fix team plus edit permission (#12760) 2023-07-13 15:28:40 -07:00
Jacob Shandling
23ac9d2262 Have QueriesTable expect team_id param; update mocks 2023-07-13 13:49:23 -07:00
Jacob Shandling
1e80f9d29a fix style issue from merge 2023-07-13 12:58:38 -07:00
Jacob Shandling
7ff4b77fb9
UI: Merge scheduling functionality into queries page (#12713)
## Addresses #12636 

### See issue for list work done
![Screenshot 2023-07-12 at 6 47 04
PM](https://github.com/fleetdm/fleet/assets/61553566/47e3e5b2-0195-4f54-a377-8e5c03313acf)


![Frame-12-07-2023-06-43-32](https://github.com/fleetdm/fleet/assets/61553566/f72f2d41-609f-4409-8595-5f3e4f06d9bb)


### Notes for review:
- Because other work is based on this branch, TODOs / fixes are noted
here until the team comes to a strategy for merging all of the work:
- Add missing space in the Performance impact column "Undetermined"
tooltip text
- I'm having trouble confirming that the inherited queries table is
working right with the mock hard-coded data, though I did see it working
correctly previously. There's an issue with the page reverting to "All
teams" when trying to show the inherited table, though it does show the
table before re-rendering.

- This work is organized clearly by commit, so that might be a
manageable way to go through this code.
- Since the updated API for this work is not yet complete, this work can
be manually tested by either:
    - Using mock API infrastructure, or
- in `ManageQueriesPage.tsx`, comment out the two `useQuery` calls and
add appropriate mock data. You can then modify any fields of interest to
test their related UI functionality. For example, lines 119 -242 might
read:
```
// const {
  //   data: curTeamEnhancedQueries,
  //   error: curTeamQueriesError,
  //   isFetching: isFetchingCurTeamQueries,
  //   refetch: refetchCurTeamQueries,
  // } = useQuery<IListQueriesResponse, Error, IEnhancedQuery[]>(
  //   [{ scope: "queries", teamId: teamIdForApi }],
  //   () => queriesAPI.loadAll(teamIdForApi),
  //   {
  //     refetchOnWindowFocus: false,
  //     enabled: isRouteOk,
  //     select: (data) => data.queries.map(enhanceQuery),
  //   }
  // );

  // // If a team is selected, fetch inherited global queries as well
  // const {
  //   data: globalEnhancedQueries,
  //   error: globalQueriesError,
  //   isFetching: isFetchingGlobalQueries,
  //   refetch: refetchGlobalQueries,
  // } = useQuery<IListQueriesResponse, Error, IEnhancedQuery[]>(
  //   [{ scope: "queries", teamId: -1 }],
  //   () => queriesAPI.loadAll(),
  //   {
  //     refetchOnWindowFocus: false,
  //     enabled: isRouteOk && isAnyTeamSelected,
  //     select: (data) => data.queries.map(enhanceQuery),
  //   }
  // );

  const [
    curTeamEnhancedQueries,
    curTeamQueriesError,
    isFetchingCurTeamQueries,
    refetchCurTeamQueries,
  ] = useMemo(() => {
    return [
      [
        {
          created_at: "2023-06-08T15:31:35Z",
          updated_at: "2023-06-08T15:31:35Z",
          id: 2,
          name: "test",
          description: "",
          query: "SELECT * FROM osquery_info;",
          team_id: 43,
          platform: "darwin",
          min_osquery_version: "",
          automations_enabled: true,
          logging: "snapshot",
          saved: true,
          // interval: 300,
          interval: 0,
          observer_can_run: false,
          author_id: 1,
          author_name: "Jacob",
          author_email: "jacob@fleetdm.com",
          packs: [],
          stats: {
            // system_time_p50: 1,
            // system_time_p95: null,
            // user_time_p50: 1,
            // user_time_p95: null,
            // total_executions: 1,
          },
          performance: "Undetermined",
          platforms: ["darwin"],
        },
      ] as IEnhancedQuery[],
      undefined,
      false,
      () => {
        console.log("got the new queries");
      },
    ];
  }, []);

  const [
    globalEnhancedQueries,
    globalQueriesError,
    isFetchingGlobalQueries,
    refetchGlobalQueries,
  ] = useMemo(() => {
    return [
      [
        {
          created_at: "2023-06-08T15:31:35Z",
          updated_at: "2023-06-08T15:31:35Z",
          id: 200,
          name: "test",
          description: "",
          query: "SELECT * FROM osquery_info;",
          team_id: null,
          platform: "darwin",
          min_osquery_version: "",
          automations_enabled: true,
          logging: "snapshot",
          saved: true,
          // interval: 300,
          interval: 0,
          observer_can_run: false,
          author_id: 1,
          author_name: "Jacob",
          author_email: "jacob@fleetdm.com",
          packs: [],
          stats: {
            // system_time_p50: 1,
            // system_time_p95: null,
            // user_time_p50: 1,
            // user_time_p95: null,
            // total_executions: 1,
          },
          performance: "Undetermined",
          platforms: ["darwin"],
        },
      ] as IEnhancedQuery[],
      undefined,
      false,
      () => {
        console.log("got the new inherited queries");
      },
    ];
  }, []);
```

- [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>
2023-07-13 12:11:11 -07:00
RachelElysia
1d8d6d8c15
Frontend: Combine queries and schedules mock API calls for FE development (#12670) 2023-07-13 12:04:08 -07:00
Gabriel Hernandez
9aa7c0c714
add dark and light background logo colors and show them on mdm migrat… (#12681) 2023-07-13 19:35:25 +01:00
RachelElysia
93a03ad216
Fleet UI: Observer plus can run any custom query (#12749) 2023-07-13 14:02:15 -04:00
Jacob Shandling
48156009fa
Frontend – clean up breakpoints (#12711)
## Improve breakpoint variables to be useful "sm", "md", etc. instead of
the pixel widths they are set to

Also made sure all media queries are using these variables instead of
hard-coded values.

See @lukeheath's previous to-do in `frontend > styles > var >
breakpoints.scss`

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-12 15:45:49 -07:00
Jacob Shandling
7af4f3a432
Define new Query interfaces for queries with scheduling features (#12676)
## Addresses #7765
### Define front end interfaces for interacting with the [updated API
specs for merging scheduling functionality into the Queries
page](https://github.com/fleetdm/fleet/pull/11742/files), for use by all
frontend work in this story.

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-07-12 13:22:56 -07:00
Noah Talerman
9eb1ab6745
Handbook: update sentence case section and UI to follow (#12686)
- Update sentence case section in the handbook to clarify that role
names and features in the Fleet product are not proper nouns and thus
shouldn't be capitalized
- Update one spot in the Fleet UI to reflect this
2023-07-11 00:10:57 -05:00
Roberto Dip
b2ea31caf4
fix ui typo in MDM migration config (#12703) 2023-07-10 20:55:43 -03:00
Noah Talerman
7a05925d59
Update copy on Integrations > MDM > Windows page (#12672)
Changes:
- Update copy to accurately reflect Windows MDM features
2023-07-06 17:53:59 -04:00
Roberto Dip
2b4798c4ab
add activity items when a Windows host turns MDM on (#12635)
For #12427, and its sub-tasks #12288 and #12612



![image](https://github.com/fleetdm/fleet/assets/4419992/b4c019dd-fbd3-4c1d-a2ad-a0bb4ebac817)
2023-07-06 15:33:40 -03:00
Noah Talerman
26413497c1
Update turn on MDM instructions (#12592)
#12541
2023-07-03 16:50:33 -03:00
Jacob Shandling
21959a66f7
Correct live query editor permissions (#12609)
## Addresses #12607 

- Updated permissions for the FleetAce editor when being viewed by an
Observer+ to allow editing _only_ for a new live query to run


https://www.loom.com/share/2e4569c1c10f4e4a9b322f24fb4a1be2?sid=c30b630b-d302-4596-a8b7-dfb694e22ba0

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-06-30 16:46:03 -07:00
Gabriel Hernandez
0f6c3999f3
change text for disable windows mdm (#12594)
quick text fix for disable windows mdm
2023-06-30 16:35:04 +01:00
gillespi314
83746aa130
Fix UI bug in host software table search (#12590) 2023-06-30 10:17:37 -05:00
Gabriel Hernandez
0ce66b952d
add org support url input to org info form (#12591)
relates to #12568

adds the missing org support URL input on the settings page org info
form.


![image](https://github.com/fleetdm/fleet/assets/1153709/4e7e1fa4-f462-4fc7-ad2d-49a47edded57)


- [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] Manual QA for all new/changed functionality
2023-06-30 16:08:26 +01:00
Gabriel Hernandez
9f3331ef94
Fix word wrapping on TruncatedTextCell tooltip (#12567)
relates to #12473

Fixes ui bug where the wrapping text on a tooltip in TruncatedTextCell
did not display properly. I fixed this by adding a prop to the component
`tooltipBreakOnWord` which allows devs to configure if the tooltip
breaks on a word, or by default on any character.

**Breaking on a word:**


![image](https://github.com/fleetdm/fleet/assets/1153709/1e3488fd-0051-4bed-8597-e4249a654da3)

**Breaking on any character (default behaviour):**


![image](https://github.com/fleetdm/fleet/assets/1153709/cbb9481f-5cab-4c9b-873a-2343721ebdfe)

- [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] Manual QA for all new/changed functionality
2023-06-29 17:04:25 +01:00
RachelElysia
e04e349baf
Fleet UI: Clean up query/policy targets dropdown styling (#12557) 2023-06-28 18:18:43 -07:00
Gabriel Hernandez
36ca97ff2a
Feat UI activities for windows mdm (#12552)
relates to #12289

Implements enable and disable Windows mdm activity UI

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
- [x] Manual QA for all new/changed functionality
2023-06-28 17:28:17 +01:00
Jacob Shandling
569bf15fa5
UI - remove extra loading Spinner from Software page (#12519)
## Addresses #11355, pt.1 (pt. 2 already fixed)

# 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/` 
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-06-28 08:57:02 -07:00
Sharon Katz
519982990c
Add disk_info table to chromeos (#12344) 2023-06-26 15:40:37 -04:00
Gabriel Hernandez
792e9c7cd1
turn on/off windows mdm from the fleet UI (#12497)
relates to #12258

Implements turning on and off windows MDM from the Fleet UI.

**On UI:**


![image](https://github.com/fleetdm/fleet/assets/1153709/2cb0e1b4-1b87-421e-b9c0-899d12e0f463)


![image](https://github.com/fleetdm/fleet/assets/1153709/e26453cc-0467-446e-975c-dbb2293b7199)

**Off UI:**


![image](https://github.com/fleetdm/fleet/assets/1153709/cd4c9b8f-571b-4b01-9be4-322154a5c954)


![image](https://github.com/fleetdm/fleet/assets/1153709/757d0b23-9e1b-45bf-b84b-82b079dd0ccc)

- [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] Manual QA for all new/changed functionality
2023-06-26 17:54:34 +01:00
Gabriel Hernandez
0f02fa012e
create a reusable UI card component (#12455)
I notices we were reusing styles alot for the card like container UI so
I created a reusable `Card` component

The component is used like this:

```tsx

// default card is white background
<Card>
  <p>whatever JSX you want</p>
</Card>

<Card color="gray">
  <p>whatever JSX you want</p>
</Card>

<Card color="yellow">
  <p>whatever JSX you want</p>
</Card>

<Card color="purple">
  <p>whatever JSX you want</p>
</Card>
```

**white**


![image](https://github.com/fleetdm/fleet/assets/1153709/53ee43a7-982b-480b-8bcf-0c585e0e01b5)

**gray**


![image](https://github.com/fleetdm/fleet/assets/1153709/5afa85df-d63f-4c5a-8f31-d7d6d9174862)

**yellow**


![image](https://github.com/fleetdm/fleet/assets/1153709/334291d6-c5af-4caa-adcb-b28696a054d7)

**purple**


![image](https://github.com/fleetdm/fleet/assets/1153709/0cc87478-f507-4c7f-9807-328e2384a8b1)

- [x] Manual QA for all new/changed functionality
2023-06-26 16:33:46 +01:00
Noah Talerman
8652d2b7ac
Update Software page empty state (#12462)
- Update copy for empty state
2023-06-22 17:46:48 -04:00
gillespi314
dfd16a1ef6
Add transferred hosts to activity feed UI (#12442) 2023-06-22 11:01:42 -05:00
RachelElysia
4a6c7f4d8f
Frontend: Clean valid url code (#12456) 2023-06-22 08:25:37 -07:00
RachelElysia
acf44e5737
Fleet UI: [tiny bug] Fix weird scroll behavior (#12435) 2023-06-22 08:24:57 -07:00
Gabriel Hernandez
69fdbc1949
add better messaging for ABM 400 error (#12425)
relates to #11932

This improves the UI error messaging for AMB 400 errors


![image](https://github.com/fleetdm/fleet/assets/1153709/ffe42a9c-c6a4-4afc-8d52-feaa78967b31)

- [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] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-06-22 15:08:21 +01:00
Juan Fernandez
0c172c85c3
SSO Metadata URL can only be https/http (#12388)
When setting up SSO, validate that the Metadata URL has the proper scheme.
2023-06-22 08:17:37 -04:00
RachelElysia
54e811f44f
Fleet UI: [tiny bug] See software search and vuln dropdown when no vuln software (#12412) 2023-06-21 09:15:25 -04:00
RachelElysia
65bca34825
Fleet UI: [tiny bug] Copy message (#12411) 2023-06-21 09:14:47 -04:00
RachelElysia
2c45d25ad3
Fleet UI: Empty software SVG update (effort to fix broken image in Sandbox) (#12378) 2023-06-19 15:41:04 -04:00
RachelElysia
2efb48ee0c
Fleet UI: Clean up dashboard loading state (#12395) 2023-06-19 12:08:33 -04:00
RachelElysia
39a60e037e
Fleet UI: Variable Fleet URL for ChromeOS extension (#12393) 2023-06-19 11:28:11 -04:00
RachelElysia
eefd81233f
Fleet UI: Hiding tables and columns from the UI if they are set to hidden (#12298) 2023-06-16 11:38:52 -04:00
RachelElysia
adee3fb447
Fleet UI: [Released styling bug] Fix setup icon pushed off setup steps (#12318) 2023-06-14 08:52:31 -04:00
Luke Heath
ab9e823ac9
Increase software name container width (#12296) 2023-06-12 14:57:15 -05:00
gillespi314
d0ab80ac92
Revise UI for manage hosts empty state (#12285) 2023-06-12 11:47:31 -05:00
RachelElysia
b7b8222da7
Fleet UI: [unreleased bug] Fix ChromeOS platform no longer showing with API change (#12284) 2023-06-12 11:28:57 -04:00
gillespi314
747c752655
Fix unreleased UI bug to show team-level enable end user auth checkbox (#12279) 2023-06-12 09:52:38 -05:00
Jacob Shandling
9d576c8628
UI: Handle singular titles for all platforms (#12267)
## Addresses #12252, task 5
<img width="134" alt="Screenshot 2023-06-09 at 2 49 24 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/7937f233-3e94-4f58-9d79-22e7ee3a12ff">

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-06-09 15:21:15 -04:00
RachelElysia
ab56431667
Fleet UI: [unreleased bug] hide ChromeOS in schedule dropdown (#12268) 2023-06-09 15:20:21 -04:00
Jacob Shandling
b7acae39bb
UI: Compare newly selected label with current label to determine if deselecting (#12265)
## Addresses #12251 

https://loom.com/share/1d3e09ad320f4f069316f120014eaf2c

- [x] Manual QA

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-06-09 14:36:37 -04:00
Lucas Manuel Rodriguez
ed92176194
smtp_settings and sso_settings are not returned to non-global-admins anymore (#12256)
#12248
2023-06-09 15:29:11 -03:00
gillespi314
2213a70241
Fix unreleased bugs: macOS setup for IdP is missing preview image and functionality (#12255) 2023-06-09 13:06:24 -05:00
RachelElysia
215331cd08
Fleet UI: Fix released bug where deleting multiple pages of hosts only deleted first 50 (#12247) 2023-06-09 12:56:09 -04:00
RachelElysia
2ce7291e1b
Fleet UI: [Unreleased bug] Replace static enroll secret with variable one for ChromeOS (#12246) 2023-06-09 11:38:00 -04:00
Jacob Shandling
1c18765dfa
UI: Security patch (#12229)
## Addresses
[confidential/2940](https://github.com/fleetdm/confidential/issues/2940)

Patched a potential security issue in UI

# 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/`
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-06-08 13:13:27 -04:00