mirror of
https://github.com/multica-ai/multica.git
synced 2026-08-01 01:16:17 +02:00
Redesign both Issues and My Issues headers with Linear-style layout: - Left: scope pill buttons (All/Members/Agents for Issues; Assigned/Created/My Agents for My Issues) - Right: compact icon buttons for Filter, Display, and View toggle - Selected scope has accent background, all buttons use consistent outline variant - Filter active indicator uses brand-colored dot - Tooltips on all buttons with 500ms global delay - Remove New Issue button and issue count from headers - Scope selection persisted to localStorage Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
456 B
TypeScript
22 lines
456 B
TypeScript
"use client";
|
|
|
|
import { create } from "zustand";
|
|
import { persist } from "zustand/middleware";
|
|
|
|
export type IssuesScope = "all" | "members" | "agents";
|
|
|
|
interface IssuesScopeState {
|
|
scope: IssuesScope;
|
|
setScope: (scope: IssuesScope) => void;
|
|
}
|
|
|
|
export const useIssuesScopeStore = create<IssuesScopeState>()(
|
|
persist(
|
|
(set) => ({
|
|
scope: "all",
|
|
setScope: (scope) => set({ scope }),
|
|
}),
|
|
{ name: "multica_issues_scope" },
|
|
),
|
|
);
|