Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: simplify workspaces data fetching #17703

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 4 commits into from
May 8, 2025
Merged

Conversation

BrunoQuaresma
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma commented May 7, 2025

We've been using an abstraction that was not necessary to fetch workspaces data. I also took sometime to use the new useWorkspaceUpdate hook in the update workspace tooltip that was missing some important steps like confirmation.

@BrunoQuaresma BrunoQuaresma requested a review from a team May 7, 2025 14:39
@BrunoQuaresma BrunoQuaresma self-assigned this May 7, 2025
@BrunoQuaresma BrunoQuaresma requested review from bcpeinhardt and removed request for a team May 7, 2025 14:39
@@ -17,102 +20,99 @@ import { usePopover } from "components/deprecated/Popover/Popover";
import { linkToTemplate, useLinks } from "modules/navigation";
import type { FC } from "react";
import { useQuery } from "react-query";

const Language = {
Copy link
Contributor

Choose a reason for hiding this comment

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

I kinda like the pattern of putting all the language in a constant but it truly doesn't matter haha.

latestVersionId: string;
onUpdateVersion: () => void;
ariaLabel?: string;
workspace: Workspace;
Copy link
Contributor

Choose a reason for hiding this comment

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

Big fan 😎

limit: 0,
q: `template:${template.name}`,
});
const { data } = useQuery(
Copy link
Contributor

Choose a reason for hiding this comment

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

Big fan 😎

@BrunoQuaresma BrunoQuaresma merged commit 4341403 into main May 8, 2025
34 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/remove-workspaces-data branch May 8, 2025 12:42
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants