⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
refactor(web): remove two unused settings components (#690)
Croffa16bec3bbe81
diff --git a/apps/web/src/features/settings/components/crud/SettingsCreateAction.tsx b/apps/web/src/features/settings/components/crud/SettingsCreateAction.tsxdeleted file mode 100644index 4a145a22..00000000--- a/apps/web/src/features/settings/components/crud/SettingsCreateAction.tsx+++ /dev/null@@ -1,35 +0,0 @@-'use client';--import { useState, type ReactNode } from 'react';-import { Plus } from 'lucide-react';-import type { PermissionResource } from '@/lib/api/endpoints/roles';-import { Button } from '@/components/ui/button';-import { usePermissions } from '@/hooks/usePermissions';--// A settings page's primary "add" action, rendered in the page header. Owns the-// create-dialog open state and gates itself on the section's create permission-// (hidden when the user cannot create). Used in a SectionPageView's `actions` slot.-export function SettingsCreateAction({- resource,- label,- children,-}: {- resource: PermissionResource;- label: string;- children: (state: { open: boolean; close: () => void }) => ReactNode;-}) {- const { can } = usePermissions();- const [open, setOpen] = useState(false);-- if (!can(resource, 'create')) return null;-- return (- <>- <Button size="sm" className="h-8 gap-1.5" onClick={() => setOpen(true)}>- <Plus className="size-3.5" />- {label}- </Button>- {children({ open, close: () => setOpen(false) })}- </>- );-}diff --git a/apps/web/src/features/teams/components/workspace/scim/WorkspaceScimSection.tsx b/apps/web/src/features/teams/components/workspace/scim/WorkspaceScimSection.tsxdeleted file mode 100644index 4a7fb930..00000000--- a/apps/web/src/features/teams/components/workspace/scim/WorkspaceScimSection.tsx+++ /dev/null@@ -1,27 +0,0 @@-'use client';--import { useTranslations } from 'next-intl';-import { useWorkspaceScimQuery } from '@/services/workspaces.service';-import SectionPageView from '@/components/common/page/SectionPageView';-import ListSkeleton from '@/components/common/skeleton/ListSkeleton';-import WorkspaceScimSettings from './WorkspaceScimSettings';--// SCIM provisioning: the token an identity provider authenticates with, and what the-// groups it pushes grant. Nothing here is a form the owner fills in and saves — the-// switch and the token act on their own — so there is no page-level Save. The core sets-// up the instance's SCIM in god mode (GodScimPage); this is the page a hosted build adds-// to every workspace's settings through `useWorkspaceSections`.-export default function WorkspaceScimSection({ workspaceId }: { workspaceId: number }) {- const t = useTranslations('teams.workspace.scim');- const settings = useWorkspaceScimQuery(workspaceId).data;-- return (- <SectionPageView title={t('title')} description={t('description')}>- {settings ? (- <WorkspaceScimSettings workspaceId={workspaceId} settings={settings} />- ) : (- <ListSkeleton rows={5} rowClassName="h-12" />- )}- </SectionPageView>- );-}