1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-23 20:07:40 +02:00
Commit Graph

9092 Commits

Author SHA1 Message Date
Youssef
5e6e7e1aac adding tests 2021-12-01 10:41:41 +01:00
Thomas Heartman
df74d29f1e docs: adjust variant outline; add rough ideas. 2021-12-01 10:35:05 +01:00
Youssef
26c9bfa3c8 fix: add timestamp on project creation for update_at column 2021-12-01 09:59:34 +01:00
Thomas Heartman
f83ffb6746
Merge pull request #1144 from Unleash/docs/document-proxy-payload-format
docs: describe the shape of the data returned by the Unleash proxy
2021-12-01 09:24:24 +01:00
Thomas Heartman
a70782e841
Merge pull request #1139 from Unleash/docs/add-section-on-stale-toggles
docs: Add section on (potentially) stale toggles to tech debt
2021-12-01 09:22:01 +01:00
Renovate Bot
debd66dee5 chore(deps): update node.js to v14.18.2 2021-11-30 19:51:30 +00:00
Renovate Bot
8d2f593883 chore(deps): update dependency jest to v27.4.2 2021-11-30 14:32:46 +00:00
Youssef
00f5740d18 fix: rename last_update to updated_at 2021-11-30 15:25:52 +01:00
Youssef
c3273ce1ab fix: remove lastUpdate from fieldToRow 2021-11-30 15:14:50 +01:00
Youssef
71c6b05bc4 fix: remove unused dep 2021-11-30 14:53:31 +01:00
Renovate Bot
4d82c95ce0 chore(deps): update dependency date-fns to v2.27.0 2021-11-30 13:21:45 +00:00
Youssef
10c1b56e38 add lastupdate to health report 2021-11-30 14:05:44 +01:00
Thomas Heartman
e41d6b0f4d docs: describe the shape of the data returned by the Unleash proxy
This commit attempts to explain what the proxy returns in more detail,
explaining how payloads work and what the `enabled` properties mean
and how they relate to the rest of the content.
2021-11-30 12:52:46 +01:00
Renovate Bot
7343a27226 chore(deps): update dependency prettier to v2.5.0 2021-11-30 09:57:01 +00:00
Youssef
991a4a8634 add last-update migration to projects table 2021-11-30 10:40:58 +01: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
Renovate Bot
b2dd2ad8eb chore(deps): update typescript-eslint monorepo to v5.5.0 2021-11-29 22:36:07 +00:00
Renovate Bot
d20fc54b80 chore(deps): update dependency jest to v27.4.0 2021-11-29 18:03:18 +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
Thomas Heartman
2898b77dd6 docs: Add section on (potentially) stale toggles to tech debt
Previously, when you searched for 'stale toggle' in the docs, the
first result would be the API docs and it'd be hard to find any form
of explanation of what a stale toggle is at all.

To combat that, this commit adds a section to the tech debt chapter
explaining what they are.
2021-11-29 14:55:50 +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
Thomas Heartman
fb185311e0
Merge pull request #1137 from Unleash/thomasheartman-patch-1
docs: typo; change "metics" -> "metrics"
2021-11-29 09:20:52 +01:00
Thomas Heartman
736faaca5b
docs: typo; change "metics" -> "metrics" 2021-11-29 08:40:59 +01:00
Thomas Heartman
f6cde0fce3
Merge pull request #1133 from Unleash/docs/update-environmment-listing
docs: List environment article and prep it for release
2021-11-29 07:51:51 +01:00
renovate[bot]
5e195f0a50
chore(deps): update dependency lint-staged to v12 (#1104)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-27 09:26:11 +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
Ivar Conradi Østhus
c318ee919d
fix: correct version number for unleash-frontend 2021-11-26 15:48:38 +01:00
Ivar Conradi Østhus
a355f23b9f
fix: require json-schema v0.4.0 or later (#1135) 2021-11-26 15:45:30 +01:00
Ivar Conradi Østhus
eb8265922d
Fix/enable standard environments (#1134) 2021-11-26 15:31:36 +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
Thomas Heartman
1af8b23149 docs: remove references to environments being a beta feature.
Also specify that if you're on version 4.3, you don't need to do anything.
2021-11-26 13:53:46 +01:00
Thomas Heartman
1837a6ec35 docs: add environments post to side bar. 2021-11-26 13:53:32 +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
Christopher Kolstad
5829ec7b3d
task: Sort variants by name (#1132) 2021-11-26 13:06:36 +01:00
Thomas Heartman
620aff23b4
Merge pull request #1129 from Unleash/docs/detail-health-rating-updates
docs: Clarify that health rating is only updated once an hour.
2021-11-26 12:19:47 +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
Thomas Heartman
7bfe306545
Merge branch 'master' into docs/detail-health-rating-updates 2021-11-26 11:07:48 +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
renovate[bot]
769e8693b3
chore(deps): update metcalfc/changelog-generator action to v3 (#1121)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-25 20:08:33 +01:00
Renovate Bot
44e118be5e chore(deps): update dependency prettier to v2.5.0 2021-11-25 18:12:51 +00: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