Skip to content
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

Playground environment diff table #4002

Merged
merged 6 commits into from
Jun 19, 2023
Merged

Playground environment diff table #4002

merged 6 commits into from
Jun 19, 2023

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Jun 19, 2023

About the changes

  • Environment diff table with context fields and enabled/disabled status in each environment
  • All columns are sortable
  • AppName is also displayed even though originally I was considering removing it, but users can override it and it would be confusing to hide it
Screenshot 2023-06-19 at 11 02 00

Next PRs:

  • test for the table
  • add info popover for each enabled/disabled label to see why it was enabled/disabled

Important files

Discussion points

@vercel
Copy link

vercel bot commented Jun 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2023 9:43am
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2023 9:43am

@@ -24,7 +24,7 @@ import { AdvancedPlaygroundResponseSchema } from 'openapi';
export const AdvancedPlayground: VFC<{}> = () => {
const { environments: availableEnvironments } = useEnvironments();
const theme = useTheme();
const matches = useMediaQuery(theme.breakpoints.down('lg'));
const matches = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI breaks on limited space we have in the right area so forcing mobile view for now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With breaks, do you mean the overflow ?

@@ -108,6 +108,11 @@ export const PlaygroundEnvironmentTable = ({
columns: COLUMNS as any,
data: features,
sortTypes,
autoResetGlobalFilter: false,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixing sorting to be consistent with other views

@kwasniew kwasniew changed the title A diff Playground environment diff table Jun 19, 2023
Copy link
Contributor

@andreas-unleash andreas-unleash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants