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

6454 Commits

Author SHA1 Message Date
Thomas Heartman
e03876286c docs: finish the API docs for segments 2022-04-02 16:27:09 +02:00
Renovate Bot
4d0760760b chore(deps): update dependency sass to v1.49.11 2022-04-02 04:21:03 +00:00
Thomas Heartman
102438946e docs: add POST and GET by ID 2022-04-01 16:24:35 +02:00
Renovate Bot
2858e47c24 chore(deps): update dependency @testing-library/user-event to v14.0.4 2022-04-01 14:06:33 +00:00
Thomas Heartman
d88032710b docs: describe GET /api/admin/segments 2022-04-01 16:04:10 +02:00
Thomas Heartman
5d164db46c docs: add relevant types for this API 2022-04-01 16:03:50 +02:00
Thomas Heartman
fc6ea25ebd docs: add more endpoint data 2022-04-01 15:47:00 +02:00
Thomas Heartman
cfbe04272a feat: make API request component work without payloads
There's been no previous need for GET or DELETE requests, but now that
we do need them, the payload shouldn't show up as `undefined`
2022-04-01 15:47:00 +02:00
Thomas Heartman
d167de76d8 docs: add stories file for API request component 2022-04-01 15:47:00 +02:00
Thomas Heartman
032176576b chore: add more docusaurus alias resolutions 2022-04-01 15:47:00 +02:00
Thomas Heartman
3440b4f42a docs: add segments api placeholder 2022-04-01 15:47:00 +02:00
Thomas Heartman
e37714d61a docs: First draft of segments reference doc 2022-04-01 15:47:00 +02:00
olav
311915ba30 feat: show segments in feature overview (#837)
* feat: show segments in feature overview

* refactor: avoid segment updates without the UI flag
2022-04-01 11:11:53 +02:00
olav
9f7d878422
fix: add missing awaits (#1472)
* refactor: silence expected console.error call

* fix: add missing access service awaits

* fix: add missing constraint validation await
2022-04-01 11:10:21 +02:00
olav
1da38781d5
feat: add segment limits (#1469)
* feat: add segment limits

* refactor: move segment limits to constants
2022-04-01 10:53:52 +02:00
olav
cf06b562f9
fix: allow instance ID to be empty for metrics (#1471) 2022-04-01 10:34:22 +02:00
Thomas Heartman
be21a2af68
Merge pull request #1473 from Unleash/docs/add-dotnet-constraint-warning
docs: Add .NET SDK to list of SDKs that crash on new operators
2022-04-01 10:31:31 +02:00
olav
f309553a5f refactor: port some things to TS (#833)
* refactor: remove unused securityLogger

* refactor: port commonStyles to TS

* refactor: port testIds to TS

* refactor: move app.css into themes

* refactor: use absolute import paths

* refactor: port LayoutPicker to TS

* refactor: port routes to TS

* refactor: port ScrollTop to TS

* refactor: update unused/missing ScrollTop exceptions

* refactor: remove unused route flags field

* refactor: change constants ext to TS

* refactor: remove unused testData file

* refactor: port styles to TS

* refactor: wait before typing in auth spec
2022-04-01 10:28:15 +02:00
Thomas Heartman
4306836511 docs: Add .NET SDK to list of SDKs that crash on new operators 2022-04-01 10:24:08 +02:00
Renovate Bot
391f1818f1 chore(deps): update react-dnd monorepo 2022-04-01 00:01:42 +00:00
Renovate Bot
8816ad5b0c chore(deps): update dependency @testing-library/user-event to v14.0.3 2022-03-31 21:26:24 +00:00
olav
a72f6ec8b5 chore: update react-dnd (#834)
* chore: update react-dnd

* refactor: add missing react-dnd types
2022-03-31 15:05:05 +02:00
renovate[bot]
4fce721981 chore(deps): update dependency @testing-library/react to v13 (#835)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-31 14:46:40 +02:00
renovate[bot]
b6766bb8ce chore(deps): update dependency @testing-library/user-event to v14 (#828)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-31 14:21:51 +02:00
Youssef
aaddcf4ae6 4.10.0-beta.0 2022-03-31 12:52:19 +01:00
Youssef
c1e45c0a70 feat: upgrade unleash-frontend to 4.10.0-beta.0 2022-03-31 12:51:53 +01:00
Youssef
654ae73e0b 4.10.0-beta.0 2022-03-31 12:39:12 +01:00
Youssef Khedher
8081e20b96 fix: toast in mobile view (#831)
* fix: toast in mobile view

* fix: feature settings mobile view

* fix: feedback in mobile

* fix: add space for ts expect error

* fix: change breakpoint to xs instead of sm
2022-03-31 11:14:13 +01:00
olav
70e4f4608a fix: improve toggle environment toast text (#829) 2022-03-31 11:37:16 +02:00
olav
dbb62631a6 feat: add FeedbackCES component (#826)
* refactor: add screen-reader-only util class

* refactor: move FeedbackNPS component

* feat: add FeedbackCES component

* refactor: improve hidden checkbox styles

* refactor: fix IFeedbackEndpointRequestBody source type

* refactor: remove unnecessary event.persist() calls

* refactor: remove disableEscapeKeyDown from FeedbackCES modal

* refactor: make textarea label customizable

* refactor: store feedback state on the backend

* refactor: add FeedbackCESForm snapshot test

* refactor: use extant IAuthFeedback type

* refactor: fix showNPSFeedback logic for multiple feedback types
2022-03-31 09:23:46 +02:00
Renovate Bot
2377def561 chore(deps): update dependency sass to v1.49.10 2022-03-31 04:09:57 +00:00
olav
66d9d7a6d2
feat: add segments (#1426)
* refactor: fix missing tsconfig path in .eslintrc

* refactor: require contextName and operator

* refactor: fix crash on missing feature strategies

* feat: add segments schema

* feat: add segments client API

* feat: add segments permissions

* refactor: fail migration if things exist

* refactor: remove strategy IDs from responses

* refactor: allow empty description

* refactor: add segment import/export

* refactor: add perf scripts

* refactor: add get segment fn

* refactor: move constraint validation endpoint

* refactor: use a separate id for segment updates

* refactor: use PERF_AUTH_KEY for artillery

* refactor: adjust segment seed size

* refactor: add missing event data await

* refactor: improve method order

* refactor: remove request body limit override
2022-03-29 14:59:14 +02:00
Youssef Khedher
d545fbdfcb fix: buttons not showing up on mobile view (#825) 2022-03-29 11:57:06 +01:00
Youssef Khedher
eeda7ab5e4 feat: add segments (#780)
* feat: create segmentation structure and list

* feat: remove unused deps and change route

* feat: change header style and add renderNoSegments

* fix: style table header

* feat: create useSegments hook

* feat: add segmentApi hook

* feat: create segment

* fix: errors

* feat: add contextfields list

* fix: remove user from create segment api

* feat: add form structure

* feat: add SegmentFormStepOne

* fix: tests and routes

* feat: add constraint view

* feat: UI to match the sketch

* feat: add constraint on context select

* fix: duplication

* fix adding constraints

Co-authored-by: olav <mail@olav.io>

* fix: input date not showing up in constraint view

Co-authored-by: olav <mail@olav.io>

* fix: minor bugs

Co-authored-by: olav <mail@olav.io>

* fix: create context modal in segment page

Co-authored-by: olav <mail@olav.io>

* fix: validate constraint before create segment

Co-authored-by: olav <mail@olav.io>

* feat: create useSegment hook

Co-authored-by: olav <mail@olav.io>

* feat: create edit component

Co-authored-by: olav <mail@olav.io>

* refactor: move constraint validation endpoint

* refactor: add missing route snapshot

* refactor: fix segment constraints unsaved/editing state

* refactor: remove create segment from mobile header menu

* refactor: update segments form description

* refactor: extract SegmentFormStepList component

* refactor: add an optional FormTemplate docs link label

* refactor: fix update segment payload

* feat: finish edit component

Co-authored-by: olav <mail@olav.io>

* refactor: move step list above segment form

* fix: update PR based on feedback

Co-authored-by: olav <mail@olav.io>

* refactor: fix constraint validation endpoint path

* refactor: improve constraint state field name

* refactor: extract AutocompleteBox component

* feat: add strategy segment selection

* refactor: add strategy segment previews

* refactor: fix double section separator line

* feat: disable deleting a usable segment

* refactor: warn about segments without constraints

* refactor: update text in delete segment dialogue

* refactur: improve arg names

* refactor: improve index var name

* refactor: clarify steps list logic

* refactor: use a required prop for the segment name

* refactor: use ConditionallyRender for segment deletion

* refactor: fix segments refetch

* refactor: improve CreateUnleashContext component names

* refactor: adjust segment form styles

* refactor: adjust text

* refactor: fix info icon tooltip hover target

* refactor: add missing aria attrs to preview button

* refactor: add strat name to delete segment modal

* refactor: fix segment chip text alighment

* refactor: use bulk endpoint for strategy segments

* refactor: fix imports after merge

Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
Co-authored-by: olav <mail@olav.io>
2022-03-29 09:30:57 +02:00
Renovate Bot
8568573b4b chore(deps): update dependency cypress to v9.5.3 2022-03-29 03:37:04 +00:00
Youssef Khedher
f9cdb6ca0c fix: handle projectId validation (#823)
* fix: handle projectId validation

* chore: remove unused function

* fix: update PR based on feedback
2022-03-28 22:45:41 +01:00
dependabot[bot]
27d6e364af chore(deps): bump ansi-regex from 5.0.0 to 5.0.1 (#822)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 12:45:21 +02:00
renovate[bot]
4aff526252 chore(deps): update dependency @testing-library/dom to v8.12.0 (#821)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-28 12:28:40 +02:00
renovate[bot]
c8e2260ab9 chore(deps): update dependency @testing-library/jest-dom to v5.16.3 (#814)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-28 12:20:18 +02:00
dependabot[bot]
501071691c chore(deps): bump browserslist from 4.16.3 to 4.20.2 (#819)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.20.2.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.20.2)

---
updated-dependencies:
- dependency-name: browserslist
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 11:58:50 +02:00
dependabot[bot]
3c3277f189 chore(deps): bump minimist from 1.2.5 to 1.2.6 (#813)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 11:24:19 +02:00
Youssef Khedher
85950f104a chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
Youssef Khedher
4589a19e03 fix: misc UI improvements (#806)
* fix: link color in project features

Co-authored-by: olav <mail@olav.io>

* fix: link in health page

Co-authored-by: olav <mail@olav.io>

* fix: keep sorting state in project toggles list

Co-authored-by: olav <mail@olav.io>

* fix: style link in the toggle list project

Co-authored-by: olav <mail@olav.io>

* refactor: update browser list

Co-authored-by: olav <mail@olav.io>

Co-authored-by: olav <mail@olav.io>
2022-03-25 15:30:52 +01:00
olav
cfc2338e78 refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
Thomas Heartman
f469b41eb9
Merge pull request #1466 from Unleash/docs/update-jira-docs
docs: Update Jira docs with new installation instructions
2022-03-25 12:18:49 +01:00
sighphyre
66f3967812 docs: Add some details on running and debugging the e2e tests (#526)
* docs: Add some details on running and debugging the e2e tests

* docs: Designate code block in README as bash

* refactor: update e2e instructions

* refactor: remove e2e timeout warning

Co-authored-by: Simon Hornby <simon@getunleash.ai>
Co-authored-by: olav <mail@olav.io>
2022-03-25 12:13:39 +01:00
Renovate Bot
8771302dac chore(deps): update dependency prettier to v2.6.1 2022-03-25 10:54:49 +00:00
sighphyre
17e7777a75
Update website/docs/integrations/jira-server-plugin-installation.md
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2022-03-25 12:51:47 +02:00
sighphyre
8c13fe74a8
Update website/docs/integrations/jira-server-plugin-installation.md
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2022-03-25 12:51:37 +02:00
sighphyre
69532656bd
Update website/docs/integrations/jira-server-plugin-installation.md
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2022-03-25 12:50:43 +02:00