Commit graph

108 commits

Author SHA1 Message Date
Eugenia
da2fa32a69
Realm roles: adds "Inherited From" column to Associated Roles tab (#391)
* 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

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

delete add

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

make dropdownId optional

format

add additionalRolesModal to associated roles tab

add toolbar items

add toolbaritems to associated role tab, matches mock

rebase

add descriptions to alert

add badge

fix badge logic

fix URL when associate roles are deleted, format

update cypress test

format

add associated roles refresh, PR feedback from Erik

add associated roles refresh, PR feedback from Erik

lint

* add inherited roles with Jeff

* hide inherited roles

* clean up

* rebase

* clean up modal file

* remove filter dropdown

* remove log stmts

* fix types error with Erik

* format after rebase

* fix lint

* fix cypress test

* PR feedback from Erik

* PR feedback from Erik

* remove comment

* remove client hook

* remove unused declaration
2021-02-25 10:10:28 +01:00
Erik Jan de Wit
ca92447444
removed need of refresher (#394) 2021-02-24 08:58:50 +01:00
Eugenia
e370859690
Modal with clients (#380)
* 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

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

delete add

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

make dropdownId optional

format

add additionalRolesModal to associated roles tab

add toolbar items

add toolbaritems to associated role tab, matches mock

rebase

add descriptions to alert

add badge

fix badge logic

fix URL when associate roles are deleted, format

update cypress test

format

add associated roles refresh, PR feedback from Erik

add associated roles refresh, PR feedback from Erik

lint

WIP modal with client roles

add clients to modal

WIP label

labels WIP

promises wip

wip

add clients to modal with labels

modal with Clients

format

* rebase

* fix check types

* PR feedback from Erik
2021-02-23 08:36:37 -05:00
Eugenia
93d5d21894
Realm roles: fix pagination by 10 (#367)
* fix pagination by 10

* fix types

* format

* format

* PR feedback from Erik
2021-02-18 07:38:23 +01:00
Eugenia
a5f08a9202
Realm roles: associated roles tab (#358)
* 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

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

* delete add

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

* make dropdownId optional

* format

* add additionalRolesModal to associated roles tab

* add toolbar items

* add toolbaritems to associated role tab, matches mock

* rebase

* add descriptions to alert

* add badge

* fix badge logic

* fix URL when associate roles are deleted, format

* update cypress test

* format

* add associated roles refresh, PR feedback from Erik

* add associated roles refresh, PR feedback from Erik

* lint
2021-02-17 08:17:04 +01: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
678ec591d6
added roles tab to clients (#312)
* added roles tab to clients

* removed duplicate id parameter

* use client roles instead of realm role for clients

* fixed formatting

* fixed create for client role

* fixed replaceAll
2021-01-29 08:59:03 -05:00
jenny-s51
d9e918a4e0 use watch on initial form field 2021-01-28 14:24:51 -05:00
jenny-s51
0bdb3b4a31 rebase and fix reload 2021-01-28 14:24:51 -05:00
jenny-s51
a7fd36369e WIP role attributes
fix storybook demos

add attributes tab to realm roles section

use TableComposable

fix formatting

css updates

fix up styling of role attributes table

fix check-types erros

logic from call with Jeff

clean up, format, make eslint proud

delete roledetails

call with Erik

add delete function and css changes

fix storybook demos and format

make key input disabled once new attribute is created

minus icon gray

address PR feedback from Sarah

set add and save buttons to disabled when new input field is  empty

fix save/add

fix onChange formState

rebase with resolved conflicts

fix paths and use error msg from response

WIP readOnly

try setting readonly

add defaultState prop

use keycloak tabs

default values WIP

reload WIP

cleanup function

add shouldUnregister

fix for adding empty line on form load

removed debug

small fix for `isValid`

role attributes tab

format
2021-01-28 14:20:23 -05:00
jenny-s51
c2b94c1ed2 add role attributes, WIP 2021-01-28 14:19:32 -05:00
jenny-s51
85d1d0fc93 PR feedback from Mark 2021-01-28 12:52:49 -05:00
jenny-s51
5ef75a817a format after rebase 2021-01-28 12:52:49 -05:00
Eugenia
5064690ae8 remove comment
Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2021-01-28 12:52:49 -05:00
jenny-s51
162146c371 WIP modal 2021-01-28 12:51:47 -05:00
jenny-s51
6c8e580e47 PR feedback from Mark 2021-01-28 12:50:42 -05:00
jenny-s51
6c9eaf5342 fix cypress test 2021-01-28 12:50:42 -05:00
jenny-s51
c3c9625f6b format after rebase 2021-01-28 12:50:42 -05:00
Eugenia
ec6af8b9ae remove comment
Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2021-01-28 12:50:42 -05:00
jenny-s51
578b853fd5 format 2021-01-28 12:50:42 -05:00
jenny-s51
50db2c73d7 WIP modal 2021-01-28 12:50:42 -05:00
Eugenia
8f971ffca0
Realm Roles: Implements Reload Function (#308)
* refresh

* add hook

* reload WIP

* pass down defaultValues

* log stmt

* reload working on details form

* call with Erik

* format

* format

* lint

* fix reload after save
2021-01-19 14:30:52 -05:00
mfrances17
ccb731338e
Merge pull request #301 from srambach/user-fed-mappers-text
Add text for user federation user attribute mapper
2021-01-18 10:19:00 -05:00
Erik Jan de Wit
324d9ff061
initial version dashboard section (#283)
* initial version dashboard section

* changed to new design

* changed text to "realm info"
2021-01-14 20:44:16 -05:00
Sarah Rambacher
c567fdca93 deduplicates some common text strings 2021-01-13 15:48:16 -05:00
Erik Jan de Wit
0d9b4ff054
created bookmarkable tabs component (#296) 2021-01-13 15:47:40 -05:00
jenny-s51
74a5bfb7cc prettier 2021-01-11 16:28:15 -05:00
jenny-s51
453d37f815 fix formaccess role 2021-01-11 16:27:13 -05:00
jenny-s51
960e43a7d9 rebase and resolve conflicts 2021-01-11 16:22:58 -05:00
jenny-s51
8ef7bd7ddb WIP role attributes
fix storybook demos

add attributes tab to realm roles section

use TableComposable

fix formatting

css updates

fix up styling of role attributes table

fix check-types erros

logic from call with Jeff

clean up, format, make eslint proud

delete roledetails

call with Erik

add delete function and css changes

fix storybook demos and format

make key input disabled once new attribute is created

minus icon gray

address PR feedback from Sarah

set add and save buttons to disabled when new input field is  empty

fix save/add

fix onChange formState

rebase with resolved conflicts

fix formatting

remove !important

Update RealmRolesSection.css

Update src/realm-roles/RoleAttributes.tsx

Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

address PR feedback from Sarah and Erik

fix paths and use error msg from response

remove log stmt

fix lint

remove minLength
2021-01-11 16:19:22 -05:00
jenny-s51
5d7d2b5636 add role attributes, WIP 2021-01-11 16:15:12 -05:00
Erik Jan de Wit
84ad3853a8
move common cell formatters to util functions (#278)
* move common cell formatters to util functions

* renamed ExternalLink FormattedLink
2021-01-11 14:29:52 -05:00
Erik Jan de Wit
feca61d2b0
renamed useFetch to asyncStateFetch (#277)
* renamed `useFetch` to `asyncStateFetch`

otherwise React will mistake it for a react hook and will complain.

* added jsdoc

* fixed the user red stories

* renamed
2021-01-11 13:56:19 -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
27d9dadee7
only update state when component is mounted (#266)
* only update state when component is mounted

* removed unused import

* `useFetch` function to update state when mounted
2021-01-05 08:39:27 -05:00
Eugenia
79e671062c
Realm role attributes (#247)
* add role attributes, WIP

* WIP role attributes

* fix storybook demos

* add attributes tab to realm roles section

* use TableComposable

* fix formatting

* css updates

* fix up styling of role attributes table

* fix check-types erros

* fix build

* fix formatting

* address PR feedback from Sarah

* add aria label to button

* fix storybook demos and address PR feedback from Erik

* fix merge conflict

* delete unnecessary files

* remove unused code

* remove BorderColor

* delete final comment

* fix formatting

Co-authored-by: Sarah Rambacher <srambach@redhat.com>
2020-12-15 08:21:17 +01:00
Erik Jan de Wit
9903b5c081 renamed files 2020-12-11 11:28:38 +01:00
Erik Jan de Wit
f8d8d08147 renamed data list and documented 2020-12-11 11:18:29 +01:00
mfrances17
83825c117b
Merge pull request #245 from edewit/issue-230
TextArea is child of controller
2020-12-10 09:10:48 -05:00
Erik Jan de Wit
3f2969e897 TextArea doesn't need to be a child of controller
fixes: #230
2020-12-10 10:07:24 +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
Erik Jan de Wit
5463db5a20
Initial version of the Service Account tab (#238)
* service account tab initial version

* added hide inherited function

* move empty formatter to util

* added the 'assign role' button

* only show service account tab when client is saved

* changed to toobar items to align checkbox

* added missing assignRole and renamed tab
2020-12-07 13:37:36 -05:00
Erik Jan de Wit
7059297d5f
merged "new role form" and "role details" into one (#239) 2020-12-02 16:04:54 -05:00
Eugenia
17b1fab80e
adds delete action to realm details page (#236) 2020-11-24 16:11:35 -05:00
Eugenia
dc2ceef27b
Adds tab for realm role details + update/save functionality (#228)
* add file for realm role details

* add details and attributes tabs

* clean up a bit

* get name working

* add reload

* fix route config

* fix prettier

* call with Don

* header and description working

* update route-config.ts

* wrap in FormAccess component

* name input gets value from call

* try to get save working

* feedback from Erik

* more feedback from Erik

* fix formatting

* format

* address PR feedback from Erik

* delete comment

* set name field to read-only

* delete defaultValue prop
2020-11-23 10:20:21 -05:00
Eugenia
147be1d6b2
Adds realm role details tab to storybook (#217)
* parent 9eabcdbee4
author jenny-s51 <jshandel12@gmail.com> 1602688597 -0400
committer jenny-s51 <jshandel12@gmail.com> 1605296992 -0500

add file for realm role details

add details and attributes tabs

clean up a bit

get name working

add reload

fix route config

fix prettier

add storybook demo for realm details

add details and attributes tabs

* parent 95101205603aec53689aa61488ffb4820591b8d1
author jenny-s51 <jshandel12@gmail.com> 1604507462 -0500
committer jenny-s51 <jshandel12@gmail.com> 1605297630 -0500

parent 95101205603aec53689aa61488ffb4820591b8d1
author jenny-s51 <jshandel12@gmail.com> 1604507462 -0500
committer jenny-s51 <jshandel12@gmail.com> 1605297556 -0500

parent 95101205603aec53689aa61488ffb4820591b8d1
author jenny-s51 <jshandel12@gmail.com> 1604507462 -0500
committer jenny-s51 <jshandel12@gmail.com> 1605297545 -0500

parent 9eabcdbee4
author jenny-s51 <jshandel12@gmail.com> 1602688597 -0400
committer jenny-s51 <jshandel12@gmail.com> 1605296992 -0500

add file for realm role details

add details and attributes tabs

clean up a bit

get name working

add reload

fix route config

fix prettier

add storybook demo for realm details

add details and attributes tabs

clean up a bit

clean up a bit

add reload

fix route config

add storybook demo for realm details

Delete messages.json

cleaning up, wip

fix CI

clean up more

* add back role messages

* fix format

* revert role list to master

* remove reload

* fix spacing and add FormAccess component

* fix route

* fix formatting
2020-11-18 16:52:18 -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
Eugenia
f5091d133e
Realm role empty state (#189)
* add file for realm role details

* add empty state

* empty state

* delete unused imports

* delete noRealmRoles.tsx
2020-10-28 14:33:54 -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
8e2000283c
Some pages don't support pagination (#134)
* introduced non paginating toolbar

* use patternfly util class instead of inline css
2020-10-07 11:47:03 -04:00
Erik Jan de Wit
587ae5ce81
changed alerts to have a provider (#137)
fixes: #132
2020-10-06 15:25:05 -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
Eugenia
ba6d4877ab
Create realm role page (#114)
* 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

* fix path

* rename fields

* HTTP post is working

* move create msg

* cleaning up

* address PR feedback from Stan

* added validation and changed to text area

Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2020-09-29 13:54:42 -04:00
Christie Molloy
32f5aa0e6f
First page within Group section (#108)
* add code to group section

* updates to group section

* more updates to groupsection

* add Eriks changes

* groups broken

* more group work

* lots of updates

* fix bugs

* working on typescript and clearing out dead code

* fix TS errors and PR feedback

* more TS fixes

* fixed the TS errors

* run prettier

* fix errors from yarn checktypes command

* fix prettier

* fix lint and checktypes

* remove isInline

* revert prettier

* revert prettier commits

* update i18

* fix prettier

* feedback

* fix error
2020-09-28 11:58:03 -04:00
Eugenia
9fd54eb964
Adds realm roles section to app and storybook (#79)
* 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

* fix storybook demo

* update snapshot after rebase

* PR feedback from Stan

* add back pf addons

* Update src/realm-roles/RealmRolesSection.tsx

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

* fix format

* localize NoRealmRoles component

* fix formatting

* changes to PR suggested by Sarah

Co-authored-by: Stan Silvert <ssilvert@redhat.com>
2020-09-18 10:04:55 +02: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