Commit Graph

770 Commits

Author SHA1 Message Date
RachelElysia
97e7dadcd1
Host Management and User Management Pages: Reorder tables to ascending order (#1471) 2021-07-26 11:45:06 -04:00
RachelElysia
0c8537a1f9
Fix flash bug (#1456) 2021-07-23 10:51:46 -04:00
RachelElysia
567f43d4a3
Fix disabled color (#1434) 2021-07-21 08:42:50 -07:00
gillespi314
080a7c468b
Update redux with info for newly created user (#1421) 2021-07-20 09:19:53 -05:00
RachelElysia
2794d1297b
Host Details Page: Refactor packs accordion table (#1409) 2021-07-19 11:02:41 -07:00
RachelElysia
37e267bef9
TableContainer additions: simpleSearch utility and IconCell (#1404)
* Create simpleSearch and IconCell
2021-07-19 08:44:11 -07:00
RachelElysia
fc5ba6d12a
Fix TableContainer empty state bug (#1406) 2021-07-16 13:55:48 -07:00
RachelElysia
109dc8d8ce
Create User Modal: Clean tooltip positioning (#1395) 2021-07-15 16:31:32 -07:00
RachelElysia
a2db3ffbe6
Users management/Team management pages: Actions dropdown styling (#1392) 2021-07-15 10:02:58 -07:00
RachelElysia
ad3ed4210f
Host Details Page: Software Inventory Searchable (#1390)
* Refactored Software inventory table to use TableContainer
* Add search, reordering, IconTooltipCell
2021-07-15 10:01:52 -07:00
gillespi314
5176a6d358
Remove unused import (#1370) 2021-07-13 11:20:54 -05:00
RachelElysia
43b526e36e
Create User Modal: No teams exists state (#1354)
* If no teams exist, render no team message when trying to assign a user to a team.
2021-07-12 18:08:03 -07:00
RachelElysia
3a51f95595
Dropdown Component: Clean Styling across Browsers (#1365)
* Dropdown styling (Chrome and Firefox)
* Fix incompatible row heights rendering in tables (Firefox)
2021-07-12 14:50:32 -07:00
gillespi314
e6a01d755c
User Modal: Fix default behaviors based on organization settings (#1366)
- Update create/edit user modal to accurately reflect if SSO is enabled for the individual user (rather than if enabled for the organization as a whole)
- Update create/edit user modal tooltips and disabled fields based on state of organization settings (SSO and SMTP)
2021-07-12 16:39:43 -05:00
RachelElysia
29e900d7c3
Homepage Dashboard - New feature! (#1340)
* Adds homepage dashboard to Fleet app
* Host Summary is displayed on the dashboard
2021-07-12 10:15:47 -07:00
gillespi314
2bb2bf2d5d
Add ability in Fleet UI for admin to create new users without email invitations (#1261) 2021-07-12 10:26:11 -05:00
Martavis Parker
ec23d4ee8e
Select all matching hosts (#1226)
* #940 passing matching props to table; typescript

* #940 fixed use of results title

* #940 logic to swap states of selected and not

* #940 optimized rendering selected text

* #940 began styling to match flexbox spacing

* #940 added logic to API

* #940 clean up

* #940 fixed action

* #940 fixed conflict and coment

* #940 hide select matching if under 100 hosts

* #940 fixed issue with status filter
2021-07-10 10:29:27 -07:00
RachelElysia
1196808f31
Update flash messages - Packs flash message, styling, timeout on success message (#1315)
* New flash message styling - success (4 seconds) and error
* Packs flash messages
2021-07-08 13:55:26 -04:00
RachelElysia
0834af5bb7
User Settings Page and User Management Page: SMTP config conditionally disables email update (#1309)
* Disable Email update field when SMTP is disabled
* Render tooltip, not-allowed cursor, greyed font for disabled UI
* Update integration tests accordingly
* Minor fixes to form styling
2021-07-06 12:22:51 -04:00
RachelElysia
ed08190420
Update table row height and button font size (#1299) 2021-07-05 15:26:38 -04:00
RachelElysia
34205c9b01
Add hover color to settings anchor links (#1302) 2021-07-05 14:58:32 -04:00
RachelElysia
4f09c769b3
Update copied icon spacing and messaging (#1301) 2021-07-05 14:58:15 -04:00
noahtalerman
b9dfbf0a7c
Prepare for 4.0.0 (#1258)
- Update CHANGELOG
- Edit Fleet version for Helm and NPM
- Add permalinks to Fleet product (links have been double checked)
2021-06-29 14:35:21 -04:00
noahtalerman
5e8566d291
Update /hosts/actions to use one file instead of two (redux) (#1256)
- Bring functions from `actions.js` into `actions.ts`
- Remove unused imports from `actions.ts`
- Remove `actions.js`
2021-06-29 14:14:01 -04:00
Martavis Parker
bc4ae0fd1d
UI tweaks 4.0.0 (#1257)
* #1246 removed outline for focused tab

* #1247 adjusted styles for actions dropdown

* #1249 addressed styles for transfer modal dropdown
2021-06-29 11:10:47 -07:00
Zach Wasserman
a7461d3ece
Improvements to fleetctl enroll secret specs (#1244)
- Do not render Team ID if null.
- Make request and response schema consistent (breaking change).

Fixes #186
2021-06-29 10:58:15 -07:00
RachelElysia
7d99084f5b
Host Details Page: Transfer button (#1233)
* Transfer teams modal for Global Admin and Global Maintainer
* CTA to Create a team for Global Admin only
* Update e2e tests to include transfer host button
2021-06-29 13:48:57 -04:00
Zach Wasserman
b967eabb3d
Fix frontend rendering error when software vulnerabilities missing (#1251)
This error was not caught in E2E testing because the software inventory
feature flag was turned off. This is now also enabled for E2E tests.

Fixes #1245
2021-06-29 10:03:17 -07:00
gillespi314
917e1886d2
Redirect user to login when they reset their own sessions/API tokens from admin user management page (#1240)
* Redirect to login when user resets their sessions

* Update Cypress test
2021-06-28 19:33:05 -05:00
RachelElysia
c8c5e0db56
User Settings Page: Add validation for email and full name (#1241) 2021-06-28 16:47:00 -07:00
Zach Wasserman
d6d584094f
Host Details Page: Render vulnerable software warnings (#1220)
* Conditionally renders vulnerability div and issue tooltip
* Refactors IconToolTip to include an Error icon
* Add vulnerabilities to type interface, small cleanup

Co-authored-by: Rachel Elysia Perkins <rachel@fleetdm.com>
2021-06-28 11:09:45 -07:00
Zach Wasserman
f1e42ee775
Display "No team" in Hosts table if the host is not assigned to any team (#1221)
- Add new formatter that returns "No team" if `team` does not exist
- Add sort to the "Team" column
2021-06-28 13:59:06 -04:00
gillespi314
33a02834c8
Add ability to rotate a user's API token (#1211)
* Add reset sessions action to manage users page

* Add Cypress test
2021-06-28 10:20:32 -05:00
noahtalerman
6c03415dae
Update documentation structure (#1230)
- Remove `2-Orbit-osquery` directory
- Rename `3-Deployment` directory to `2-Deploying`
- Rename `4-Contribution` directory to `3-Contributing`
2021-06-28 11:15:22 -04:00
Zach Wasserman
5e26af701b Merge branch 'main' into teams 2021-06-25 18:48:20 -07:00
noahtalerman
7338e7bfef
Add sentence casing to full name. Remove letter spacing from password fields (#1207) 2021-06-25 17:46:11 -04:00
noahtalerman
a21d027518
Add success notification for creating and updating labels (#1205)
- Add "Label created. Try refreshing this page in just a moment to see the updated host count for your label." message after the user successfully creates a label.
2021-06-25 11:58:02 -04:00
noahtalerman
6290bb24e6
Update notification message for inviting users and update notification styles (#1204)
- Add "An invitation email was sent from `sender_address` to `email`." to notification after a new user is successfully invited in the Fleet UI.
- Update notification styles
2021-06-25 11:55:47 -04:00
noahtalerman
bf4eb899c6
Add usage statistics documentation to Using-Fleet section (#1196)
- Add new `usage-statistics.md` file
- Update link in the Fleet UI to point towards new docs
2021-06-24 16:59:25 -04:00
RachelElysia
aeb852e168
Remove username from UI (#1168)
* Remove username from UI code
* Remove username from tests
* Remove username from database
* Modify server endpoints for removing username
* Implement backend aspects of removing username
* Update API docs
* Add name to fleetctl
2021-06-24 13:42:29 -07:00
gillespi314
c51ef4447d
Revise help text on team members page (#1179)
* Revise help text on team members page

* Update Cypress test
2021-06-23 22:20:56 -05:00
Martavis Parker
7af97579fe
Frontend of usage statistics (#1177)
* #454 added usage stats disclaimer to setup confirmation

* #454 added new section to settings for usage stats

* #454 fixed vulnerability for hrefs

* removed jsx file

* #454 added logic to checkbox

* #454 created modal to preview usage stats; cleanup

* fixed tests and linting
2021-06-23 15:19:01 -07:00
RachelElysia
50a49b25bf
Account settings page: Email update UX (#1142) 2021-06-23 07:29:49 -07:00
Martavis Parker
42272f358f
#1108 send users to manage queries if error (#1154)
* #1108 send users to manage queries if error

* #1108 fixed tests and lint

* #1108 fixed more tests

* #1108 new clause to show different error message

* #1108 fixed logic
2021-06-22 16:44:40 -07:00
RachelElysia
122895bd08
Host Details Page: Users table (#1152)
Feature renders a Users table based on API host.users
2021-06-22 12:26:57 -07:00
gillespi314
97efed7f9a
Handle empty states for name and author fields (#1155) 2021-06-22 14:14:18 -05:00
noahtalerman
e02b88d010
Update links to documentation so that they use main branch (#1151)
* Update to main branch

* Update link to releasing Fleet
2021-06-21 16:40:15 -05:00
noahtalerman
17a6c21224
Restructure documentation in preparation for docs living on fleetdm.com (#1143)
* Remove Orbit top level folder and rename folders to Deploying and Contributing

* Update link in doc README
2021-06-18 15:58:21 -05:00
Martavis Parker
3af64748ab
Pressing Enter on setup's Confirmation page (#1141)
* #917 fixed enter key for last page; TS overhaul

* #917 clean up

* Update frontend/components/forms/FormField/FormField.tsx

Co-authored-by: Zach Wasserman <zach@fleetdm.com>

* #917 fixed tests and linted

Co-authored-by: Zach Wasserman <zach@fleetdm.com>
2021-06-18 13:33:45 -07:00
RachelElysia
8ee66f3309
Input field and form field error state (#1132)
Fix other small consistencies: password spacing, dropdown error, error messages, pack form order
2021-06-18 14:56:11 -04:00
RachelElysia
3ed6573ff3
Update flash message styling (#1140) 2021-06-18 14:54:50 -04:00
noahtalerman
e984e6fc14
Render correct "Edit user" modal on the Team details - members page (#1136)
- Determine the current user's correct tier and render the correct "Edit user" modal
2021-06-18 12:49:17 -04:00
Zach Wasserman
19e8da177f
Allow Packs to be targeted to Teams (#1130)
- Add additional target type for packs.
- Refactor pack target datastore.
- Fixes for frontend target selector tier logic on packs page.
2021-06-18 09:43:16 -07:00
noahtalerman
0255638f0b
Add persistence to saved columns in "Hosts" table after user logs out (#1131)
- Add `removeItem` method so that we only remove the `auth_token`, and not the saved columns, from `localStorage` when the user logs out
2021-06-18 10:32:51 -04:00
RachelElysia
7859784d97
AuthenticatedRoutes conditionally reroutes api_only user (#1123)
* Renders CTA Back to login page if user.api_only
* Edge cases: Redirects to log in for !user and redirect to home for !user.api_only
2021-06-18 10:08:50 -04:00
Martavis Parker
9da1660959
Modal for user password reset (#1121)
* #431 added modal for user password reset

* Update frontend/pages/admin/UserManagementPage/components/ResetPasswordModal/_styles.scss

Co-authored-by: noahtalerman <47070608+noahtalerman@users.noreply.github.com>

Co-authored-by: noahtalerman <47070608+noahtalerman@users.noreply.github.com>
2021-06-17 13:48:46 -07:00
Martavis Parker
5b2cac31d9
Agent options added to organization settings (#1120)
* #511 refactored update options - new params & ts

* updated server to include agent_options for read and update

* added agent options form to org settings

* #511 finished connecting agent form to server

* #511 fixing api to save/read agent options

* #511 linted

* #511 fixed reading & updating agent options

* #511 api fixes to support agent options

* #511 removed log

* Fix json.RawMessage pointers in tests

Co-authored-by: Zach Wasserman <zach@fleetdm.com>
2021-06-17 13:47:15 -07:00
RachelElysia
1736c59306
Host Details Page: Remove enroll secret (#1124)
* Remove enroll secret
2021-06-17 16:28:59 -04:00
RachelElysia
9360ed3f64
403 Page for API Only User (#1102)
* Typescript files
2021-06-17 11:11:28 -04:00
Zach Wasserman
774bc4ef93
Fix loading of enroll secrets for Teams (#1113)
Trigger logic based on presence of Basic tier, rather than absence of
Core tier.

Fixes #1100
2021-06-16 11:57:47 -07:00
Zach Wasserman
d78c5fd124
Clean up service and return license errors (#1097)
- Expose license errors instead of permission errors by adding explicit skip authorization.
- Remove pre-Teams authorization checks from service.

Fixes #964
2021-06-16 10:55:41 -07:00
RachelElysia
1d3b624be2
E2e Testing: Fleet Core global observer (#1099) 2021-06-16 13:40:23 -04:00
noahtalerman
fb12ed10ca
Add hosts count to Team details page (#1090)
- Display number of hosts assigned to a team on the Team details page
- Add back button styles to "Back to teams" link
2021-06-15 13:04:32 -04:00
Martavis Parker
4bfeddda79
Escape key closes modals (#1088)
* Closes #922

* #922 added Windows section to build docs

* go sum updated

* updated go sum

* fixed #963 - calling teams api if not on core

* added command for seeding queries

* added command default to higher level

* linted test

* only need 2 queries

* fixed e2e command for seeding queries

* fixes #952 - added esc key binding to modals

* #952 lint fix
2021-06-15 09:56:23 -07:00
RachelElysia
5e52ba7aea
User Management Page: Edit user's email flash message (#1084)
* Render flash message with sender/receiver information on user's email update
2021-06-15 10:35:28 -04:00
noahtalerman
0f244140cc
Edit message for set up, forgot password, and change password (#1083)
- Add the `hint` that is used on the _Set up_ page to the _Change password_ form and _Reset password_ form
- Add a consistent error message when a password fails to meet the criteria. Using the phrase "criteria below" because all pages render the above `hint`
2021-06-15 09:51:04 -04:00
RachelElysia
023e931911
Fix create user for basic tier (#1081) 2021-06-14 16:49:06 -04:00
noahtalerman
9b1cd14839
Fix set up flow styles (#1073)
- The RegistrationForm component now uses 'fleet' for class names. Update classnames in this component's stylesheet to use 'fleet'
2021-06-14 15:45:43 -04:00
Zach Wasserman
0a22b9195e
Rename components and errors in setup flow (#1059) 2021-06-10 17:01:18 -07:00
gillespi314
6040f88964
Fix styling of action dropdown button (#1048)
Fix styling of action drop drown button for `hover` and `focus` states to match _Users_ tab
2021-06-10 12:18:20 -04:00
noahtalerman
7104d0312e
Fix for cannot run query for selected teams (#1037)
- Fix ability to run live query against teams
- Update unit tests to support live queries against teams
2021-06-10 11:37:25 -04:00
RachelElysia
78fb7e22cc
Query Edit/Run Page: Conditionally render Teams grouping in select targets dropdown (#1040)
* Conditionally render teams in targets dropdown
* Modify tests accordingly
2021-06-10 11:35:42 -04:00
RachelElysia
5dd538e2cc
Missing detroy function (#1049) 2021-06-10 11:33:00 -04:00
RachelElysia
5e40afa8ba
Clean up linter warnings (#1026)
* Fix 25+ linter warnings
Co-authored by: Sarah Gillespie @gillespi314
2021-06-10 10:00:03 -04:00
gillespi314
b419958b73
Change user settings dropdown for current user (#1036)
* Change user settings dropdown for current user

* Restyle action dropdown
2021-06-09 18:51:27 -05:00
RachelElysia
6e5a45eb60
Host Details Page: Hide action buttons for observers only (#1027) 2021-06-09 19:05:14 -04:00
RachelElysia
c695093c70
Create/edit user modal: Renders new UI for Fleet Core (#1029) 2021-06-09 19:04:14 -04:00
noahtalerman
fce7d3bef5
Fix ability to run a live query when coming from host details page (#1035)
- Add `queryId` to `fetchTargets()` function call
2021-06-09 18:54:59 -04:00
Martavis Parker
121de5a87f
Fixed Manage Hosts Page Calling Teams API on Core (#1038)
* Closes #922

* #922 added Windows section to build docs

* go sum updated

* updated go sum

* fixed #963 - calling teams api if not on core
2021-06-09 15:17:50 -07:00
RachelElysia
588a48dd67
User Management Page: Teams column renders for basic tier only (#1023)
* Render teams column only for Basic tier

Co-authored by: Sarah Gillespie @gillespi314
2021-06-08 19:14:52 -04:00
RachelElysia
84182e4f49
Live query error message (#1007)
* Rewrite and style live query error
2021-06-08 19:10:22 -04:00
RachelElysia
f57768b131
Fix Teams tab push bug (#1008) 2021-06-08 13:21:50 -04:00
RachelElysia
70e416f263
No teams tab for Core Tier (#1001)
* Teams tab renders for basic tier only
2021-06-07 19:17:16 -04:00
RachelElysia
2b9aa5ac7e
Flash message x icon visible (#992)
Closes #991
2021-06-07 15:48:52 -04:00
RachelElysia
225500ad28
Empty query message (#989)
* Add link to standard query library
* Style and external link icon
2021-06-07 14:44:02 -04:00
RachelElysia
83acd4911a
Fix hosts empty state styling (#990)
Closes #970
2021-06-07 14:07:21 -04:00
Zach Wasserman
255395135f
Rename custom ACE editor (#983) 2021-06-06 19:32:18 -07:00
Zach Wasserman
d82560f7d6
Rename frontend icon component (#982) 2021-06-06 18:56:30 -07:00
Zach Wasserman
229a9afed2
Change name of localstorage auth token (#980) 2021-06-06 18:28:37 -07:00
Zach Wasserman
7ff72f7ac1
Rename main frontend directory (#977) 2021-06-06 17:30:54 -07:00
Zach Wasserman
db459d3363
Continue to update names in backend code and docs (#976) 2021-06-06 16:58:23 -07:00
noahtalerman
0566fc57f3
Update action button styles on "Manage packs" page and "Manage queries" page (#960)
- Add `text-icon` variant to buttons on _Manage packs_ page
- Add `text-icon` variant to buttons on _Manage queries_ page
2021-06-04 18:03:32 -04:00
RachelElysia
c68a89b1c3
Team maintainer can add host (#961) 2021-06-04 15:19:39 -04:00
RachelElysia
e52e0747ad
Query Edit/Run: Conditional select targets dropdown (#923)
* Modify targets endpoint to  use queryId
* Conditionally render query page including queryId
* Includes conditionally renders target dropdown

Co-authored by: Sarah Gillespie @gillespi314
Test mods co-authored by: Gabriel Hernandez @ghernandez345
2021-06-04 15:13:59 -04:00
Gabriel Hernandez
f181d24698
enroll secret dropdown completion (#958)
* Add tier permissions for seeing the enroll secret dropdown.
* Hooks up API to show different team enroll secrets when selected from the dropdown.
2021-06-04 11:03:49 -07:00
RachelElysia
e4c866cf7c
Teams grouping in Select Targets Dropdown (#873)
* Renders targets by team
* Conditional rendering for no hosts available
* Update styling to match figma
2021-06-04 12:37:56 -04:00
RachelElysia
af301be81c
403 Page, routing for tier permissions (#920)
* 403 page, svg, routing
* Reroute basic tier pages if no permission to access
2021-06-04 12:34:27 -04:00
Gabriel Hernandez
f127f8c2cd
add new permission routes and messaging (#915)
* add new permission routes and messaging

* add messaing for no permissions

* query-library-os-icons (#913)

Added query library os icons to website assets.

* fix broken check for config before api responds

Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
2021-06-04 14:00:14 +01:00
RachelElysia
1b131bd9db
Packs page: action icons (#935)
* Render packs page new icons: Enable, disable, delete, search
2021-06-03 16:50:13 -04:00
noahtalerman
bf37cb975e
Fix checkbox styles on master branch (#942)
- Update `Checkbox.jsx` and checkbox styles to align with changes on the `teams` branch 
- Edit checkbox styles in the `InviteUserForm` component
2021-06-03 13:46:35 -04:00
RachelElysia
875d6bb6ac
Fix firefox icons (#931)
* Firefox compatible icons: plus, carat, x

Note: css property `content: url(imagefile);` only compatible with pseudo elements
2021-06-03 09:20:06 -04:00
noahtalerman
567950d5f0
Fix frontend bug in which target picker rendered incorrectly on master branch (#934)
- Before the fix the "X" button to remove the target was floating in an odd place
- Edit to replicate new styles found in the teams branch
2021-06-02 18:04:52 -04:00
RachelElysia
0867c717cf
Roles: only observers, only maintainers (#929)
* User roles render for only team observers and only team maintainers
2021-06-02 15:55:52 -04:00
RachelElysia
0f09c2e837
Render host status icons (#930) 2021-06-02 15:53:20 -04:00
RachelElysia
9469cb0bf1
Packs pages: Edit page empty state rendering, Manage page update UI (#885)
* Packs: Update empty state, tables, select targets pills, platform pills, icons, phrasing
2021-06-01 09:10:35 -04:00
Zach Wasserman
a5bd03e5d7 Merge branch 'master' into teams 2021-05-31 10:56:50 -07:00
Zach Wasserman
64f2cfc9cd
Refactor enroll secrets to support Teams (#903)
- Add `team_id` field to secrets.
- Remove secret `name` and `active` fields (migration deletes inactive secrets).
- Assign hosts to Team based on secret provided.
- Add API for retrieving secrets by Team.
2021-05-31 09:02:05 -07:00
Zach Wasserman
e6e3b6e5f4
Add robots noindex to frontend HTML head (#892)
Asks Google and other crawlers not to include the page in search
results.

Closes #890
2021-05-28 11:41:24 -07:00
RachelElysia
19dd6e772b
Teams query manage page: Styling (#881)
* Style query manage page including side panel and table
* Conditional side panel rendering

Additional riders:
* Less brittle team e2e test
* Update all search icons across app
2021-05-27 19:39:35 -04:00
RachelElysia
c42f150fac
Query Edit/Run Page: Observer view (#820)
* Query Edit/Run page renders based on user role
* Original UI for global admin/ global maintainer
* New UI for global observer / team maintainer / team observer
* New create new query UI for team maintainer
* Styling matches Figma
* Tests modified accordingly

Styling Closes #859

Co-authored by: Sarah Gillespie @gillespi314
Tests co-authored by: @ghernandez345
2021-05-27 12:06:24 -04:00
Gabe Hernandez
184d375e55
fixes for teams bugs (#869)
* add message for transfering hosts to no team

* fix issue where editing user in members page did not update the table properly
2021-05-27 10:45:45 +01:00
Gabe Hernandez
c018823abf
conditionally show add label button (#854) 2021-05-26 13:10:04 +01:00
Gabe Hernandez
d3932d736d
add permission to host page (#852)
* update genreating of available host table headers based on tier

* stoping point for host permissions

* fixed up available headers for teams depending on permissions

* show select column on host table properly
2021-05-26 13:08:42 +01:00
gillespi314
15ee1f5358
Add sublabel for enable single sign on checkbox (#834)
- Adds the following text below the "Enable single sign-on" option: "Password authentication will be disabled for this user."
- Adds sentence casing so that "Enable Single Sign On" becomes "Enable single sign-on"
2021-05-25 17:04:00 -04:00
gillespi314
5c23bd0d83
Handle empty states for host details (#833)
- Adds handling for edge cases of empty values for host name and other host details
- Checks for empty values (e.g., `""`, `undefined`, `null`, `NaN`) and normalizes to `"---"` for display in UI for host details page
- Wraps calls to Kolide helper functions that transform timestamps and similar data to human readable form so that the UI will display the empty state instead of calling the helper function when argument is `"---"`
2021-05-25 17:03:38 -04:00
gillespi314
09cd3622da
Fixes to new pack page (#857)
- Fix "Query pack title" and "Description" input fields so they fill the full width of their container
-  Replace "New Pack" with "New pack" in the page header (sentence casing)
-  Input titles should have the font weight set to $bold
-  Remove the folder icon from the title
-  Remove bold sections from paragraphs including the "(interval = 3600s)," "targets," "individual hosts," and "labels."
-  Change bullet and link colors to $fleet-core-vibrant-blue
-  Replace differential and snapshot kolidecons with png images included in the Figma page.
2021-05-25 17:03:03 -04:00
RachelElysia
a6e921c7b8
Query Manage Page: Role based views (#843)
* Removes create new query button from only observers
* Renders CTA ManageQueriesPage side panel
* Renders Observer can run column for non observers
* Fixes integration tests: ManageQueriesPage and SidePanel

UI co-authored by: @gillespi314
Integration tests co-authored by: @ghernandez345
2021-05-25 16:03:32 -04:00
RachelElysia
0395020b6f
Fix jumping bug dropdown onClick (#856) 2021-05-25 12:03:16 -04:00
RachelElysia
daa244ee00
Nav bar: Tabs render by role (#845)
* Nav tabs render based on permissionUtils global role

Co-authored by: @gillespi314
2021-05-25 11:10:13 -04:00
RachelElysia
c0f67c5822
Packs Page UI: form pill contrast (#837)
* Pill border and colors
* Styling font, margin, padding (sans new icon)
* New close icon
2021-05-24 13:47:05 -04:00
RachelElysia
3d83fcaa35
Style checkbox (#836)
* Style checkbox
* Label style uses -radius variable.

Co-authored-by: Noah Talerman <noahtal@umich.edu>
2021-05-24 13:46:13 -04:00
RachelElysia
ce005779e6
Host details page: Render team (#813)
* Render host team for basic tier only
* No team greyed out
2021-05-21 15:08:35 -04:00
Gabe Hernandez
7926734266
test and team feature improvements (#804)
* add messaging in autocomplete dropdown to show reason why user cannot be selected

* user permission utils

* doc autocomplete dropdown and move it closer to wehre its used

* test for select teams form

* test for data table and transfer host endpoint
gss

* moving host actions and entities to ts

* change host transfer to new endpoint:

* added more tests to data table

* change some comments

* change import path

* fix build TS errors

* change data table test string
2021-05-21 17:29:28 +01:00
Gabe Hernandez
160ccac7b2
add more permissions (#828) 2021-05-21 15:00:03 +01:00
Zach Wasserman
22feb87de4
Fix capitalization on "Select pack targets" (#819) 2021-05-20 09:29:37 -07:00
RachelElysia
3286a9c4bc
Query Results: Render errors table on fullscreen (#807)
* Render errors table on fullscreen
2021-05-20 11:43:12 -04:00
Noah Talerman
72882e8f9f Merge branch 'master' into teams 2021-05-19 13:16:54 -04:00
noahtalerman
27cfe19ac2
Disable "Refetch" button for offline hosts (#799)
- Disable "Refetch" button if the host is offline
- Disable the refetch tooltip if the host is in the `refetch_requested` state.
2021-05-18 18:02:39 -04:00
noahtalerman
c965e93339
Add persistent fetching to Host details page and edit query modal styles (#791)
* Improve UX custom query option

* Persist custom button on filter

* Remove superfluous CSS

* Edge case custom query button

* Add sentence case and edit modal margins

* Add persistent refetch state. Edit querymodal styles

* verbiage tweak (since filters are cleared)

Co-authored-by: RachelElysia <rachel.elysia.perkins@gmail.com>
Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
2021-05-18 15:46:44 -05:00
noahtalerman
f2755ec93e
Add icon button styles and edit TableContainer to support styles (#713)
- Add `text-link-icon` button variant
- Add `actionButtonVariant` and `actionButtonIcon` props to `<TableContainer />`.
- Add 3 new icon assets (pencil, trash, and edit columns)
2021-05-18 12:30:57 -04:00
Gabe Hernandez
d0f839a614
added permission code (#787) 2021-05-18 16:08:48 +01:00
RachelElysia
2036b4ded6
Host details page: Refetch button (frontend) (#765)
Feature: Refetch button on the host details page
* Button refetches data for an online host
* Button disabled with UI tooltip for an offline host
2021-05-17 19:10:59 -04:00
RachelElysia
117130701a
Fix url-prefix links (#769)
* Fix various url-prefix links

Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com>
2021-05-17 17:04:21 -04:00
RachelElysia
bf81875d10
Teams agent options page (#727)
* Team managers can configure agent_options for each team
* Previous osquery_options now passes teamId for team.agent_options 
* Code conversions: JS to TS, global to team specific, class components to functional components

(Linting errors on PR are just those external broken links)
2021-05-14 10:14:19 -04:00
RachelElysia
381956b528
Host custom query button modification (#758)
* Improve UX custom query option
* Edge case custom query button persists
2021-05-13 19:29:31 -04:00
Gabe Hernandez
6fe59719d1
fixed getEnrolled method names (#763) 2021-05-13 15:43:49 +01:00
Gabe Hernandez
87c4aba10d
bulk selecting hosts (#756)
* added teams to add host modal dropdown

* bulk and transfer host on host page

* started transferhost API call

* hook up client side of api

* hook up client side of api call for enrol secrets

* added selection number and clear all selections button

* remove log and document

* fix ManageHostPage tests

* fix linting errors

* add indeterminate styles to checkbox

* added clearable handler for dropdown component

* fix up no team for add modal

* Add active selection styles and move specific host table styles into ManageHostsPage styles

* changed add host team dropdown to include no team option

* add no team option to bulk transfer host options

* change enroll spelling

Co-authored-by: Noah Talerman <noahtal@umich.edu>
2021-05-13 15:30:42 +01:00
noahtalerman
61c5eceb97
Resolve lint errors and js unit tests (#759)
- Resolves JS lint error and unit tests in the `teams` branch
- We believed these failed tests went unnoticed by CI in #723
2021-05-12 13:52:02 -04:00
RachelElysia
4d913b166c
Host Details Page: Convert seconds to larger units, clean repetitive edge case code (#750)
* Create and use seconds conversion helper function
* Debug edge cases between packs and pack_stats discrepancies
2021-05-12 11:49:57 -04:00
Gabe Hernandez
2ab1d106b0
team add new host UI (#723)
* added permissions for adding host button on host page

* added teams to add host modal dropdown

* add placeholder for dropdown and fix some type issues

* added add host redirect modal on team details
2021-05-12 14:06:39 +01:00
RachelElysia
58445ede82
Replace icons (#747)
* Replaces dropdown icon, close icon, carat icon, collapse icon, add icon

Co-authored-by: Sarah Gillespie <sarahgillespi314@gmail.com>
2021-05-10 16:00:34 -04:00
RachelElysia
d4147e916d
Host details page: packs accordion (#724)
* Pack queries accordion
* Connects to query_stats API
* No packs edge case

Co-authored-by: Sarah Gillespie <sarahgillespi314@gmail.com>
2021-05-07 18:18:52 -04:00
noahtalerman
40f2452e46
Change markdown links to relative links (#731)
My changes to the documentation file structure made in #717 resolved all broken documentation links on the `master` branch but not on the `teams` branch. As a result, those developing on the `teams` branch always get a   for the "Markdown link check" test.

- Add relative markdown links in the `teams` branch to resolve failed link test
2021-05-06 10:59:18 -04:00
noahtalerman
9fb9da31f5
Bring Orbit docs into Fleet docs and add FAQ section (#717)
- Add new `2-Orbit-osquery/` directory to the top-level `docs/` directory.
- Rename `2-Deployment/` -> `3-Deployment/` to accommodate new Orbit directory.
- Rename `3-Contribution/` ->  `4-Contribution/` to accommodate new Orbit directory.
- Add FAQ section to Orbit documentation.
2021-05-04 15:50:18 -04:00
RachelElysia
b8aec63413
Host details page styling (#710)
* Host details page restyled to match Figma
* Page uses flexboxes
* Text match Figma
2021-05-03 18:58:23 -04:00
Noah Talerman
81bc137195 Merge style variables from master into teams 2021-04-30 18:12:49 -04:00
noahtalerman
0f48eb8525
Bring new style variables from teams into master (#707)
This PR brings the style changes made in the "Align Fleet UI colors with Figma components"
#615 and "Align Fleet UI with Figma (spacing and fonts)" #628 PRs into the master branch.
2021-04-30 17:32:50 -04:00
Gabe Hernandez
00b9c77777
Improve team setting functionality (#704)
This makes some improvements to the team settings pages. These polish up the experience.
2021-04-30 12:13:04 -07:00
Zach Wasserman
a17556b2db Merge branch 'master' into teams 2021-04-30 09:40:10 -07:00
RachelElysia
0376555683
E2e test: invite/activate user (#699)
* Tests user invite, email link, and user activation
* Disables cypress fixtures folder

Reviews and suggestions by: Zach Wasserman <zach@fleetdm.com>
2021-04-30 11:47:33 -04:00