Commit graph

824 commits

Author SHA1 Message Date
Erik Jan de Wit
7f21d03bc2 changed asyncStateFetch to be it's own hook
it now cancels pending requests making sure we
don't leak memory + it makes for an nicer looking API
2021-05-18 14:35:09 +02:00
dependabot[bot]
2c23807742
Bump postcss from 8.2.14 to 8.2.15 (#609)
Bumps [postcss](https://github.com/postcss/postcss) from 8.2.14 to 8.2.15.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.2.14...8.2.15)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-18 10:43:19 +02:00
dependabot[bot]
78721498cf
Bump keycloak-admin from 1.14.15 to 1.14.16 (#600)
Bumps keycloak-admin from 1.14.15 to 1.14.16.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-14 14:34:27 -04:00
dependabot[bot]
1bce04dcca
Bump postcss from 7.0.32 to 8.2.14 (#599)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.32 to 8.2.14.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.32...8.2.14)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-14 14:34:14 -04:00
dependabot[bot]
24e9c20f14
Bump eslint-plugin-react from 7.20.5 to 7.23.2 (#597)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.20.5 to 7.23.2.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.20.5...v7.23.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-14 14:34:00 -04:00
dependabot[bot]
6ddb063e0a
Bump @storybook/addon-actions from 6.1.7 to 6.2.9 (#596)
Bumps [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/addons/actions) from 6.1.7 to 6.2.9.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v6.2.9/addons/actions)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-14 14:33:26 -04:00
Erik Jan de Wit
55f585413a
removed unused dependencies (#581) 2021-05-07 10:40:51 +02:00
Erik Jan de Wit
8d72f8a705
Fixing cypress tests (#586)
* upgrade cypress

* fixed delete now has dialog

* also check "unAssign"

* client type no longer required

* providers and group changes

* grp creation working

* moved create realm button ouside the dropdown

* sped up test and added cleanup

* Revert "moved create realm button ouside the dropdown"

This reverts commit e2076a5305808417de910ba8fada8e528e5c356a.

* make test re-runnable

* removed un needed navigation

* Fix misformed Cypress config for GitHub Action

* cleanup after test

* fixed cleanup

* temporary removed this test

* also remove user "new"

* try adding a wait for CI

* get different modal id

* add {force: true} to modal functions

* mv grp search last and ignore 401

* try using cy.get and disable video for testing

* add back video artifacts

Co-authored-by: mfrances <mfrances@redhat.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
Co-authored-by: jenny-s51 <jshandel@redhat.com>
2021-05-06 07:31:40 +02:00
dependabot[bot]
9d25c48e63
Bump typescript from 3.8.3 to 4.2.4 (#573)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.3 to 4.2.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.3...v4.2.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 11:51:09 +02:00
dependabot[bot]
441a3fe6cf
Bump react-error-boundary from 3.1.0 to 3.1.1 (#571)
Bumps [react-error-boundary](https://github.com/bvaughn/react-error-boundary) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/bvaughn/react-error-boundary/releases)
- [Changelog](https://github.com/bvaughn/react-error-boundary/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bvaughn/react-error-boundary/compare/v3.1.0...v3.1.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 10:21:59 +02:00
dependabot[bot]
0e83e2b1c5
Bump @snowpack/plugin-webpack from 2.0.12 to 2.3.1 (#574)
Bumps [@snowpack/plugin-webpack](https://github.com/snowpackjs/snowpack/tree/HEAD/plugins/plugin-webpack) from 2.0.12 to 2.3.1.
- [Release notes](https://github.com/snowpackjs/snowpack/releases)
- [Changelog](https://github.com/snowpackjs/snowpack/blob/main/plugins/plugin-webpack/CHANGELOG.md)
- [Commits](https://github.com/snowpackjs/snowpack/commits/@snowpack/plugin-webpack@2.3.1/plugins/plugin-webpack)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 10:15:24 +02:00
Erik Jan de Wit
c2b78c471b
added keys tab to client details (#557) 2021-05-04 10:11:58 +02:00
dependabot[bot]
ffbeddebe7
Bump @storybook/react from 6.1.7 to 6.2.9 (#570)
Bumps [@storybook/react](https://github.com/storybookjs/storybook/tree/HEAD/app/react) from 6.1.7 to 6.2.9.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v6.2.9/app/react)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 13:32:33 -04:00
dependabot[bot]
91aeb02331
Bump @patternfly/react-table from 4.26.6 to 4.26.7 (#568)
Bumps [@patternfly/react-table](https://github.com/patternfly/patternfly-react) from 4.26.6 to 4.26.7.
- [Release notes](https://github.com/patternfly/patternfly-react/releases)
- [Commits](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@4.26.6...@patternfly/react-table@4.26.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 13:06:05 -04:00
dependabot[bot]
4df62e42f5
Bump @storybook/addons from 6.1.7 to 6.2.9 (#567)
Bumps [@storybook/addons](https://github.com/storybookjs/storybook/tree/HEAD/lib/addons) from 6.1.7 to 6.2.9.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v6.2.9/lib/addons)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 12:44:31 -04:00
dependabot[bot]
c8fb7887eb
Bump @types/file-saver from 2.0.1 to 2.0.2 (#565)
Bumps [@types/file-saver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/file-saver) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/file-saver)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 12:44:18 -04:00
dependabot[bot]
3fb72be0a2
Bump @types/lodash from 4.14.165 to 4.14.168 (#566)
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.165 to 4.14.168.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 12:43:48 -04:00
dependabot[bot]
11ca7ad483
Bump file-saver from 2.0.2 to 2.0.5 (#564)
Bumps [file-saver](https://github.com/eligrey/FileSaver.js) from 2.0.2 to 2.0.5.
- [Release notes](https://github.com/eligrey/FileSaver.js/releases)
- [Changelog](https://github.com/eligrey/FileSaver.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eligrey/FileSaver.js/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 12:43:34 -04:00
Jon Koops
8fa10a5919
Convert Jest configuration to TypeScript (#561) 2021-04-30 08:26:06 -04:00
Jon Koops
c6122eea93
Update to latest version of NodeJS (#558) 2021-04-30 10:43:23 +02:00
mfrances
bd9d92702d pf updates from sanity checks 2021-04-21 13:20:51 -04:00
mfrances
e7114d4fce update to PF 4.102.1 2021-04-21 11:22:10 -04:00
Erik Jan de Wit
b86db32ba8
Add scope tab to client scope detail page (#514)
* initial version of the scope tab

* fixed assign

* moved form logic added test

* added unassign

* fixed merge error

* fixed labels
2021-04-20 08:10:00 -04:00
mfrances
00206ed740 updated with fix for nav issue 2021-04-01 11:25:47 -04:00
mfrances
018d99e03c update to PF 4.96.2 2021-04-01 11:25:47 -04:00
mfrances
fa5284471d update to PF 4.90.3 2021-03-08 11:19:46 -05:00
Erik Jan de Wit
949a0e198b added delete and cypress test 2021-03-05 14:47:59 +01:00
Erik Jan de Wit
ff1fbccfdc fixed types 2021-03-05 11:34:24 +01:00
Erik Jan de Wit
3399b16c7e initial list 2021-03-05 11:34:24 +01:00
Erik Jan de Wit
bfa0c6e1ea
Advanced tab (#373)
* initial version of the advanced tab

* added registered nodes

* added fine grain open id connect configuration

* added open id connect compatibility section

* added advanced section

* added backend

* fixed type

* renamed 'advanced' to advancedtab

to prevent strange add of '/index.js' by snowpack

* fixed storybook stories

* change '_' to '-' because '_' is also used

* fix spacing buttons

* stop passing the form

* cypress test for advanced tab

* more tests

* saml section

* changed to use NumberInput

* added authetnication flow override

* fixed merge error

* updated text and added link to settings tab

* fixed test

* added filter on flows and better reset

* added now mandetory error handler

* added sorting

* Revert "changed to use NumberInput"

This reverts commit 7829f2656ae8fc8ed4a4a6b1c4b1961241a09d8e.

* allow users to put empty string as value

* already on detail page after save

* fixed merge error
2021-02-28 15:02:31 -05:00
Erik Jan de Wit
39ef50bb1b remove seperate test project, intgrate cypress 2021-02-19 09:07:40 +01:00
Erik Jan de Wit
689e01b461
created better error handling (#362)
by using this react-error-boundary package this works also in hooks
2021-02-17 16:12:25 -05:00
mfrances
f3d2d17051 update to PF 4.87.1 2021-02-15 15:07:41 -05:00
Eugenia
db71fad81f
Realm Roles: associated roles modal functionality (#351)
* WIP  modal

* modal WIP

* add modal

* place modal in separate file

* format

* wip implementation

* getCompositeRoles with Jeff

* add associated roles tab WIP

* addComposites function WIP

* fix post call

* additional roles fetch

* big rebase

* WIP refresh

* resolve conflicts with Erik latest -> fixes role creation

* delete refresh from associatedrolestab

* fix key and localize

* gets rid of console warnings from watch

* cypress tests, bump react-hook-form to remove console warnings

* update snapshot

* fix delete confirm role name

* delete add

* refresh with Jeff, update cypress tests, select additional roles tab on add

* make dropdownId optional

* format

* remove log stmt
2021-02-04 15:50:13 -05:00
Erik Jan de Wit
f669be1d78
removed cypress init spec in favor of node script (#340) 2021-01-28 16:04:48 +01:00
Erik Jan de Wit
a8372498c8 introduced workspace and fixed more types 2021-01-28 10:07:12 +01:00
mfrances
c3ffb4e654 update to latest PF releases 2021-01-26 15:43:06 -05:00
Erik Jan de Wit
b9de247569
initial version of authentication section (#309)
* initial version of authentication section

* remove dialog for now should go to detail page

* added link and buildin label to first column

* added key attributes

* removed setTimeout workaround

* only delete when not in use

* Update src/authentication/messages.json

Co-authored-by: Stan Silvert <ssilvert@redhat.com>

* Update src/authentication/messages.json

Co-authored-by: Stan Silvert <ssilvert@redhat.com>

* refresh table on duplicate

Co-authored-by: Stan Silvert <ssilvert@redhat.com>
2021-01-26 14:39:01 -05:00
Aboullos
daec4957f2
Add cypress framework (#271)
* Add cypress framework

* Add PR change requests

* Add initial .yml file for cypress tests

* Modify Run Keycloak line

* Modify Run Keycloak lines

* Modify Cypress test run

* Modify wait times

* Add more time

* Modify yarn start to npx http-server

* Try Cypress separate step

* Add test to set new admin console

* Modify uses to run

* Change yarn to npx http-server

* Add parameter to npx http-server

* Trigger GitHub actions

* Trigger GitHub actions

* Modify client_scope test messages

* Set headless mode

* Add steps to store artifacts

* Modify .yml

* Rebase onto realm fix and update real role message

* Update yaml file for artifact upload
2021-01-12 12:04:52 -05:00
Erik Jan de Wit
b14027ccb7
Use realm name in urls (#265)
* remove circular dependency on realm context

* added realm as a param of the url

* updated links to include realm

* null !== undefined

* set realm if realm in url

* fixed breadcrumb type

* fixed tests

* addressed pr review comments
2021-01-05 14:49:33 -05:00
Erik Jan de Wit
0a5efbb781
added brute login user temporary lock indication (#259)
* added brute login user temporary lock indication

* spelling
2020-12-16 07:58:00 +01:00
mfrances17
af986e0f13
Merge pull request #256 from edewit/events-tab
initial version of the events tab
2020-12-11 15:31:57 -05:00
Sarah Rambacher
691708e5f2
Makes jumplinks work (#254)
* jumplinks on main content scroll but buggy

* update PF and move anchor to heading

* add fix for double highlight of jumplink

* mysterious change to unrelated test

* add yarn.lock
2020-12-11 18:34:18 +01:00
Erik Jan de Wit
7d20fc01a7 initial version of the events tab 2020-12-11 14:05:41 +01:00
Erik Jan de Wit
41062f88f4
Introduced generic DataList component that can handle all Lists. (#241)
* initial version of a data list

* introduced paginate property

* added search key

* added types and actions

* added renderer to customize rendering of one cell

* changed `ClientList` to new `DataList`

* replaced client scope list with `DataList`

* added empty state

* Replaced RoleList with `DataList`

* switched to lodash cloneDeep

* fix merge error
2020-12-07 14:23:18 -05:00
Stan Silvert
2be549a60e
Use new patternfly jumplinks. (#246)
* Use new patternfly jumplinks.

* Update snapshots
2020-12-07 07:51:38 -05:00
Erik Jan de Wit
acbd5a5f18
created a MockAdminClient for the storybook (#240)
* added mock for admin client so stories work again

* updated storybook to 6.1.7

* added js doc

* fix merge error
2020-12-04 13:58:28 -05:00
Erik Jan de Wit
2e64f144d5
update to latest keycloak-admin (#234)
* update to latest keycloak-admin

also fix name of project

* removed workaround type
2020-11-24 15:45:12 -05:00
Erik Jan de Wit
dcb18c5488
Use keycloak-admin with axios instead of fetch wrapper (#212)
* changed to use the admin client

* added helper to always set realm

* fixed merge

* no need to polyfill anymore

* updated to use keycloak-admin-client

* updated to release version

* fixed types

* added user federation

* update test

* lint
2020-11-12 07:55:52 -05:00
Erik Jan de Wit
2543893373
Change the input fields based on access rights (#184)
* poc of possible way to change form dynamically

* fixed detail routs

* Update src/components/form-access/FormAccess.tsx

Co-authored-by: Stan Silvert <ssilvert@redhat.com>

* Update src/components/form-access/FormAccess.tsx

Co-authored-by: Stan Silvert <ssilvert@redhat.com>

* Update src/components/form-access/FormAccess.tsx

Co-authored-by: Stan Silvert <ssilvert@redhat.com>

* added more form access and logic for Controller

* render switches for boolean types

* better render of `<Controller` wrapped components

* added isDisabled property

* added test

* small refactor

* fixed types

* TextArea doesn't support isDisabled

* when field is disabled, disable button as well

* added jsdoc

Co-authored-by: Stan Silvert <ssilvert@redhat.com>
2020-10-28 14:17:15 -04:00
Donald Labaj
57fdb46b1f
Added coding standards to the project. (#139)
Added coding standards and also updated the package json so that the scripts have consistent naming conventions. Fixed incorrect import for context as well.
2020-10-06 17:42:32 -04:00
Erik Jan de Wit
2fa8855bf4
initial version of the breadcrumb component (#119)
* initial version of the breadcrumb component

* moved breadcrumbs to Page component
2020-10-01 10:25:29 -04:00
Erik Jan de Wit
dfe3f31eb4
update dependencies (#110) 2020-09-23 10:05:15 +02:00
Erik Jan de Wit
338e177c51
added react hook form to do forms (#99)
* added react hook form to do forms

* removed unnessary property
2020-09-17 09:51:40 -04:00
Erik Jan de Wit
1297c9f391
Restructure (#78)
* moved files into new structure

* translation files / namespace per "page"

fixes: #77

* renamed pages to sections

* moved save, delete and others to common bundle
2020-09-10 14:04:03 -04:00
Erik Jan de Wit
7f66895631
added export and delete (#63)
* added export and delete

* added types
2020-09-09 16:34:05 +02:00
Stan Silvert
ca7c014e55
Run tsc on build to check for typescript errors (#69)
* Run tsc on build to check for typescript errors

* Fix typescript errors.  Rename failing stories.

* Make prettier happy

* Use only tsconfig for tsc.
2020-09-08 07:56:44 +02:00
Erik Jan de Wit
258b21e334
remove env vars and use simple copy task to switch (#60) 2020-09-04 06:38:23 -04:00
Erik Jan de Wit
a0b2b52b4f
upgraded to storybook 6 and changed to tsx (#58) 2020-09-03 13:26:36 -04:00
dependabot-preview[bot]
ad16ce23d4
Bump i18next-http-backend from 1.0.17 to 1.0.18 (#57)
Bumps [i18next-http-backend](https://github.com/i18next/i18next-http-backend) from 1.0.17 to 1.0.18.
- [Release notes](https://github.com/i18next/i18next-http-backend/releases)
- [Commits](https://github.com/i18next/i18next-http-backend/compare/v1.0.17...v1.0.18)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-03 14:58:42 +02:00
Erik Jan de Wit
8e664659b7
postcss plugin to new snopack format (#51) 2020-09-01 16:17:48 -04:00
Donald Labaj
adbb2c3d3f
Added github actions to automate build, test, and linting (#41)
Fixes issue #15.  Builds, test, lints, and checks format when a PR is created using github actions.
2020-09-01 10:51:59 -04:00
Erik Jan de Wit
3959d2c47e
fixed build by changing it to webpack (#50) 2020-09-01 08:21:47 -04:00
Erik Jan de Wit
a1e637c5da
Added tests for alert component. (#43)
* added enzyme

* alert test
2020-08-31 10:23:57 +02:00
Eugenia
c480f9cd9d
Add routing (#42)
* WIP routing

* remove webpack plugin

* add routing

* fixes to router

Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2020-08-27 14:09:36 +02:00
Stan Silvert
18689c6194
Implement masthead (#30) 2020-08-20 20:09:05 -04:00
Erik Jan de Wit
9bacacae49 fixed tests
fixing: #29
2020-08-20 12:43:13 +02:00
Stan Silvert
ff9364c9be
Merge pull request #22 from edewit/prettierrc
added prettierrc file
2020-08-17 14:58:16 -04:00
Erik Jan de Wit
b8be970f9c added prettierrc file
use settings file instead of command line

fixes: #8
2020-08-17 09:22:40 +02:00
Erik Jan de Wit
2caafc74b2 added post install hook to copy fonts
fixing: #20
2020-08-17 09:02:43 +02:00
Stan Silvert
d9a9f1d194
Merge pull request #4 from edewit/build-instructions
fix: added build instructions
2020-08-07 08:17:50 -04:00
Erik Jan de Wit
969d483c11 fix: added build instructions
fixing: #2
2020-08-06 17:11:12 +02:00
Erik Jan de Wit
e8662ed05c added eslint 2020-08-06 10:51:35 +02:00
Erik Jan de Wit
14860ae628 initial version
change favicon based on env props
2020-08-05 17:00:38 +02:00