Commit graph

45 commits

Author SHA1 Message Date
Jon Koops
c6ab6a1190
Move Admin UI into a monorepo structure (#3186) 2022-08-25 11:03:07 +02:00
Erik Jan de Wit
09d7194f9b
Work around object collisions in forms (#3035) 2022-08-09 10:32:16 +02:00
Jon Koops
aeda5f3e4c
Use new admin client with seperated Keycloak JS (#2964) 2022-07-14 15:02:28 +02:00
Jon Koops
f7162efad9
Replace Moment with standardized APIs (#2887) 2022-07-04 14:24:56 +02:00
Jon Koops
1d4033201e
Replace .hasOwn() with .hasOwnProperty() (#2882) 2022-06-28 13:04:34 +02:00
Erik Jan de Wit
fef1609601
added aria-labels (#2861)
fixes: #2846
2022-06-24 13:44:15 +02:00
Jon Koops
cc7ec1cf7f
Add 'Session' tabs to user and client details (#2655) 2022-05-18 11:16:20 +02:00
Erik Jan de Wit
4349f19e24
Convert single array values to values (#2506) 2022-04-27 17:32:47 +02:00
Erik Jan de Wit
43c6564895
Changed to use the same form + rename (#2342) 2022-04-20 19:11:46 +02:00
Erik Jan de Wit
aaa22e3df0
fixes empty key value convert (#2370)
* fixes empty key value convert

* Update src/util.ts

Co-authored-by: Jon Koops <jonkoops@gmail.com>

* fix linting issues

* use some()

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2022-04-05 09:39:32 +02:00
Erik Jan de Wit
37d1087e7e
Use string[] directly removed need for converstion (#2175) 2022-03-09 17:42:23 +01:00
Erik Jan de Wit
b7ea8629a2
Refactored the way we show time using Intl (#2178) 2022-03-07 14:49:38 +01:00
Erik Jan de Wit
35ef6aff88
Added new / missing fields (#2035) 2022-02-21 16:43:23 +01:00
Jon Koops
b9224862de
Replace Lodash with it's ESM variant (#1990) 2022-02-02 11:33:57 +01:00
Jenny
105d0dffb0
Adds selectable attribute functionality (#1840)
* index on authEvaluateTab: f0a2494d Add nexus profile for releases (#1704)

auth evaluate wip

wip auth evaluate tab

add identity information and permissions

help text and wip evaluate

* wip contextual attributes

* wip contextual attributes

* add conditional dropdown for auth method

* key and value can be saved now

* wip selectable save

* selectable attribute input save success

* changes to AttributeInput only

* revert files to versions from master

* add back defaultContextAttributes

* set id

* delete autheval file

* remove isKeySelectable

* lift props

* localize names and separate dropdown from the other attribute inputs

* remove log stmt

* add placeholder, return implicitly

* fix select/save

* reorder hook and conditional

* translate, fields/save working
2022-01-17 14:26:42 -05:00
Erik Jan de Wit
242c1d8445
better form convert (#1640)
* better form convert

* fixed other forms

* changed to use npm package

* better form convert

* merge fix

* fixed mapper test
2021-12-08 16:08:42 +01:00
Erik Jan de Wit
890d322312
Refactored dynamic components a bit more (#1462)
* moved to component folder

* replaced iteration with component

* fixed merge error

* renamed file

* tried to improve the test

* made field label lower case
2021-11-08 10:46:03 +01:00
Jenny
bf236cb7f3
Client policies(conditions): add correct form fields for all condition types (#1430)
* add create client policy form; WIP

add client policy tests

checkout realm settings test from master

RealmSettingsPage.ts master

remove comment and add missing translation

fix tests

PR feedback from Jon and Erik

rebase

editClientPolicy

edit client policy

add client policy conditions form

fix bug in create form

remove comment

update help text

fixes

breadcrumbs

add support for adding multiple conditions, deleting conditions, and list conditions in data table

clean up names

add delete functionality to conditions form

PR feedback from Jon

useMemo for conditions

remove comments and logs

remove unused hook

PR feedback from Jon

messages

rename message

rebase

remove duplicate value

fixed multi select bug

conditionConfigs wip

add all config fields, labels, and help text for condition types

wip config POST

config post is working

fix bug in multiline string POST

fix any client empty config

client scopes config wip

fix config settings for client-updater-context

fix client access type config

clean up configuration conditionals

add aria label to resolve critical axe issue

Apply suggestions from code review

Co-authored-by: Jon Koops <jonkoops@gmail.com>

address PR feedback from Jon

fix undef error

PR feedback from Stan

add util function

* fix import stmt

* revert change to route

* fix profile create values

* fix paths
2021-11-01 18:18:27 -04:00
Jon Koops
bd7ca9a7fa
Add utility function to pretty print JSON (#1310) 2021-10-08 20:21:09 +02:00
Erik Jan de Wit
b8990cbf63
Make filtering of client scopes same for clients and client scope section (#1064)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-09-14 17:48:48 +02:00
Jon Koops
9850505001
Use pre-release version of Admin Client (#1063) 2021-08-26 10:39:35 +02:00
Jenny
e653d87894
add priority attribute when dragging data list elements (#947)
* fix conflict

* pr feedback from jon

* add key provider type to separate component

* remove log stmt

* remove spread syntax

* add default priority to all provider types

* remove sort by priority from providers tab

* add instruction tooltip

* correct list sorting order

* feedback from Jon wip

* more feedback from Jon

* update aria-describedby

* data list header and draggable button spacing

* Update src/realm-settings/RealmSettingsSection.tsx

Co-authored-by: Jon Koops <jonkoops@gmail.com>

Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-08-20 12:15:12 -04:00
Jenny
45e07266eb
Realm settings(tokens): Add tokens tab (#934)
* wip tokens tab

* tokens

* add data-testids to cypress doc

* uncomment

* uncomment

* finish tests

* remove logs

* fix help text

* fix form panel title for sessions

* removed unused useEffect

* wip tokens updates to convert function

* fix flattened attributes to match call

* interpolate timespan

* delete unused variables
2021-08-09 15:28:24 -04:00
Jon Koops
8236528a07
Parse environment information as JSON (#851)
* Parse environment information as JSON

* Pass 'isRunningAsTheme' from injected environment

* Update comment to use index.ftl instead of html

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

* Update realm param comment

* Update version param

* add more sensible defaults

Co-authored-by: Stan Silvert <ssilvert@redhat.com>
2021-07-15 11:50:01 +02:00
Stan Silvert
d606dc6bee
Run as theme (#840)
* Build for Keycloak theme

* Update based on lastest index.html changes.

* Fix realm dropdown when home realm is not master.

* Fix readme.

* Fix linting errors.

* Try to fix tests.

* Address Jon's comments.
2021-07-14 11:35:49 -04:00
Jon Koops
64d5a498a6 Update Prettier to latest version and fix formatting 2021-07-05 15:26:07 +02:00
Erik Jan de Wit
10f06af8aa
add / after baseUrl (#605) 2021-05-19 09:56:59 +02:00
Jon Koops
f671cbed84 Extend tsconfig from Snowpack and fix type errors 2021-05-18 16:50:35 +02:00
Jenny
15677b6bfb
Realm settings(Email): Adds email tab to realm settings section (#549)
* email tab wip

* save username and pw info on auth toggle

* add email tab

* remove comments

* remove log stmt

* add help text

* adjust styles

* format

* fix conflicts and address PR feedback

* add back ref on reply to display name

* rebase and fix conflicts

* prevent save without sender email

* add className prop to formpanel
2021-05-03 16:00:12 -04:00
Erik Jan de Wit
6dd314c768
Initial version of the identity providers section (#537)
* initial version identity providers section

* added order change dialog

* added tests

* added missing brand icons

* removed need for providerCount

* fixed refresh

* back to list after create

* format merge

* fixed merge error
2021-04-21 15:18:45 +02: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
jenny-s51
578b853fd5 format 2021-01-28 12:50:42 -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
Erik Jan de Wit
45cda0a969
initial version realm settings section (#281)
* initial version realm settings section

* simpified save

* fixed reload

* fixed merge error
2021-01-13 14:59:45 -05: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
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
2393b40c9b
Added the credentials tab (#196)
* initial version credentials tab

* added signed jwt

* submit token endpoint  signing alg

* added x509

* show tab when public client

* fixed test default confimnation dailog size is small

* pr review comments
2020-11-02 15:15:09 -05: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
34723a0ebf
moved workaround for dots in form names to util (#182) 2020-10-20 16:47:23 -04:00
Erik Jan de Wit
f44dad9e25
introduced server info context (#138)
* introduced server info context

* move to context folder

* moved model to context
2020-10-08 07:38:25 -04:00
Erik Jan de Wit
ed25dbc5a0
Added client setttings header with actions (#125)
* added client settings header

* added confirmation dailog

* format

* pr review

* use placeholder text instead of property

* change title to use clientId instead

* added state for dynamic name
2020-10-02 15:56:46 +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
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
513aa2ba91
initial version of the create client create page (#47)
* initial version of the create client role page

* added types and sort function

* updated types

* added steps

* added save function

* fix error message
2020-08-31 14:26:25 -04:00