Commit Graph

72 Commits

Author SHA1 Message Date
Jake McDermott e72f0bcfd4 update content loading and error handling
unwind error handling

use auth cookie as source of truth, fetch config only when authenticated
2019-06-14 13:00:37 -04:00
catjones9 91b8aa90ff Added 'Max Hosts' field in the Add/Edit Organization view
* max hosts field is enabled is user is superuser, otherwise it is disabled and default is 0
 * OrganizationForm tests added for max hosts input
 * minMaxValue added in validators to validate user input for max hosts

Signed-off-by: catjones9 <catjones@redhat.com>
2019-06-13 18:43:34 -04:00
Michael Abashian 2ae93261d1 api.js refactor using classes (#250)
Refactor api.js into an api module where endpoint specific models can be imported and used in components.
2019-06-07 15:48:09 -04:00
Keith Grant 29e17ac49e Standardize chip height (#213)
* make all chips the same size

* create DetailList, Detail components; clean up Chips, ChipGroup

* delete BasicChip in favor of <Chip isReadOnly>

* create our own ChipGroup to handle overflow
2019-05-28 08:49:03 -04:00
Keith Grant 510d56b245 refactor PaginatedDataList to renderToolbar prop 2019-05-20 09:13:23 -04:00
Alex Corey 92d8948a83 updates tests 2019-05-17 15:32:04 -04:00
Alex Corey d3cc1a8771 Adds AddOrgBtn to Orgs List empty state 2019-05-17 15:29:05 -04:00
Keith Grant 7ff7517bdf change pagination drop direction to up 2019-05-17 07:47:17 -07:00
Keith Grant 957984d9e9 convert to PF Pagination component 2019-05-16 16:09:58 -04:00
John Mitchell f4550900bb update tests based on i18n changes 2019-05-16 11:38:28 -04:00
Keith Grant 4407aeac20 Add namespacing for query params (#205)
* use qs utils to namespace query params

* refactor Lookup and SelectResource Steps to use PaginatedDataList

* preserve query params when adding new ones

* require namespace for QS Configs
2019-05-15 10:06:14 -04:00
Kia Lam 457c6287a2 General cleanup.
- Fix tests.
- Update snapshots.
- Remove old import statement.
- Add element ids for Sort and Search Components.
2019-05-13 18:42:26 -04:00
Keith Grant e7ec1c6ef8 convert OrganizationList to use PaginatedDataList (#192)
* convert Org list to use PaginatedDataList

* add ToolbarAddButton, ToolbarDeleteButton

* pass full org into OrganizationListItem
2019-05-07 09:51:50 -04:00
Alex Corey b8b2209335 add bottom border to org tabs 2019-05-03 10:27:48 -04:00
Alex Corey b136ce1e1d updating PR issues updated snapshot test 2019-05-01 15:48:08 -04:00
Keith Grant 1be496cfc1 Patternfly upgrade (#188)
* correct spacing after PF update

* update wizard layout/borders for PF upgrade
2019-05-01 13:50:00 -04:00
Alex Corey 420b19cfb9 Merge pull request #185 from AlexSCorey/AlexSCorey-deleteOrgsTest
Alex s corey delete orgs test
2019-04-30 13:22:35 -04:00
Alex Corey f71421f60a removed orgsToDelete and fixed other tests 2019-04-30 10:22:25 -04:00
Alex Corey f4da620c4d updating PR 2019-04-30 09:48:42 -04:00
Keith Grant ffade973a9 upgrade to patternfly 2.x, pf/react-core 3.x (#184) 2019-04-30 08:19:19 -04:00
Alex Corey 1bae944b85 fix tests and function name changes 2019-04-29 17:29:40 -04:00
Jake McDermott ee5b4b072b fix unit and functional tests 2019-04-29 11:35:06 -04:00
Keith Grant 9d66b583b7 158 paginated data list (#180)
* working: rename OrganizationTeamsList to PaginatedDataList

* convert org notifications list fully to PaginatedDataList

* update NotificationList tests

* refactor org access to use PaginatedDataList

* update tests for org access refactor; fix pagination & sorting

* restore Add Role functionality to Org roles

* fix displayed text when list of items is empty

* preserve query params when navigating through pagination

* fix bugs after RBAC rebase

* fix lint errors, fix add org access button
2019-04-29 10:08:50 -04:00
mabashian e5dda696d7 Add new tests for rbac on some of the org pages 2019-04-24 10:10:14 -04:00
mabashian f57876b6d9 Fix existing test failures 2019-04-23 14:55:06 -04:00
John Mitchell 986641de9f Fix ORganizationTeams test 2019-04-22 16:33:12 -04:00
John Mitchell 667cbb0c20 update the rest of the organizations tests 2019-04-22 15:11:28 -04:00
John Mitchell 54499dbf69 update OrganizsationAccess and OrganizationAccessList w mountWithContexts 2019-04-18 17:18:19 -04:00
John Mitchell a6f79c646d update organization add test to use mountWithContexts 2019-04-18 13:54:41 -04:00
John Mitchell b17fb8a596 Add handleHttpError prop to stop error from org detail test 2019-04-11 12:36:19 -04:00
John Mitchell abc3733449 fix test after rebase of org teams update 2019-04-11 11:06:39 -04:00
John Mitchell 344713f938 fix unit tests for network handling 2019-04-11 10:42:33 -04:00
Keith Grant 96906c2ece Merge pull request #157 from keithjgrant/145-org-teams-empty-state
Org teams empty state
2019-04-10 14:01:55 -04:00
Keith Grant 909c5e77c4 rename all test files to *.test.js 2019-04-10 09:55:57 -04:00
Keith Grant 70137dea5a fix tests for OrganizationTeams, OrganizationTeamsList 2019-04-08 10:59:26 -04:00
Alex Corey 09fd8e8106 Merge pull request #141 from AlexSCorey/48-deleteOrgs
Add alert for org. delete.
2019-04-05 12:39:38 -04:00
Alex Corey a42a1bfa17 Addresses PR feedback 2019-04-05 11:29:48 -04:00
Alex Corey de55ec1688 Add alert for org. delete. 2019-04-05 10:48:51 -04:00
Keith Grant 99b2350778 Merge pull request #144 from keithjgrant/120-add-org-form-cleanup
Refactor org add/edit forms with Formik
2019-04-03 09:15:03 -04:00
Keith Grant 40b88da9dd add FormRow component; rename unwrapped components with underscore 2019-03-29 13:50:17 -04:00
Keith Grant 6353d5e410 update tests for org add/edit refactor 2019-03-28 13:02:04 -04:00
John Mitchell 4e80f05cdf Merge pull request #136 from jlmitch5/addOrgTeamsList
add org teams list
2019-03-27 11:30:59 -04:00
Alex Corey a430b5bf9a fixes function naming to match our naming convention in the org. notifications. 2019-03-26 18:08:09 -04:00
John Mitchell 5419434daa rename org teams functions based on guide 2019-03-26 17:04:34 -04:00
Keith Grant 02cd188c2f rename onX methods to handleX 2019-03-25 15:40:20 -04:00
Keith Grant f3a6da20f6 create InstanceGroupsLookup for org add/edit forms 2019-03-25 11:59:14 -04:00
Keith Grant f0c94c7e9c stub api in org add/edit tests 2019-03-25 11:56:29 -04:00
John Mitchell 7e414ace5a add org teams list 2019-03-21 13:12:12 -04:00
Kia Lam 21156d1409 Merge remote-tracking branch 'origin' into access-list-remove-role-functionality 2019-03-13 15:43:30 -04:00
Kia Lam 198dfe7f2e Add unit test to check state when user tries to delete a role. 2019-03-13 14:44:12 -04:00