import type { FeedbackCurrentUser, FeedbackItem, FeedbackRole } from "./types"; /** Default signed-in user per role — used to scope the "My requests" filter. */ export const MOCK_CURRENT_USERS: Record = { "system-admin": { name: "Jordan Lee", role: "Admin" }, // Matches the reporter on FB-1041 / FB-1034 so the Staff "My requests" tab // surfaces real items in the demo. staff: { name: "Daniel Ramirez", role: "Broker" }, }; export const MOCK_FEEDBACK: FeedbackItem[] = [ { id: "FB-1042", title: "Side-by-side property comparison on the report page", type: "enhancement", area: "Reports", priority: "high", status: "in-progress", reporter: { name: "Priya Kapoor", email: "priya.kapoor@wealthx.au", title: "Senior Advisor", }, problemStatement: "When walking a client through a property report I have to flip between tabs to compare two properties, losing narrative momentum each time and forcing the client to hold context in their head.", proposedSolution: "Add a pin icon to each property card. Pinning two properties opens a side-by-side comparison drawer highlighting deltas across yield, cashflow, and the 10-year forecast.", attachments: [ { name: "comparison-sketch.png", size: 184320, previewUrl: "/feedback/resource-centre.png", }, ], votes: 14, createdAt: "2026-05-28T03:12:00.000Z", }, { id: "FB-1041", title: "Bulk-update the stage for multiple opportunities at once", type: "enhancement", area: "Pipeline / CRM", priority: "high", status: "new", reporter: { name: "Daniel Ramirez", email: "daniel.ramirez@wealthx.au", title: "Broker", }, problemStatement: "After a settlement run I often need to move a dozen opportunities to the same stage. Dragging them one by one across the board is slow and easy to get wrong.", proposedSolution: "Add multi-select checkboxes to the pipeline board with a Move to stage bulk action in the toolbar.", workaround: "I move them one at a time and keep a sticky note of which ones I've done so I don't lose my place.", beneficiaries: ["Me", "My team"], attachments: [ { name: "bulk-move-mockup.png", size: 156000, previewUrl: "/feedback/company-list.png", }, ], votes: 12, createdAt: "2026-05-30T22:41:00.000Z", previewImage: "/feedback/company-list.png", }, { id: "FB-1040", title: "Bulk-export client documents as a single zip", type: "enhancement", area: "Documents", priority: "medium", status: "new", reporter: { name: "Grace Liu", email: "grace.liu@wealthx.au", title: "Client Manager", }, problemStatement: "Preparing a handover pack means downloading each document one at a time. For a client with 20+ files this is tedious and error-prone.", proposedSolution: "Add a Select all + Export as zip action to the document library toolbar.", attachments: [], votes: 9, createdAt: "2026-05-26T09:05:00.000Z", }, { id: "FB-1039", title: "Personalised dashboard with my daily priorities", type: "idea", area: "Dashboard", priority: "low", status: "resolved", reporter: { name: "Tom Becker", email: "tom.becker@wealthx.au", title: "Advisor", }, problemStatement: "When I log in I have to hunt across several screens to work out what needs my attention today. The dashboard could just tell me.", proposedSolution: "Surface a short Today list on the dashboard: overdue tasks, applications awaiting action, and appointments in the next 24 hours.", attachments: [], votes: 8, createdAt: "2026-05-21T01:30:00.000Z", }, { id: "FB-1038", title: "Inline AI summary of a loan applicant's risk profile", type: "idea", area: "Pipeline / CRM", priority: "medium", status: "new", reporter: { name: "Priya Kapoor", email: "priya.kapoor@wealthx.au", title: "Senior Advisor", }, problemStatement: "Reviewing a new applicant means reading across assets, debts, and income before forming a view. A one-paragraph AI summary at the top of the file would speed first-pass triage.", attachments: [], votes: 21, createdAt: "2026-05-29T11:48:00.000Z", }, { id: "FB-1037", title: "Let clients save and resume onboarding later", type: "enhancement", area: "Onboarding", priority: "high", status: "in-progress", reporter: { name: "Maria Santos", email: "maria.santos@wealthx.au", title: "Operations", }, problemStatement: "Clients often start onboarding, get interrupted, and have nowhere to pick up from. They have to start over, and many simply don't come back.", proposedSolution: "Persist partial onboarding progress and email the client a secure resume link so they can continue where they left off.", attachments: [ { name: "resume-flow-spec.png", size: 96000, previewUrl: "/feedback/integrations.png", }, ], votes: 17, createdAt: "2026-05-27T14:20:00.000Z", previewImage: "/feedback/resource-centre.png", }, { id: "FB-1036", title: "Keyboard shortcuts for the conversations inbox", type: "enhancement", area: "Settings", priority: "low", status: "declined", reporter: { name: "Daniel Ramirez", email: "daniel.ramirez@wealthx.au", title: "Broker", }, problemStatement: "Power users would move through the inbox faster with j/k navigation and e to archive.", proposedSolution: "Add a small set of vim-style shortcuts behind a settings toggle.", attachments: [], votes: 4, createdAt: "2026-05-19T08:10:00.000Z", previewImage: "/feedback/integrations.png", }, { id: "FB-1035", title: "Custom branding on exported PDF reports", type: "enhancement", area: "Reports", priority: "medium", status: "new", reporter: { name: "Grace Liu", email: "grace.liu@wealthx.au", title: "Client Manager", }, problemStatement: "Exported client reports use the default template, so larger brokerages can't present a report that matches their own brand to clients.", proposedSolution: "Let each tenant set a logo and accent colour that flow through to the PDF header, footer, and chart palette.", attachments: [{ name: "branded-report-sample.pdf", size: 240128 }], votes: 6, createdAt: "2026-05-24T16:02:00.000Z", }, { id: "FB-1034", title: "Document upload fails silently for files over 10 MB", type: "bug", area: "Documents", priority: "critical", status: "new", reporter: { name: "Daniel Ramirez", email: "daniel.ramirez@wealthx.au", title: "Broker", }, problemStatement: "Uploading a document larger than 10 MB shows a spinner that never resolves — no error, no success. The file is dropped and the client thinks it worked.", stepsToReproduce: "1. Open a client's document library\n2. Upload a PDF larger than 10 MB\n3. The spinner runs indefinitely — the file never appears and no error is shown", frequency: "Every time", impact: "I'm blocked", attachments: [ { name: "upload-stuck.png", size: 88000, previewUrl: "/feedback/company-list.png", }, ], // Bugs are triaged by severity, not votes — kept at 0 and never shown. votes: 0, createdAt: "2026-05-22T22:40:00.000Z", }, ]; export const EMPTY_FEEDBACK: FeedbackItem[] = [];