ui phase 10

This commit is contained in:
hamid
2026-07-19 17:13:32 +03:30
parent b638e25a0e
commit b4b8c9ea79
48 changed files with 1643 additions and 290 deletions
+14
View File
@@ -26,6 +26,20 @@ export const TICKETS_LIST_STALE_TIME = 30 * 1000;
export const TICKET_THREAD_STALE_TIME = 15 * 1000;
export const TICKETS_GC_TIME = 5 * 60 * 1000;
/**
* Poll the open thread while it's mounted (§3.2) — TanStack Query only polls while the query has an
* active observer, so this is automatically scoped to the thread screen. Proportionate to a support
* conversation, not a real-time chat; SSE can replace this later behind the same query.
*/
export const TICKET_THREAD_REFETCH_INTERVAL = 15 * 1000;
/**
* Photo-attachment affordance capability gate (§3.3) — the composer's attachment button is designed but
* renders only when this is on. Default **off**: the object-storage linkage for ticket messages is a
* backend gap (REQ-060); flip once that contract lands — no component change beyond this flag.
*/
export const TICKETS_ATTACHMENTS_ENABLED = false;
/** The admin global queue is a live worklist — a short stale window keeps it fresh without hammering. */
export const ADMIN_TICKETS_LIST_STALE_TIME = 20 * 1000;