Commit graph

21 commits

Author SHA1 Message Date
Erik Jan de Wit
dba53a01b3
update who am i on realm create as we need the accessTypes (#276)
* whoAmI has the realm access information
so when a new realm is created the whoAmI request has to be done again

* fixed "add realm" button

* remove debug

* refactor

* also force token update

* refresh realm list on realm change
2021-01-12 07:39:37 -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
b06cea6fd9
make the part to update smaller (#214)
This makes switching between sections a bit nicer
2020-11-12 14:08:09 -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
c781d86026
added validated property to fields instead of only on FormGroup (#205)
* added validated to fields to make them nicer

* removed console log
2020-11-09 14:49:32 -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
Stan Silvert
49284a0f11
Implement basic access control. (#183)
* Implement basic access control.

* Fix formatting
2020-10-21 07:31:41 -04:00
Eugenia
caec08f95f
Adds functionality to delete realm role (#160)
* added function to refresh the dataloader data

* add Realm Roles page

add section for no realm roles

update role-model, fixed UI to match designs

fix paths

add storybook demo and role actions kebab

fix build and clean up

fix formatting

fix lint

fix test and update snapshot

update snapshot after rebase

PR feedback from Stan

add back pf addons

localize NoRealmRoles component

changes to PR suggested by Sarah

adds new role form

rename fields

cleaning up

address PR feedback from Stan

add logic to delete realm role

format

rebase with erik branch

resolves merge conflicts

fix check types error

fix invalid state

fix check-types

fix ts error

* fix format

* remove log stmt

* address PR feedback from Erik and Sarah

* remove utility class

* address Erik comment

* fix formatting

* fix bug and address PR feedback

* move msg

* fix lint

* fix format

* delete details file (on another branch)

Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2020-10-14 16:50:10 -04:00
Erik Jan de Wit
410c553ac0
added function to refresh the dataloader data (#143) 2020-10-06 07:56:06 -04:00
Stan Silvert
bfe6e2c236
Move contexts under a single directory. (#145) 2020-10-06 10:25:38 +02:00
Stan Silvert
c656d6acee
Localize NavItems (#106)
* Localize NavItems

* Fix group titles.
2020-09-21 14:54:42 +02:00
Erik Jan de Wit
b87bd2ca76
updated the realm selector (#90)
* updated the realm selector with:

1. realm context that works on other requests
2. added search bar when realm list > 5 realms

* fixed merge
2020-09-17 07:37:30 -04:00
Erik Jan de Wit
3798c41db0
Added missing logic to realm form (#80)
* made alerts easier to use

* better clear message

* added missing logic to realm form

* format

* fixed types

* fixed test

* fix merge error
2020-09-15 15:44:28 -04:00
Sarah Rambacher
bb38bcf051
Restyle realm selector and fix centering (#87)
* clean up CSS on realm selector

* Fix width and correct CSS of realm selector

* Format and update snapshots

* Remove module css

* update snapshot
2020-09-14 14:10:54 -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
Stan Silvert
8fbcf7582a
Flesh out left navigation (#76)
Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2020-09-09 11:07:17 +02:00
Erik Jan de Wit
8fa720438e
some small fixes to the realm selector (#74) 2020-09-08 13:20:29 -04:00
Eugenia
c6a310a827
add realm selector (#48)
* WIP realm selector

* realm dropdown is working

* address PR feedback

* address PR feedback and fix conflicts

* fix formatting

* fix path

* address PR feedback from Stan

* update snapshot tests

* fix formatting

* change minwidth
2020-09-04 14:16:11 -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
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
Erik Jan de Wit
14860ae628 initial version
change favicon based on env props
2020-08-05 17:00:38 +02:00