1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
Commit Graph

221 Commits

Author SHA1 Message Date
Renovate Bot
264d9e997a chore(deps): update dependency typescript to v4.5.3 2021-12-10 01:57:37 +00:00
Renovate Bot
f8710e61cc chore(deps): update dependency @testing-library/jest-dom to v5.16.1 2021-12-06 14:08:39 +00:00
Renovate Bot
d5ff7eab1b chore(deps): update dependency prettier to v2.5.1 2021-12-04 18:54:16 +00:00
Renovate Bot
162ccabaf9 chore(deps): update dependency @types/node to v14.18.0 2021-12-04 01:42:08 +00:00
Renovate Bot
aa7068787f chore(deps): update dependency @testing-library/jest-dom to v5.16.0 2021-12-03 23:46:16 +00:00
Renovate Bot
4d82c95ce0 chore(deps): update dependency date-fns to v2.27.0 2021-11-30 13:21:45 +00:00
Renovate Bot
7343a27226 chore(deps): update dependency prettier to v2.5.0 2021-11-30 09:57:01 +00:00
Renovate Bot
c18493bd09 chore(deps): pin dependency prettier to v2.4.1 2021-11-30 07:35:38 +00:00
Renovate Bot
ed309d06b9 chore(deps): update dependency sass to v1.44.0 2021-11-30 04:10:54 +00:00
Thomas Heartman
dd1ab1ca72 Autofocus dialog form fields, allow form submissions via pressing enter inside the form (#524)
* chore: add prettier as a dev dependency

The project has a .prettierrc, so seems to depend on that for its
formatting, but there was no prettier installed with the node modules.

* chore: add autofocus to all clearly defined first inputs on dialogs.

* fix: wrap the disable env input in a form and give it autofocus.

* fix: submit form when pressing enter

* fix: only autofocus the submit button if there is no other content.

When multiple (enabled) elements have the autofocus attribute, the
browser picks the last element in the tree. This means that if there
is a form with a text input with autofocus and a submit button with
autofocus, the button will win, causing the user to have to tab back up.

Only doing this if there are no children will cause some changes,
however:

Dialogs with textual children will no longer focus the accept-button
when appearing.

However, dialogs such as the create new api token dialog will give the
focus to the first input field instead of to the create button.

* fix: add formId prop to dialog element; adapt behavior

If the component receives a form id, it will treat the primary button
as the submit button for that form. To stop a full page reload, we
call the `preventDefault` on the submit event before calling the handler.

* chore: remove redundant spacing in component.

* fix: hook environment disable form up with the new form id system.

* chore: Update existing modal forms to pass in formId

* fix: Type the dialog event wrapper

* fix: change 'allows' => 'allow' because the noun is pluralized.

* fix: add autofocus to js add-tag-dialog-component.

I've got a feeling this component isn't in use anymore, though, as the
exact same text appears in a TS-version of this component.

* fix: add autofocus to add user form.

This seems to only be used as the main piece of a modal, so adding
autofocus seems pretty safe here, but I could be wrong.

* fix: Update snapshot test after changing wording.

* fix: add autofocus to update user form

* fix: add autofocus to the create toggle form.

This is a little besides the task's actual point. However! This form
is only ever used on the page where it's the only bit of content. I'd
argue that when the user navigates to this form, it's because they
want to create a feature. Thus, adding autofocus to the first field
makes a lot of sense to me.

* refactor: set button type to 'undefined' when it isn't 'submit'

This allows Material to use their default type based on whatever
heuristics they use. It's most likely going to be 'button' for the
foreseeable future, but in the event that they change it, passing
undefined instead should future-proof this a bit.

* fix: set type to button when formId is not present

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-11-29 15:18:12 +01:00
Renovate Bot
e767d5370a chore(deps): update dependency redux-thunk to v2.4.1 2021-11-27 01:53:34 +00:00
Renovate Bot
b69606cd98 chore(deps): update dependency sass to v1.43.5 2021-11-25 01:47:03 +00:00
Renovate Bot
fbb57c3f34 chore(deps): update dependency @types/react to v17.0.37 2021-11-24 23:59:52 +00:00
Renovate Bot
cb4fd81368 chore(deps): update dependency @testing-library/jest-dom to v5.15.1 2021-11-23 17:27:22 +00:00
Renovate Bot
2c7b544540 chore(deps): update dependency @types/react to v17.0.36 2021-11-21 22:33:29 +00:00
Renovate Bot
f3868d3a5b chore(deps): update dependency date-fns to v2.26.0 2021-11-19 11:23:51 +00:00
Renovate Bot
0d6f447021 chore(deps): update dependency @types/node to v14.17.34 2021-11-18 23:26:02 +00:00
Renovate Bot
742e6ae1d5 chore(deps): update dependency @types/jest to v27.0.3 2021-11-18 21:24:30 +00:00
Renovate Bot
ad30fd1991 chore(deps): update dependency typescript to v4.5.2 2021-11-17 22:27:28 +00:00
Renovate Bot
5c61c1f092 chore(deps): update dependency @types/react to v17.0.35 2021-11-16 01:45:15 +00:00
Renovate Bot
8d03cea719 chore(deps): update dependency @welldone-software/why-did-you-render to v6.2.3 2021-11-14 19:33:20 +00:00
Renovate Bot
abca75cb86 chore(deps): update dependency @types/node to v14.17.33 2021-11-09 00:54:16 +00:00
Renovate Bot
77d145f967 chore(deps): pin dependencies 2021-11-08 16:25:42 +00:00
Ivar Conradi Østhus
803e99c1db fix: support new event format with diff will be done in the UI (#496)
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-11-08 16:01:27 +01:00
Renovate Bot
f4d8d523c1 chore(deps): update dependency css-loader to v6.5.1 2021-11-03 22:49:15 +00:00
Renovate Bot
251991a607 chore(deps): update dependency @types/react-dom to v17.0.11 2021-11-03 13:02:08 +00:00
Renovate Bot
80c1318300 chore(deps): update dependency @types/react to v17.0.34 2021-11-03 10:50:42 +00:00
Renovate Bot
84e501c061 chore(deps): update dependency @testing-library/jest-dom to v5.15.0 2021-11-02 10:27:43 +00:00
Renovate Bot
0d1739bd6e chore(deps): update dependency node-fetch to v2.6.6 2021-10-31 18:48:41 +00:00
renovate[bot]
df9c5c9b30 chore(deps): update dependency redux to v4.1.2 (#478)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-28 12:21:09 +02:00
Renovate Bot
9f8760e480 chore(deps): update dependency sass to v1.43.4 2021-10-26 23:54:44 +00:00
Renovate Bot
794a5d5edc chore(deps): update dependency css-loader to v6.5.0 2021-10-26 20:30:39 +00:00
Renovate Bot
b9c7ff06c5 chore(deps): update dependency redux-thunk to v2.4.0 2021-10-26 10:19:38 +00:00
Renovate Bot
2f1ccf7f1d chore(deps): update dependency @types/react-router-dom to v5.3.2 2021-10-26 08:32:31 +00:00
Renovate Bot
d40ffaf64a chore(deps): update dependency @types/react to v17.0.33 2021-10-26 05:34:08 +00:00
Renovate Bot
3cc8b4505f chore(deps): update dependency @types/node to v14.17.32 2021-10-26 03:54:56 +00:00
Renovate Bot
05d86ec584 chore(deps): update dependency cypress to v8.7.0 2021-10-26 01:28:42 +00:00
Renovate Bot
9f3e32d64c chore(deps): update dependency react-redux to v7.2.6 2021-10-25 23:34:12 +00:00
Renovate Bot
c8a92afb84 chore(deps): update dependency @types/node to v14.17.31 2021-10-25 21:11:21 +00:00
Renovate Bot
a3377fb1a2 chore(deps): update dependency @types/react to v17.0.32 2021-10-24 13:01:38 +00:00
Renovate Bot
922ad7b2b2 chore(deps): update dependency @types/node to v14.17.29 2021-10-22 21:14:15 +00:00
renovate[bot]
5dca747898 chore(deps): update dependency @types/node to v14.17.28 (#460)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-22 13:29:14 +02:00
Renovate Bot
1bb9865e72 chore(deps): update dependency sass to v1.43.3 2021-10-21 23:38:45 +00:00
Renovate Bot
f2b4158e53 chore(deps): pin dependency copy-to-clipboard to 3.3.1 2021-10-21 10:10:50 +00:00
Youssef Khedher
7602327991 fix: using copy library for copying user token (#454)
* using copy library for copying user token

* add "copy-to-clipboard" to dev dependencies

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-10-21 10:50:41 +02:00
Renovate Bot
53f481498d chore(deps): update dependency @types/react to v17.0.31 2021-10-21 05:20:38 +00:00
Renovate Bot
c9e84c7dd1 chore(deps): update dependency @types/enzyme to v3.10.10 2021-10-20 23:51:24 +00:00
renovate[bot]
9a383967dc chore(deps): update dependency @types/react-dom to v17.0.10 (#449)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 13:12:17 +02:00
Renovate Bot
77d66f128a chore(deps): update dependency @testing-library/user-event to v13.5.0 2021-10-19 04:14:39 +00:00
Renovate Bot
7db86e75c1 chore(deps): update dependency @testing-library/user-event to v13.4.1 2021-10-15 17:19:38 +00:00