1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend
olav baae88c7a5 feat: add new feature strategy create/edit pages (#739)
* refactor: add param helper hooks

* refactor: remove first add strategy link

* refactor: add more types to useStrategies

* refactor: port strategy utils to TS

* refactor: replace rollout strategy icon

* refactor: use a named export for useFeature

* refactor: add more types to useFeature

* refactor: adjust code box styles

* refactor: add missing PermissionButton variant prop

* refactor: add missing button icon label

* refactor: move common feature components

* refactor: fix StrategyConstraints error prop types

* refactor: fix GeneralStrategy prop types

* feat: add new feature strategy create/edit pages

* refactor: remove feature strategies page

* refactor: fix types in GeneralStrategy

* refactor: use ConstraintAccordion on the new pages

* refactor: use ConditionallyRender for remove button

* refactor: rename FeatureStrategyForm component

* refactor: use the Edit icon for feature strategies

* refactor: fix initial edit mode for new constraints

* refactor: add FeatureStrategyMenu to closed accordions

* refactor: allow editing multiple constraints

* refactor: show single-valued constraint value

* refactor: increase feature overview strategy width

* refactor: add remove button to feature overview strategies

* refactor: move createEmptyConstraint to own file

* refactor: disable submit button for invalid constraints

* refactor: fix nested paragraphs on the metrics page

* refactor: move create/edit feature strategy to modal

* refactor: always open new constraints in edit mode

* refactor: use a PermissionButton for the save button

* refactor: remvoe unsaved constraints on cancel

* refactor: clarify useConstraintsValidation logic

* refactor: remove unused strategy descriptions

* refactor: restore Rollout icon

* refactor: remove sidebar modal slide animation

* refactor: avoid constraint accordion toggle on edit/delete

* refactor: truncate long strategy names

* refactor: find the correct remove button
2022-03-09 14:59:24 +01:00
..
.github/workflows chore(deps): update actions/checkout action to v2 (#589) 2022-02-28 09:28:01 +01:00
cypress feat: add new feature strategy create/edit pages (#739) 2022-03-09 14:59:24 +01:00
public
src feat: add new feature strategy create/edit pages (#739) 2022-03-09 14:59:24 +01:00
.editorconfig
.gitignore
.nvmrc
.prettierignore
.prettierrc refactor: format files (#719) 2022-02-18 09:51:10 +01:00
CHANGELOG.md
cypress.json refactor: fix flaky Cypress tests (#746) 2022-02-25 10:21:28 +01:00
index.js
LICENSE
package.json feat: add new feature strategy create/edit pages (#739) 2022-03-09 14:59:24 +01:00
README.md refactor: remove craco and wdyr (#753) 2022-03-01 10:56:38 +01:00
renovate.json
tsconfig.json feat: add baseUrl to tsconfig and update imports 2022-02-20 21:08:02 +01:00
typings.json
vercel.json
yarn.lock feat: add new feature strategy create/edit pages (#739) 2022-03-09 14:59:24 +01:00

unleash-frontend

Run with a local instance of the unleash-api:

You need to first start the unleash-api on port 4242 before you can start working on unleash-frontend. Start webpack-dev-server with hot-reload:

cd ~/unleash-frontend
yarn install
yarn run start

Run with a heroku-hosted unleash-api:

cd ~/unleash-frontend
yarn install
yarn run start:heroku

UI Framework

We are using material-ui.

Happy coding!