-
Notifications
You must be signed in to change notification settings - Fork 887
feat: add warning about use of old/removed/invalid experiments #12962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8e41663
to
1d76eed
Compare
We already generate the list of all valid experiments via
Can we simply just use this to check if an experiment is valid or not? |
Oh interesting! I didn't know about that list... |
I think that may be due to |
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Replaced green circle with more neutral icon to indicate enabled experiments Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
788c430
to
acb0d03
Compare
Signed-off-by: Danny Kopping <danny@coder.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but would probably also wait for someone from @fe to review.
Also note: when you make changes, you need to go into Chromatic to accept the new baseline.
site/src/pages/DeploySettingsPage/GeneralSettingsPage/GeneralSettingsPageView.tsx
Outdated
Show resolved
Hide resolved
site/src/pages/DeploySettingsPage/GeneralSettingsPage/GeneralSettingsPageView.tsx
Outdated
Show resolved
Hide resolved
site/src/pages/DeploySettingsPage/GeneralSettingsPage/GeneralSettingsPageView.tsx
Outdated
Show resolved
Hide resolved
site/src/pages/DeploySettingsPage/GeneralSettingsPage/GeneralSettingsPageView.tsx
Outdated
Show resolved
Hide resolved
Accidentally published my reviews early – not quite done yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a couple of recommendations, but nothing worth blocking over.
I haven't worked as much with the E2E tests, but if you need help getting that to pass, I'm happy to pair on that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Parkreiner already gave a thorough review so I don't have too much to add. I approved your storybooks and the new UI looks nice! @mtojek might be able to help you out with that E2E test; it was added recently here.
Signed-off-by: Danny Kopping <danny@coder.com>
…he previous behaviour Signed-off-by: Danny Kopping <danny@coder.com>
9646c8d
to
8836f25
Compare
@Parkreiner thanks for the detailed review! I've made your suggested changes plus a couple others. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had one last suggestion, but this looks good!
site/src/pages/DeploySettingsPage/GeneralSettingsPage/GeneralSettingsPage.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Danny Kopping <danny@coder.com>
Fixes #12725
If one of the FE folks could help me refactor
site/src/pages/DeploySettingsPage/Option.tsx
andsite/src/pages/DeploySettingsPage/optionValue.ts
to allow another boolean indicating whether an experiment is invalid or not, we could change the display of enabled experiments to indicate invalid ones as well. I tried various attempts at this but my lack of TS knowledge is hindering me.I changed the
CheckCircleOutlined
toLabelImportant
because a check indicates that it is valid, where really we just want to display that it's enabled. We could leave it like this IMHO but doing the above would be more user-friendly.I haven't done frontend in a very long time so please forgive any glaringly obvious violations of good practice and point them out to me so I can improve them.