Commit graph

120 commits

Author SHA1 Message Date
Erik Jan de Wit
dfda67146c
Added Security Defenses tab in the realm settings (#738)
* initial version of the Security defenses tab

* disable when not dirty

* added test

* removed unsessary fetches

* fixed format

* fixed tests

* fixed title

* Update src/realm-settings/security-defences/BruteForceDetection.tsx

Co-authored-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

* Update src/realm-settings/messages.json

Co-authored-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

* fixed test

Co-authored-by: Jenny <32821331+jenny-s51@users.noreply.github.com>
2021-07-09 10:23:49 -04:00
Jon Koops
07d6239e5b Instantly paste large resource files in Cypress tests 2021-07-06 16:29:56 +02:00
Jenny
d53542f3df
Realm settings(localization): Add bundle functionality (#739)
* wip provider details

provider details wip

move files wip

wip

wip all provider details

remove controllers

save and update working

address console warnings

remove log stmt

update test

keep aes only

remove comments

remove unused hook and function

remove unused props

revert ldap logs

fix conflict and remove duplicate function

Partial import phase 2 (#702)

* Process the JSON and present user options

* Finish checkboxes.  Refactor.

* Add tests

* Refactor after rebase

* Add more test data for manual testing.

* Fix linting errors

* Put JsonFileUpload back the way it was.

* Clean up comments

* Update src/realm-settings/PartialImport.tsx

Remove comment

Co-authored-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

Co-authored-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

Fixing UXD review for user (#648)

* Introduced new GroupPicker.
Can be used for move group or join group

* Moved help texts to help.json

* don't set state when there was no request

* add pagination

* remove "Groups" link on root level

* use path in chip instread of name

* fixes filtering to show search not found
and removes `+1` logic from pager

* fix breadcrumb and layout

* fixed all the tests

Localization tab (#685)

* localization wip

wip localization

return key value data as array

localization table

css

lint

lint

clean up log stmts

clean up log stmts

* PR feedback from Erik

* fix logic for supported locales

* update empty state text

* set default value

* fix cypress test

* Update src/realm-settings/RealmSettingsSection.tsx

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

* fix rsa-generated delete bug; PR feedback frog Erik

* revert locale abbreviation

* remove log stmts

* PR feedback from Erik, fix undefined

* fix loader w Erik

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

add divider on section

Prepare for first alpha release (#711)

use typeahead for mapper list

fix test

Default roles: UI Changes from KEYCLOAK-14846 (#693)

* defaultRoles wip

default role changes done

clean up log stmts

update snapshot

fix masthead test

* fix cypress test

* fix tabs

Comment out Realm role CRUD test (#712)

* Bogus change

* Bogus change

* Comment out Realm role CRUD test

Bump postcss-cli from 7.1.1 to 8.3.1 (#718)

Bumps [postcss-cli](https://github.com/postcss/postcss-cli) from 7.1.1 to 8.3.1.
- [Release notes](https://github.com/postcss/postcss-cli/releases)
- [Changelog](https://github.com/postcss/postcss-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-cli/compare/7.1.1...8.3.1)

---
updated-dependencies:
- dependency-name: postcss-cli
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump @testing-library/jest-dom from 5.12.0 to 5.14.1 (#717)

Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.12.0 to 5.14.1.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.12.0...v5.14.1)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

fixing issue (#709)

* fixing issue

fixing: #680

* added kebab on row

* added more clear group seperation

Bump cypress from 7.4.0 to 7.5.0 (#715)

Bump @babel/preset-typescript from 7.13.0 to 7.14.5 (#714)

Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) from 7.13.0 to 7.14.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.14.5/packages/babel-preset-typescript)

---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Bump @testing-library/react from 10.4.6 to 11.2.7 (#716)

Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 10.4.6 to 11.2.7.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v10.4.6...v11.2.7)

---
updated-dependencies:
- dependency-name: "@testing-library/react"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

inherited roles disabled instead of non selectable

more style fixes

fixed size

change title of tab

add unassign kebab on row

added help item on enable switch

test email working, modal wip

email connection done

remove comment

fix cypress test

revert test file

fdisable email prompting when user email entered

prettier

update cypress tests

fix lint

try fix cypress test

try longer wait

save and test connection

make wait longer

increase wait

fix test

disable test connection button if form fields not entered

lint

afix username/password fields

fix test

mark suggested change

add modal button and input functions

fixed default value warning

fixing issue

fixing: #650

updated admin client with new endpoints (#725)

fix add function and add test

remove aes provider changes

remove comments

format

update cypress test

update add bundle function

fix test

remove comment

* remove merge conflict markers

* more markers

* format
2021-07-01 08:48:30 +02:00
Erik Jan de Wit
83bd0e1070 removed member count column 2021-06-28 12:15:10 +02:00
jenny-s51
1dbaf3de55 fix test 2021-06-22 13:16:35 -04:00
jenny-s51
24df1b3f27 fix test 2021-06-22 08:48:12 -04:00
jenny-s51
fd1466c0d6 test email working, modal wip
email connection done

remove comment

fix cypress test

revert test file

fdisable email prompting when user email entered

prettier

update cypress tests

fix lint

try fix cypress test

try longer wait
2021-06-21 14:47:34 -04:00
Jenny
5e6c6b0775
Default roles: UI Changes from KEYCLOAK-14846 (#693)
* defaultRoles wip

default role changes done

clean up log stmts

update snapshot

fix masthead test

* fix cypress test

* fix tabs
2021-06-18 16:04:20 -04:00
mfrances
cca06048e6 fix test 2021-06-16 10:16:46 -04:00
Erik Jan de Wit
2c9b77c425
Fixing UXD review for user (#648)
* Introduced new GroupPicker.
Can be used for move group or join group

* Moved help texts to help.json

* don't set state when there was no request

* add pagination

* remove "Groups" link on root level

* use path in chip instread of name

* fixes filtering to show search not found
and removes `+1` logic from pager

* fix breadcrumb and layout

* fixed all the tests
2021-06-16 07:35:03 -04:00
Stan Silvert
1bf423b505
Partial import phase 2 (#702)
* Process the JSON and present user options

* Finish checkboxes.  Refactor.

* Add tests

* Refactor after rebase

* Add more test data for manual testing.

* Fix linting errors

* Put JsonFileUpload back the way it was.

* Clean up comments

* Update src/realm-settings/PartialImport.tsx

Remove comment

Co-authored-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

Co-authored-by: Jenny <32821331+jenny-s51@users.noreply.github.com>
2021-06-16 13:03:55 +02:00
Erik Jan de Wit
1a9618edff
fixes issue (#663)
* fixes issue

fixes: #636

* fixed display order

* more fixes

* fix reseet and sync default value

* fixed types

* fixed?

* fixed titles

* fixed default id

* fixed redirect url for oidc

* fixed more issues

* revert "none" option on sync mode

* updated text to use "None"

* fixed tests
2021-06-14 07:31:45 -04:00
mfrances
4bf8930cd4 all user fed mappers tests passing 2021-06-10 10:14:12 -04:00
mfrances
f2ee537747 group mapper and add del client tests working 2021-06-10 10:14:12 -04:00
Jenny
d77d9a2a63
Add filter capability to keys section in realm settings (#666)
* rebase

* fix empty state text
2021-06-08 11:45:37 -04:00
Erik Jan de Wit
544dcd31db
Introduces new Realm Events tab (#618)
* initial version events tab

* added save

* fix for admin events

* added clear and reset

* add type add dialog

* add remove and add actions

* fix ids

* add cofirm disable button

* added key

* added tests

* fixed messages

* add disabled on save on not dirty

* fixed review comment

* fixed test

* merged tests
2021-06-08 07:29:56 +02:00
Jenny
2746109e78
Realm settings(keys): toggle provider modal for all provider types (#642)
* changes after rebase

* add cypress tests

* addProviderModal done

* fix lint

* clean up ids/fieldids

* divide modals into separate components

* format

* cypress

* fix realm settings test

* clean up cypress tests

* try remove after all hook
2021-06-03 14:31:47 -04:00
Erik Jan de Wit
bb090200fe catch errors when removing scope type 2021-05-27 13:41:29 +02:00
Erik Jan de Wit
df5a06a3be makes client scope test more reliable 2021-05-26 13:24:13 +02:00
Erik Jan de Wit
0b56f6b1ed
try and fix group tests again (#619) 2021-05-20 11:38:10 -04:00
mfrances
df2263d11b fix types and one user fed test 2021-05-14 15:47:28 -04:00
mfrances
9b607a3021 use alternate click than helpid 2021-05-07 16:43:10 -04:00
mfrances
23d2d6b123 rm scrollintoview 2021-05-07 14:42:59 -04:00
mfrances17
84bc7e8091
Merge pull request #588 from edewit/default-value
Fixed bug
2021-05-07 11:34:30 -04:00
Erik Jan de Wit
fc6d2e7ecf fixed test?? 2021-05-07 13:38:18 +02:00
Erik Jan de Wit
c036253ac5 fixed test by clearing field first 2021-05-07 09:45:42 +02:00
Erik Jan de Wit
c5ff588791
add OIDC provider to the idp section (#553)
* initial version of oidc

* fixed fetch and added missing fields

* fixed file upload

* added scopse

* added details

* added disable action and save

* updated to use new design based on discovery response

* new design

* set default value

* added tests

* fixed tests

* fixed labels

* changed direction to up
2021-05-06 14:59:00 -04:00
Erik Jan de Wit
dbd544be37 don't use private fields 2021-05-06 11:06:20 +02:00
Erik Jan de Wit
f6357ccc7c put assign and initialize into one line 2021-05-06 10:38:45 +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
Erik Jan de Wit
c2b78c471b
added keys tab to client details (#557) 2021-05-04 10:11:58 +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
78f843cdcc
Fixes with realm list (#576)
* only query realms endpoint once

currently the realm list query is expensive and we only need it once.

* fixed refresh issues

* fixed tests

* fixed imports

* fixed types

* removed strange non code

* reload instead

* added more realm tests
2021-05-03 12:44:47 -04:00
Eugenia
721ed1bcaf
Realm settings(themes): Add themes tab + tests (#544)
* wip add realm themes

* get switch value from server

* add tests

* fix admin theme help text

* remove requireSsl forlabel

* update dropdown options

* wip fix for locales

* format

* save/update locales done

* expose all themes in dropdown

* remove comments

* remove theme types
2021-04-29 13:39:19 -04:00
mfrances17
aa7d2049d4
Cypress tests for initial 8 LDAP mappers (#550)
* create delete all mapper types working

* all tests working
2021-04-28 07:50:41 +02:00
mfrances17
4182f2bd58
Merge pull request #542 from jenny-s51/updateUserForm
Users(Create user form): Update create user form with new design
2021-04-21 10:17:48 -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
jenny-s51
033388bb67 update user form with new design 2021-04-20 10:12:29 -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
Eugenia
ba4e576a2d
Realm settings(login): adds login tab and tests (#531)
* realm settings tabs wip

* realm settings wip

* switches

* updates to login tab watch

* remove controller and call save in onChange

* add cypress tests

* remove log stmt

* fix lint

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

* Update src/realm-settings/LoginTab.tsx

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

* Remove form

* format

* lint

Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2021-04-19 13:41:07 +02:00
Eugenia
6f4ea86ecb
Users(groups): Add modal for joining user groups (#513)
* add cypress test to add groups to user

* add test to leave group

* format

* update snapshots

* add user to groups modal wip

* wip join group functionality

* add modal to add user groups

* add refresh

* remove comment

* lint and format

* fix empty state

* add cypress test to add groups to user

* format

* revert snap

* remove existing joined groups from modal
2021-04-14 14:19:39 -04:00
Stan Silvert
3deea60a87
Begin implementation of Partial Import modal. (#515)
* Begin implementation of Partial Import modal.

* Fix linting errors

* Remove console.log
2021-04-14 10:17:41 -04:00
Erik Jan de Wit
5142d1b4bc
can't move groups to the root level (#485)
* can't move groups to the root level

disabled "Move" button on root level

* can now move groups to root

* added move to root test
2021-04-07 13:58:29 -04:00
Erik Jan de Wit
84bf7925a6
Created add service account roles assign screen (#465)
* service account dialog

* create test

* fixed types

* fixed realm roles selection

* disable when no rows are selected

Co-authored-by: Eugenia <32821331+jenny-s51@users.noreply.github.com>

Co-authored-by: Eugenia <32821331+jenny-s51@users.noreply.github.com>
2021-04-01 10:14:19 -04:00
Erik Jan de Wit
f10661444d
initial move group dialog (#455)
* initial move group dialog

* added test

* fixed search and added breadcrumb

* filter current group

* added empty state

* add cancel button to modal

* fixed merge error
2021-03-29 07:37:47 -04:00
Erik Jan de Wit
50920b3df2
Added rename group and adding members to a group (#448)
* users can now rename groups

* add members to a group

* added cypress test

* remove rename and delete when no group is selected

* added test

* keep selected rows form other pages

* fixed empty first page and cancel button
2021-03-24 10:07:49 -04:00
Eugenia
bf4cae6735
Changes from Realm Roles UX Review [List] (#433)
* realm roles UX review progress wip

* filter realm roles on Enter key press, add filter functionality

* remove chip group filters

* clean up

* format

* filterChips logic now in table toolbar

* fix lint and format

* save with erik

* remove filter chips functionality

* fix check-types

* fix realm roles cypress test

* format

* revert changes to group attributes

* cypress test

* use filter

* remove log

* remove unused prop
2021-03-22 09:14:24 +01:00
Stan Silvert
398ca19ec1
Allow New Admin Console to run as a WAR on Keycloak server. (#439)
* Allow app to run as a WAR on Keycloak server.

* New client creation json that works for both dev and prod

* fixed tests

* Try Mark's trick to get realm_test to run.

* Make tests use keycloakBefore()

* Fix duplicate import

* fix github actions

Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
2021-03-18 08:48:14 -04:00
Erik Jan de Wit
e4d83d0fe3
Group details (#425)
* added details for groups

* add includeSubGroups checkbox

* added tests

* fixed reload for group attributes

* fixed spacing on associate roles tab

* fixed group reload after save

* fixed test
2021-03-16 08:37:57 -04:00
mfrances
b717954709 change reload txt to revert 2021-03-12 11:30:14 -05:00
Eugenia
28f1fdfda4
Users: Adds user details tab and save/update functionality (#426)
* userDetails tab done, save function wip

* userDetails update working

* add cypress test

* fix default value

* PR feedback from Erik
2021-03-11 21:23:08 +01:00
mfrances17
ad1fa1340f
Merge pull request #412 from edewit/initial-access-token
Initial access token list and create
2021-03-08 09:05:06 -05:00
mfrances
337efd1b3b rm obsolete vars 2021-03-05 16:01:38 -05:00
mfrances
df0133896e big refactor of cypress tests and consolidate into one page object 2021-03-05 15:55:01 -05:00
mfrances
40eb3ede0d refactor cypress tests 2021-03-05 11:36:49 -05:00
Erik Jan de Wit
949a0e198b added delete and cypress test 2021-03-05 14:47:59 +01:00
mfrances17
7c816736d2
Merge pull request #410 from jenny-s51/createUser
Users: Adds create user page to users section
2021-03-04 15:09:53 -05:00
jenny-s51
a534cfc351 update cypress test to work on empty state and search page 2021-03-04 13:49:05 -05:00
jenny-s51
39cd530696 add cypress test to create user 2021-03-04 09:26:21 -05:00
mfrances17
9c1efdcc3b
Merge pull request #401 from jenny-s51/usersInRole
Realm roles: add "users in role" tab
2021-03-03 16:24:53 -05:00
jenny-s51
259579be8c cypress tests passing, standardize to match 2021-03-03 09:55:19 -05:00
mfrances
de5765ae6f abstracted and simplified tests 2021-03-02 15:50:45 -05:00
mfrances
bfef63081b add missing type for test method 2021-03-02 15:50:45 -05:00
mfrances
123ee25626 refactor tests first pass 2021-03-02 15:50:45 -05:00
mfrances
0ee4f7ea8e cypress tests working 2021-03-02 15:50:45 -05:00
mfrances
b5f7405fce change existing ids to data-testid 2021-03-02 15:50:45 -05:00
Erik Jan de Wit
fbc81395d1 added wait for backend request 2021-03-02 10:33:19 +01:00
Erik Jan de Wit
a48088765a
Search and create sub groups (#387)
* fixed group section

* simplified create group dialog

* create subgroup

* initial search groups

* added initial search

* add empty state and links to details

* Added cypress tests

* fixed types

* changed to the more clear getId

* changed to use testid

* fixed merge error

* fixed test

* changed text for empty sub groups

* fix merge error

* fix test
2021-03-01 10:06:04 -05: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