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

1490 Commits

Author SHA1 Message Date
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
Youssef Khedher
165170cd5c fix/breadcrumb (#533)
* fix: remove features2 from breadcrumb

* fix: strategy names

Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
2021-11-29 14:29:58 +01:00
Fredrik Strand Oseberg
0d13681fd6 4.3.0-beta.2 (#531) 2021-11-29 14:16:25 +01:00
Fredrik Strand Oseberg
7a5eea2aab Fix/splash (#534)
* fix: use correct env id

* fix: extract to constant

* fix: fetch user when logging in
2021-11-29 14:03:52 +01:00
Renovate Bot
e767d5370a chore(deps): update dependency redux-thunk to v2.4.1 2021-11-27 01:53:34 +00:00
Fredrik Strand Oseberg
710b689490 fix: sloader path (#530) 2021-11-26 16:30:39 +01:00
Fredrik Strand Oseberg
3bd373002e 4.3.0-beta.1 (#529) 2021-11-26 16:14:44 +01:00
sighphyre
b85b326104 task: Add buttons for deleting/editing a constraint (#522)
* task: Add buttons for deleting/editing a constraint

* task: Improve look and feel of constraints buttons

- Make constraints fill their container
- Move constraint buttons to material ui buttons
- Move constraint buttons to top right of their container

* fix: adjust positioning

* fix: added project id to permissin button

* fix: add correct permission

* fix: update create feature path

Co-authored-by: Simon Hornby <simon@getunleash.ai>
Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
2021-11-26 16:07:05 +01:00
sighphyre
3e53a64fcf fix: Remove edit click handler from variants list (#528)
Co-authored-by: Simon Hornby <simon@getunleash.ai>
2021-11-26 15:29:51 +01:00
Youssef Khedher
3281783fea fix: add logo in login screen for small size screen (#523)
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-11-26 15:07:01 +01:00
Youssef Khedher
f2a85ebf79 fix/strategy tab (#519)
* fix: add the toggle switch inside the strategies list

* fix: styling strategy execution tab

* fix: remove visual execution from strategy tab

* fix: test fail on yarn build

* fix: add style for the strategy container

* fix: remove overlapping of switch

* fix: remove border from select strategy

* fix: remove borders and adjust icon rollout

* fix: use theme grey

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-11-26 13:36:04 +01:00
Fredrik Strand Oseberg
d706bfc7bc fix: use specific attribute as useEffect trigger (#527)
* fix: use specific attribute as useEffect trigger

* fix: handle splash being undefined
2021-11-26 13:15:39 +01:00
Youssef Khedher
c34d8439bd Feat/splash (#491)
* splash screen

* add styles for controllers

* feat: animated circles

* fix: remove unused code

* fix: folder structure

* create splash screens for envs

* add styles and ui changes

* fix: revert App.tsx

* add splash state to store

* add splash to app.tsx + add a loader

* fix: mobile view + desktop view

* fix: render splash condition + styling fix

* fix: change splash display to full screen

* Update src/hooks/api/actions/useSplashApi/useSplashApi.ts

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>

* fix: change function type

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>

* fix: disable incrementing counter when matching the components length.

* fix: add SWR configuration

* fix: spelling mistakes in splash screen

* fix: add keys and adjust styling

* fix: tests

* fix: tests

* fix: default command timeout

Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
2021-11-26 11:12:37 +01:00
sighphyre
00b9a6c38d Merge pull request #525 from Unleash/fix/variant-list-popup
Fix variant list
2021-11-26 11:52:26 +02:00
Simon Hornby
116a8e73f7 Merge branch 'master' into fix/variant-list-popup 2021-11-26 09:32:59 +02:00
Simon Hornby
e5c941c68d Fix variant list
- Fix an issue where clicking a variant in the list would popup a modal
dialog with empty details
2021-11-25 16:02:38 +02:00
Christopher Kolstad
83443627d9 feat: Use new Variants API (#518)
* feat: Use new Variants API

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-11-25 14:05:44 +01: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
Youssef Khedher
707b91e173 Merge pull request #517 from Unleash/fix/search-field
fix: clear search input on route change
2021-11-24 22:05:16 +01:00
Youssef
3c6120a362 fix: typo in function name + remove unused value state 2021-11-24 20:59:23 +01:00
Fredrik Strand Oseberg
dd2b661928 Merge branch 'master' into fix/search-field 2021-11-24 14:43:01 +01:00
Fredrik Strand Oseberg
36fcac7178 Fix/project view desc (#515)
* fix: rollout icon and disabled state

* fix: mobile position

* refactor: move into style file

* fix: description box for projects

* fix: icon placement

* fix: icon

* fix: mobile project view

* fix: add style file to disabled indicator

* fix: hide icon on mobile

* fix: description

* fix: remove project logo
2021-11-24 14:36:21 +01:00
Fredrik Strand Oseberg
3be5181d0e Merge branch 'master' into fix/search-field 2021-11-24 14:06:26 +01:00
Youssef
64aa5bde06 fix: clear search input on route change 2021-11-24 11:41:43 +01:00
Renovate Bot
cb4fd81368 chore(deps): update dependency @testing-library/jest-dom to v5.15.1 2021-11-23 17:27:22 +00:00
Youssef Khedher
ade18c7a1a fix: remove margin under footer (#514)
* fix: remove margin under footer

* fix: update snapshots
2021-11-23 14:27:06 +01:00
Fredrik Strand Oseberg
47bfda1f7b fix: constraints scrollbars (#504) 2021-11-22 11:32:43 +01: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
Fredrik Strand Oseberg
e78273516a Chore/update frontend 4.2.13 (#503)
* chore: update changelog

* 4.2.13
2021-11-12 13:24:41 +01:00
Fredrik Strand Oseberg
1dd6e1d65c fix: mobile percentagecircle (#502) 2021-11-12 12:41:36 +01:00
Fredrik Strand Oseberg
3465f4c664 fix: status chip (#501) 2021-11-12 12:02:47 +01:00
Fredrik Strand Oseberg
c0da8ed6bc Feat/new toggle overview (#497)
* feat: toggle overview accordions

* feat: accordion metrics

* feat: result

* add permission button

* fix: remove feature environment container from strategies tab

* chore: delete unused code

* fix: remove console log

* fix: remove unused code

* fix: cleanup

* fix: refactor

* fix: add empty states

* fix: loading

* feat: mobile accordions

* fix: button

* fix: strategies

* fix: cleanup

* fix: remove unused params

* fix: strategy button container

* fix: alter gradual rollout id

* fix: update userid strategy item

* fix: string truncator

* fix: strategy link

* fix: strategies tab

* fix: remove unused imports

* fix: visual improvements

* fix: add border
2021-11-12 11:47:19 +01: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
Youssef Khedher
df170e6b1f Merge pull request #495 from Unleash/fix/revive-archived-feature
Fix/revive archived feature
2021-11-08 15:19:13 +01:00
Youssef
8d38b5cd7f fix: rename isProjectDeleted to projectExists and add PermissionIconButton 2021-11-08 10:22:37 +01:00
Youssef
64481e9c51 update snapshots 2021-11-05 23:35:44 +01:00
Youssef
9cc1e56f13 fix: disable revive feature when project is deleted 2021-11-05 23:21:21 +01:00
Youssef
1e47975dc8 use useProjects to check if project deleted or not 2021-11-05 10:14:52 +01:00
Youssef
e5ff80a9d5 fix: add correct path for create first toggle button 2021-11-05 09:22:01 +01:00