fleet/frontend/interfaces
jacobshandling 91b9c4a107
Add host's next maintenance window to the hosts/{id} and hosts/identifier/{identifier} endpoints, and render that data on the host details page (#19820)
## Addresses full stack for  #18554 
- Add new `timezone` column to `calendar_events` table
- When fetched from Google's API, save calendar user's timezone in this
new column along with rest of event data
- Implement datastore method to retrieve the start time and timezone for
a host's next calendar event as a `HostMaintenanceWindow`
- Localize and add UTC offset to the `HostMaintenanceWindow`'s start
time according to its `timezone`
- Include the processed `HostMaintenanceWindow`, if present, in the
response to the `GET` `hosts/{id}` and `hosts/identifier/{identifier}`
endpoints
- Implement UI on the host details page to display this data
- Add new and update existing UI, core integration, datastore, and
`fleetctl` tests
- Update `date-fns` package to the latest version

<img width="1062" alt="Screenshot 2024-06-26 at 1 02 34 PM"
src="https://github.com/fleetdm/fleet/assets/61553566/c3ddad97-23da-42c1-b4ed-b7615ec88aed">

# 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/`
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [x] Added/updated tests
- [x] If database migrations are included, checked table schema to
confirm autoupdate
- For database migrations:
- [x] Checked schema for all modified tables for columns that will
auto-update timestamps during migration.
- [x] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-06-28 10:51:13 -07:00
..
activity.ts Add UI for self service activities (#19305) 2024-05-29 11:50:39 +01:00
campaign.ts update UI to react 18 (#17471) 2024-03-13 19:09:16 +00:00
config.ts Add option to exclude software from device details API response (#19874) 2024-06-24 10:43:16 -05:00
config_option.js add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
datatable_config.ts update UI to react 18 (#17471) 2024-03-13 19:09:16 +00:00
decorators.js add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
dropdownOption.ts UI – when host's scripts_enabled is null, allow running scripts with warning (#18386) 2024-04-18 14:34:20 -07:00
empty_table.ts Icons improvements (making frontend consistent with Figma component library) (#14185) 2023-10-31 16:06:38 +00:00
enroll_secret.ts Add/Edit/Delete enroll secret UI (#2645) 2021-11-15 16:16:06 -05:00
errors.ts dont show SQL errors in the UI (#19898) 2024-06-25 11:38:40 +01:00
form_field.ts Define new Query interfaces for queries with scheduling features (#12676) 2023-07-12 13:22:56 -07:00
host.ts Add host's next maintenance window to the hosts/{id} and hosts/identifier/{identifier} endpoints, and render that data on the host details page (#19820) 2024-06-28 10:51:13 -07:00
host_summary.ts (Released bugs) Fleet UI label bugs: Dynamic platform labels, chromeos dashboard filters for missing chromeos hosts (#16680) 2024-02-09 11:02:23 -05:00
host_users.ts Host Details Page: Users table (#1152) 2021-06-22 12:26:57 -07:00
installer.ts Add UI for Fleet Sandbox to download prepackaged installers (#6721) 2022-07-19 14:28:06 -05:00
integration.ts UI – Calendar events modal follow up (#17788) 2024-03-26 13:39:37 -05:00
invite.ts Fleet UI: 1 new premium role (Observer+, GitOps is hidden) (#11028) 2023-04-07 11:36:47 -04:00
label.ts add ability to create manual labels (#18303) 2024-04-16 17:22:08 +01:00
license.js add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
macadmins.ts Add MDM Card to Windows and All Dashboards and change mdm data source on host details page (#8960) 2022-12-16 15:12:11 -06:00
mdm.ts Update UI for MDM settings to support new macOS workflows (#19297) 2024-05-30 09:10:26 -05:00
notification.ts Refactor Redux-triggered flash message component (#4795) 2022-03-31 23:42:26 -07:00
operating_system.ts more interface updates (#16644) 2024-02-15 10:35:05 -07:00
osquery_table.ts [released bug/s] Fleet UI: Live query sort updates (#17836) 2024-03-26 12:37:08 -04:00
pack.ts Frontend: Organize response interfaces into appropriate interface directories (#8742) 2022-11-18 11:25:39 -05:00
platform.ts Fleet UI: iOS and iPadOS host actions dropdown (#19599) 2024-06-12 12:16:23 -04:00
policy.ts Feature: 15605 merge inherited queries and policies (#18771) 2024-05-07 12:10:06 -04:00
query.ts Feature: 15605 merge inherited queries and policies (#18771) 2024-05-07 12:10:06 -04:00
query_report.ts Added server_settings.query_report_cap (#19692) 2024-06-14 12:24:01 -03:00
query_stats.ts Feature: 15605 merge inherited queries and policies (#18771) 2024-05-07 12:10:06 -04:00
registration_form_data.js Remove username from UI (#1168) 2021-06-24 13:42:29 -07:00
registration_form_data.ts Fix missing field in setup confirmation (#2005) 2021-09-10 18:53:28 -05:00
role.ts Fleet UI: 1 new premium role (Observer+, GitOps is hidden) (#11028) 2023-04-07 11:36:47 -04:00
schedulable_query.ts Feature: 15605 merge inherited queries and policies (#18771) 2024-05-07 12:10:06 -04:00
scheduled_query.ts Feature: 15605 merge inherited queries and policies (#18771) 2024-05-07 12:10:06 -04:00
script.ts Fleet UI: iOS and iPadOS host actions dropdown (#19599) 2024-06-12 12:16:23 -04:00
software.ts UI code cleanup and tests for self service feature (#19487) 2024-06-11 12:56:50 +01:00
ssoSettings.ts Fleet UI: No role = no access, refactor jsx class components to typescript functional components (#12953) 2023-08-02 11:29:49 -04:00
status_labels.ts Include MIA hosts under total count for Offline hosts (#5854) 2022-05-23 14:11:02 -05:00
target.ts Fleet UI: Fix new query bugs introduced (#14309) 2023-10-06 10:03:19 -07:00
team.ts Regenerate schema.sql 2024-03-27 08:19:21 -04:00
team_subnav.ts UI – Team-level host expiry setting (#16276) 2024-01-25 18:19:49 +00:00
user.ts Fleet UI: No role = no access, refactor jsx class components to typescript functional components (#12953) 2023-08-02 11:29:49 -04:00
version.ts Auth Redux Removal (#4924) 2022-04-07 09:08:00 -07:00
vulnerability.ts [unreleased bugs] Vuln details page: missing cards, incorrect link (#17495) 2024-03-08 10:53:02 -05:00
webhook.ts UI – Activity feed webhook automation modal (#19285) 2024-05-28 13:18:02 -07:00