Skip to content

chore: remove kirby button #19501

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions site/src/api/queries/workspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { DetailedError, isApiValidationError } from "api/errors";
import type {
CreateWorkspaceRequest,
ProvisionerLogLevel,
UpdateWorkspaceACL,
UsageAppName,
Workspace,
WorkspaceAgentLog,
Expand Down Expand Up @@ -422,14 +421,6 @@ export const workspacePermissions = (workspace?: Workspace) => {
};
};

export const updateWorkspaceACL = (workspaceId: string) => {
return {
mutationFn: async (patch: UpdateWorkspaceACL) => {
await API.updateWorkspaceACL(workspaceId, patch);
},
};
};

export const workspaceAgentCredentials = (
workspaceId: string,
agentName: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const TemplatePermissionsPageView: FC<

return (
<>
<PageHeader css={styles.pageHeader}>
<PageHeader className="pt-0">
<PageHeaderTitle>Permissions</PageHeaderTitle>
</PageHeader>

Expand Down Expand Up @@ -419,8 +419,4 @@ const styles = {
fontSize: 14,
color: theme.palette.text.secondary,
}),

pageHeader: {
paddingTop: 0,
},
} satisfies Record<string, Interpolation<Theme>>;
Original file line number Diff line number Diff line change
@@ -1,35 +1,21 @@
import { updateWorkspaceACL } from "api/queries/workspaces";
import { Button } from "components/Button/Button";
import { ExternalImage } from "components/ExternalImage/ExternalImage";
import { PageHeader, PageHeaderTitle } from "components/PageHeader/PageHeader";
import type { FC } from "react";
import { useMutation } from "react-query";
import { Helmet } from "react-helmet-async";
import { pageTitle } from "utils/page";
import { useWorkspaceSettings } from "../WorkspaceSettingsLayout";

const localKirbyId = "1ce34e51-3135-4720-8bfc-eabce178eafb";
const devKirbyId = "7a4319a5-0dc1-41e1-95e4-f31e312b0ecc";

const WorkspaceSharingPage: FC = () => {
const workspace = useWorkspaceSettings();
const shareWithKirbyMutation = useMutation(updateWorkspaceACL(workspace.id));

const onClick = () => {
shareWithKirbyMutation.mutate({
user_roles: {
[localKirbyId]: "admin",
[devKirbyId]: "admin",
},
});
};

return (
<Button
onClick={onClick}
className=" bg-white hover:bg-pink-300 text-pink-800 hover:text-pink-950"
size="lg"
>
<ExternalImage src="/kirby.gif" />
Share with Kirby
</Button>
<>
<Helmet>
<title>{pageTitle(workspace.name, "Sharing")}</title>
</Helmet>
<PageHeader className="pt-0">
<PageHeaderTitle>Sharing</PageHeaderTitle>
</PageHeader>
</>
);
};

Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy