Commit graph

43 commits

Author SHA1 Message Date
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
mfrances17
7c3a5739eb
User Federation: populate all LDAP settings (#261)
* separate card paths

* organize settings file structure

* most ldap fields working

* allow same path to multiple components

* fix several fields

* all values fetched correctly

* changes from PR
2020-12-16 08:02:41 +01: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
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
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
7059297d5f
merged "new role form" and "role details" into one (#239) 2020-12-02 16:04:54 -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
49ef2bd665
Add role mapping into the flow and filter the clients that don't have roles (#222)
* addd role mapping into the flow

* added filter for clients that don't have roles

* fixed types
2020-11-17 16:39:28 -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
Sarah Rambacher
1756b38e2f
User federation Kerberos settings wip (#203)
* lays out fields for user fed kerberos settings

* fix lint
2020-11-09 07:31:05 -05:00
Erik Jan de Wit
d6e1161c83
hooked up the build in mapper dialog (#197)
* hooked up the build in mapper dialog

* spelling

* useEffect for setTimout

* fix state

* fix bug with alerts clearing checked items

* fixed tests

* Update src/client-scopes/messages.json

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

* simplified dialog usage

Co-authored-by: Stan Silvert <ssilvert@redhat.com>
2020-11-05 16:26:43 -05:00
Sarah Rambacher
6b3990e1b9
540 user fed settings (#198)
* all fields roughed in working on tab

* reduce to just the settings without page

* remove unused imports

* fix some comments

* correct some typos and capitalization

* remove ldap translation
2020-10-30 16:15:37 -04:00
Erik Jan de Wit
aea12169f4
initial version of the role mapping create form (#177)
* initial version of the role mapping create form

[marvel](https://marvelapp.com/prototype/f0e8fih/screen/72042619)

* fixed format

* changed to typeahead

* format

* group by

* review fixes

* added group and divider

* change name to realm name
2020-10-27 07:25:54 -04:00
Erik Jan de Wit
a9dc031fff
Introduced a predefined mapper dialog (#169)
* added optional dialog variant

* added predefined scope dialog

* added mapper dialog for predefined and custom

* format

* changed to use dataList instead of table

* fixed test
2020-10-21 08:18:41 -04:00
Sarah Rambacher
b5aa560dcc
Change list view header action menu from select to dropdown (#179)
* change select to dropdown in viewheader

* make the action happen

* remove comment
2020-10-19 09:44:22 -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
Sarah Rambacher
3882d3ec43
adds optional link to the subkey of a view header (#166)
* adds optional link to the subkey of a view header

* changes props to button props
2020-10-13 09:15:16 -04:00
Erik Jan de Wit
09f09893a2
added ability to add mulitple actions (#163)
* added ability to add mulitple actions

* fixed format

* changed to use secondaryActions
2020-10-12 14:02:17 -04:00
Erik Jan de Wit
4fa325f45c
initial version of the mapping list (#162)
* initial version of the mapping list

* added story to show mapper list

* fixed format

* changed to use intermediate type
2020-10-12 13:59:15 -04:00
Sarah Rambacher
0aa63ddfbb
Field level help (#152)
* refactors form field help

* format and test

* add interpolation of help text

* implement HelpItem and move help text

* update DownloadDialog with new HelpItem

* remove commented out code
2020-10-09 08:48:50 +02:00
Erik Jan de Wit
908842542c
partial mocked download dialog (#140)
* partial mocked download dialog

* messages

* added toggle

* removed commened import
2020-10-06 15:51:21 -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
Erik Jan de Wit
94b26936d3
fetch and save client (#116)
* fetch and save client

* added multi line for redirect uris

* format

* review
2020-09-25 13:42:32 -04:00
Erik Jan de Wit
19b458577b
Generic view header (#115)
* implements static template for table view header

* initial table view header layout

* renamed

* added actions

* format

* review

Co-authored-by: Sarah Rambacher <srambach@redhat.com>
2020-09-25 13:29:03 -04:00
Erik Jan de Wit
8210ba5ba0
initial version of confirm dialog (#117)
* initial version of confirm dialog

* introduced helper funciton to toggle dialog

* review
2020-09-25 09:17:55 -04:00
Erik Jan de Wit
7161af82b8
initial version of the multi line input (#107)
* initial version of the multi select input

* changed direction and fixed tab index
2020-09-24 09:27:23 +02:00
jenny-s51
87363f69cd fix check-types 2020-09-23 15:42:02 -04:00
Sarah Rambacher
9f47fb5fca change external link to pf component 2020-09-23 15:39:52 -04:00
Sarah Rambacher
48e13b7204
Empty state for a list (#95)
* add an empty state for a list

* rename component and add click handler

* add metadata to list empty state story

* add tests to list empty state
2020-09-19 14:05:14 -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
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
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
082682e6d3
initial version of json file upload component (#75) 2020-09-08 13:16:08 -04:00
Erik Jan de Wit
c59a7198c9
initial version of help items (#70) 2020-09-08 13:12:42 -04: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
87d8414bd7
fix storybook imports (#62) 2020-09-04 06:38:58 -04:00
Erik Jan de Wit
a0b2b52b4f
upgraded to storybook 6 and changed to tsx (#58) 2020-09-03 13:26:36 -04:00