Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

refactor(frontend): move RowAction and AccountSelect to shared components

spacesdrive95e63ff06064
diff --git a/frontend/src/features/publishing/AccountSelect.tsx b/frontend/src/components/AccountSelect.tsx
similarity index 96%
rename from frontend/src/features/publishing/AccountSelect.tsx
rename to frontend/src/components/AccountSelect.tsx
index 85b9c08..901d058 100644
--- a/frontend/src/features/publishing/AccountSelect.tsx
+++ b/frontend/src/components/AccountSelect.tsx
@@ -1,6 +1,6 @@
import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';
import { AccountAvatar } from '@/components/platform';
-import type { AppAccount } from '../../utils/formatters';
+import type { AppAccount } from '../utils/formatters';
interface AccountSelectProps {
accounts: AppAccount[];
diff --git a/frontend/src/features/analytics/tracked/RowAction.tsx b/frontend/src/components/RowAction.tsx
similarity index 100%
rename from frontend/src/features/analytics/tracked/RowAction.tsx
rename to frontend/src/components/RowAction.tsx
diff --git a/frontend/src/features/analytics/tracked/TrackedRow.tsx b/frontend/src/features/analytics/tracked/TrackedRow.tsx
index f6a6282..03cfdb3 100644
--- a/frontend/src/features/analytics/tracked/TrackedRow.tsx
+++ b/frontend/src/features/analytics/tracked/TrackedRow.tsx
@@ -8,7 +8,7 @@ import { PlatformBadge } from '@/components/platform';
import { cn } from '@/lib/utils';
import { fmtDate, fmtNum } from '../../../utils/formatters';
import { hasTrackedViews, trackedViews } from '../../../utils/trackedContent';
-import RowAction from './RowAction';
+import RowAction from '@/components/RowAction';
import TrackedThumbnail from './TrackedThumbnail';
import type { TrackedContentItem } from '@shared/types/domain.ts';
diff --git a/frontend/src/features/publishing/BulkSettings.tsx b/frontend/src/features/publishing/BulkSettings.tsx
index 2be195b..7bbf142 100644
--- a/frontend/src/features/publishing/BulkSettings.tsx
+++ b/frontend/src/features/publishing/BulkSettings.tsx
@@ -4,7 +4,7 @@ import { Switch } from '@/components/ui/switch';
import { Textarea } from '@/components/ui/textarea';
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';
import DetailPanel, { FieldRow } from '@/components/DetailPanel';
-import AccountSelect from './AccountSelect';
+import AccountSelect from '@/components/AccountSelect';
import BulkScheduleFields from './BulkScheduleFields';
import IconInput from './IconInput';
import TypePicker from './TypePicker';
diff --git a/frontend/src/features/publishing/SinglePostSettings.tsx b/frontend/src/features/publishing/SinglePostSettings.tsx
index 39ac31e..c065a69 100644
--- a/frontend/src/features/publishing/SinglePostSettings.tsx
+++ b/frontend/src/features/publishing/SinglePostSettings.tsx
@@ -2,7 +2,7 @@ import { AtSign, Calendar, Image as ImageIcon, MapPin, Send, UserPlus } from 'lu
import { Button } from '@/components/ui/button';
import { Spinner } from '@/components/ui/spinner';
import DetailPanel, { FieldRow } from '@/components/DetailPanel';
-import AccountSelect from './AccountSelect';
+import AccountSelect from '@/components/AccountSelect';
import IconInput from './IconInput';
import PostSummary from './PostSummary';
import ReelOptions from './ReelOptions';