Commit Graph
100 Commits
Author SHA1 Message Date
Keith Grant 7f24d0c0c2 add SurveyQuestionForm tests 2020-03-20 10:55:07 -07:00
Keith Grant 3f4e7465a7 move template survey files to Survey subdirectory 2020-03-20 10:55:07 -07:00
Keith Grant 9c32cb30d4 add survey question editing, breadcrumbs 2020-03-20 10:55:07 -07:00
Keith Grant 782d465c78 wire in SurveyQuestionAdd form to post to API 2020-03-20 10:55:07 -07:00
Keith Grant 1412bf6232 add survey form 2020-03-20 10:55:07 -07:00
Keith Grant 86aabb297e add documentation for useDismissableError, useDeleteItems 2020-03-13 13:21:59 -07:00
Keith Grant a2eeb6e7b5 delete unused file 2020-03-13 11:40:24 -07:00
Keith Grant 3e616f2770 update SurveyList tests, add TemplateSurvey tests 2020-03-13 10:17:39 -07:00
Keith Grant ac9f526cf0 fix useRequest error bug 2020-03-12 17:08:21 -07:00
Keith Grant eea80c45d1 fix keys, clean up surveylist 2020-03-12 08:42:59 -07:00
Keith Grant 07565b5efc add error handling to TemplateSurvey 2020-03-11 15:06:13 -07:00
Keith Grant 2584f7359e restructure TemplateSurvey & list components 2020-03-11 09:33:04 -07:00
Keith Grant f1120d39db fix column widths when action buttons hidden due to permissions 2020-03-03 14:19:49 -08:00
Keith Grant a60e7a7855 fix redirect url after host delete 2020-02-27 13:39:56 -08:00
Keith Grant 5574cf0595 remove Manual option from project, inventory filters 2020-02-27 11:01:36 -08:00
Keith Grant 7e8fb29658 update qs utils to allow empty string params 2020-02-26 16:38:52 -08:00
Keith Grant 6ffc78bcb0 add missing i18n; fix test names 2020-02-24 14:09:56 -08:00
Keith Grant 8e9fc550f6 convert InventoryList to hooks 2020-02-24 14:09:55 -08:00
Keith Grant 779d190855 convert ProjectList to hooks 2020-02-24 14:09:28 -08:00
Keith Grant 89a4b03d45 convert TeamList to hooks 2020-02-24 14:08:51 -08:00
Keith Grant eba893c99b syntax fix after merge 2020-02-21 11:05:59 -08:00
Keith Grant 03aaf93cef update HostList tests for hooks 2020-02-21 10:36:17 -08:00
Keith Grant 9aef57003a use HostToggle in HostDetail; update tests 2020-02-21 10:36:17 -08:00
Keith Grant 6065eb0e65 Convert HostList to hooks
use useRequest and useDeleteItems
add HostToggle component
2020-02-21 10:31:49 -08:00
Keith Grant 30d97e2fa8 delete commented code 2020-02-18 10:10:18 -08:00
Keith Grant 1f3ad85403 de-lint 2020-02-18 09:25:15 -08:00
Keith Grant 3b71d2a37b convert JobList to function comp w/ hooks 2020-02-17 16:11:48 -08:00
Keith Grant 54ddeaf046 Flush out useDeleteItems hook
refactor TemplateList to use useRequest, useDeleteItems hooks
refactor CredentialList and OrganizationList to use useDeleteItems hook
2020-02-17 10:56:50 -08:00
Keith Grant 69a1a02c70 build useDeleteItems hook 2020-02-17 10:56:50 -08:00
Keith Grant c824f0d590 create updateUrlAfterDelete util 2020-02-17 10:56:50 -08:00
Keith Grant c336c989e7 convert CredentialList to useRequest 2020-02-17 10:56:50 -08:00
Keith Grant 490b76b141 fix TemplateList name in tests 2020-02-12 13:10:14 -08:00
Keith Grant c33cc82d53 go back one page when deleting all items off last page (orgs/creds) 2020-02-12 08:53:34 -08:00
Keith Grant 5c3fe51982 fix credential list page number after deleting 2020-02-11 12:09:13 -08:00
Keith Grant f61af39f08 fix Template(s)List naming discrepancies 2020-02-11 10:24:08 -08:00
Keith Grant 1ad7e663a1 fix org list page on delete 2020-02-11 10:11:27 -08:00
Keith Grant 8f77d15a31 fix errors being logged during tests; de-lint 2020-02-10 16:16:38 -08:00
Keith Grant d06d4d5a8c update tests for form submit errors 2020-02-10 16:16:38 -08:00
Keith Grant 352c8c3cb1 add FormSubmitError to existing forms 2020-02-10 16:16:38 -08:00
Keith Grant 94f21a3464 add submit error support to Project form 2020-02-10 16:16:38 -08:00
Keith Grant ac376f9c87 handle __all__ error message from server in FormSubmitError 2020-02-10 16:16:38 -08:00
Keith Grant 44e4263bee add FormActionGroup error message test 2020-02-10 16:16:38 -08:00
Keith Grant b7f3852ef9 move FormSubmitError to inline beside form buttons; add tests 2020-02-10 16:16:38 -08:00
Keith Grant a934e146ee add FormSubmitError component 2020-02-10 16:16:38 -08:00
Keith Grant cab25656eb add JT form error feedback from API errors 2020-02-10 16:16:38 -08:00
Keith Grant 0f9c906a22 add more robust handling of errors thrown by api 2020-02-10 16:16:38 -08:00
Keith Grant b8226109a7 use optional chaining 2020-02-10 16:16:38 -08:00
Keith Grant b26de8b922 pass Host form API errors back into Formik for display 2020-02-10 16:16:38 -08:00
Keith Grant 67d8c1a4b5 delete unused/redundant component 2020-02-10 16:16:38 -08:00
Keith Grant eceeeea22d remove unneeded default value 2020-02-03 12:55:53 -08:00
Keith Grant 638e8c7add delete dead code/comments & add useRequest docstring 2020-02-03 09:43:06 -08:00
Keith Grant 370a7f9b25 move useRequest to util folder, add tests 2020-01-31 11:39:23 -08:00
Keith Grant ef2fa26126 rename useFetch to useRequest 2020-01-30 16:13:19 -08:00
Keith Grant aaf371ee23 add useFetch demo 2020-01-29 12:04:52 -08:00
Keith Grant d15f7b76fa add useEndpoint hook 2020-01-27 10:20:47 -08:00
Keith Grant c6159a7c3e add more VariablesDetail tests 2020-01-23 11:15:33 -08:00
Keith Grant 49907e337a prevent inventory updates after unmount 2020-01-23 11:02:29 -08:00
Keith Grant a1d7beca83 update VariablesDetail properly if value prop changes (preserving current mode) 2020-01-22 15:42:28 -08:00
Keith Grant cb3ab67361 make VariablesField detect correct mode on mount 2020-01-17 13:39:18 -08:00
Keith Grant 8850687d1b rename usePFSelect to useSyncedSelectValue 2020-01-17 08:47:31 -08:00
Keith Grant 113aa2e11e fix lint errors 2020-01-17 08:34:42 -08:00
Keith Grant e7fead0f2c update Formik formatting to remove warnings 2020-01-16 16:46:13 -08:00
Keith Grant 14990f7e98 finish updating tests for Formik 2.x 2020-01-16 16:21:35 -08:00
Keith Grant 8ef5a6b0e1 upgrade Formik to 2.x; fix some tests with upgrade 2020-01-16 10:13:19 -08:00
Keith Grant 1cc4e302f9 update tests to check for PF Select 2020-01-13 14:41:43 -08:00
Keith Grant 1289ca9103 update TagMultiSelect to use PF <Select> 2020-01-13 14:41:43 -08:00
Keith Grant b18ca5ac1f begin converting TagMultiSelect to usePFSelect 2020-01-13 14:41:43 -08:00
Keith Grant 193a041ef9 finish usePFSelect hook 2020-01-13 14:41:43 -08:00
Keith Grant 7219c17d30 start usePFSelect hook 2020-01-13 14:41:43 -08:00
Keith Grant 79f0f1940f update LabelSelect to use PF Select component 2020-01-13 14:41:43 -08:00
Keith Grant ecf1d79ca5 fix form validation for Organization select in Inventory form 2019-12-19 14:55:48 -08:00
Keith Grant f3c5cb5a2e fix inventory saving without insights credential specified 2019-12-19 10:59:16 -08:00
Keith Grant b794fdbefd de-lint 2019-12-19 10:52:23 -08:00
Keith Grant e688ed813a update tests for detail view changes 2019-12-19 10:41:59 -08:00
Keith Grant bfedbe561c add delete button to InventoryDetail 2019-12-19 09:55:04 -08:00
Keith Grant 6c439bb9ae Add Inventory detail edit button 2019-12-19 09:03:32 -08:00
Keith Grant 7ff4d821ce switch to our CardBody component on all screens, for consistent padding/spacing 2019-12-18 16:10:23 -08:00
Keith Grant 8ff0902177 Fix UserDateDetail translation
Add UserDateDetail to Org detail & InventoryGroupDetail
Add VariablesDetail to InventoryGroupDetail
2019-12-18 11:52:19 -08:00
Keith Grant 3d510c5064 InventoryDetail: handle content loading state & errors better 2019-12-18 11:50:49 -08:00
Keith Grant df47186c43 use UserDateDetail in OrganizationDetail 2019-12-18 11:50:25 -08:00
Keith Grant 2f7607a080 use VariablesDetail for displaying variables field in details views 2019-12-18 11:46:43 -08:00
Keith Grant cde39413c9 switch all tabbed screens to use TabbedCardHeader 2019-12-18 11:46:43 -08:00
Keith Grant 41c9ea3c07 add tests for VariablesDetail & InventoryDetail 2019-12-18 11:46:43 -08:00
Keith Grant 3d45f27502 finish InventoryDetail 2019-12-18 11:46:43 -08:00
Keith Grant 0ab61fd3cb Start inventory detail
* Create VariablesDetail for read-only variables view
* Sketch out InventoryDetail
* Create CardBody and TabbedCardHeader for common custom styling
2019-12-18 11:46:43 -08:00
Keith Grant 846fd67618 de-lint 2019-12-10 12:13:22 -08:00
Keith Grant 3409d39150 fix ProjectLookup re-renders 2019-12-10 11:09:11 -08:00
Keith Grant 9de165a676 revert MultiCredentialLookup loading jank fix 2019-12-10 11:09:11 -08:00
Keith Grant f54616912d de-lint 2019-12-10 11:09:11 -08:00
Keith Grant c003e89ea9 fix loading jank in MultiCredentialLookup 2019-12-10 11:09:11 -08:00
Keith Grant 6e64b5c070 clean up act() errors in form tests after Lookup changes 2019-12-10 11:09:11 -08:00
Keith Grant 75b7d74f91 Lookup tweaks/bug fixes 2019-12-10 10:58:33 -08:00
Keith Grant 569b5bc533 clean up multiple test 'act()' warnings 2019-12-10 10:58:33 -08:00
Keith Grant 9ab9c6961b update Lookup tests, add OptionsList tests 2019-12-10 10:58:33 -08:00
Keith Grant 2e525f8922 update tests for CredentialLookup, OrgLookup, ProjectLookup 2019-12-10 10:58:33 -08:00
Keith Grant 9c6300c2de update MultiCredentialsLookup tests 2019-12-10 10:58:33 -08:00
Keith Grant f8153393b1 fix minor lookup bugs 2019-12-10 10:58:33 -08:00
Keith Grant cb07e9c757 convert all lookups to use new Lookup component 2019-12-10 10:58:33 -08:00
Keith Grant 639b297027 fix credential chips in SelectedList, MultiCredential cleanup 2019-12-10 10:58:32 -08:00
Keith Grant 4341d67fb0 add MultiCredentialsLookup select/deselect logic 2019-12-10 10:58:32 -08:00