feat(timeline): add pulse animation for in-flight drag mutations
Allocation bars that have active optimistic overrides (post-drag, awaiting server confirmation) now pulse subtly via animate-pulse. The pending set is derived from the existing optimisticAllocations map keys, requiring no additional state. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { isAdminOrManager } from "@capakraken/shared";
|
||||
import type { TRPCContext } from "../trpc.js";
|
||||
|
||||
export type OwnedResourceReadContext = Pick<TRPCContext, "db" | "dbUser">;
|
||||
|
||||
export function canManageOwnedResourceReads(ctx: { dbUser: { systemRole: string } | null }): boolean {
|
||||
const role = ctx.dbUser?.systemRole;
|
||||
return role === "ADMIN" || role === "MANAGER";
|
||||
return isAdminOrManager(ctx.dbUser?.systemRole);
|
||||
}
|
||||
|
||||
export async function findOwnedReadResourceId(
|
||||
|
||||
Reference in New Issue
Block a user