8000 [ENHANCEMENT] Autocomplete project name in the migration page by Nexucis · Pull Request #1425 · perses/perses · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[ENHANCEMENT] Autocomplete project name in the migration page #1425

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

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

Nexucis
Copy link
Member
@Nexucis Nexucis commented Sep 12, 2023

I'm adding an autocompletion for the project name in the migration page. It's one of the two things needed for #1364

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
@@ -148,18 +152,27 @@ function MigrateView() {
{migrateMutation.error.message}
</Alert>
)}
{migrateMutation.isSuccess && (
<Stack direction={'row'} spacing={1}>
{!isLoading && data !== undefined && data !== null && migrateMutation.isSuccess && (
Copy link
Member

Choose a reason for hiding this comment

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

{!isLoading && data && migrateMutation.isSuccess && (

Copy link
Member Author

Choose a reason for hiding this comment

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

I am following the Perses UI guidelines here:

Use explicit null or undefined checks instead of relying on JS falsiness

Copy link
Contributor
@AntoineThebaud AntoineThebaud left a comment

Choose a reason for hiding this comment

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

LGTM, just dropped a suggestion for var naming

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
@Nexucis Nexucis force-pushed the nexucis/autocomplete-project-name branch from 906c42a to 344bf5d Compare September 12, 2023 10:47
@Nexucis Nexucis merged commit 8c8d6e8 into main Sep 12, 2023
@Nexucis Nexucis deleted the nexucis/autocomplete-project-name branch September 12, 2023 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0