Ticket queue table detail — Tasks block
Protasks-ticket-queue-table-detail · for app, support pages
Ticket queue table detail
A ticket register above the open case for reviewing the merchant’s own support queue without losing the order context.
Documentation
Installation
One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
pnpm dlx shadcn-vue@latest add @trame/tasks-ticket-queue-table-detailUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import TasksTicketQueueTableDetail from '@/components/trame/blocks/tasks/tasks-ticket-queue-table-detail.vue'
const props = {
title: "Request follow-up",
ticket: {
id: "DOS-108",
subject: "An item arrived damaged",
status: "Waiting on customer",
priority: "Normal",
openedAt: "October 8, 2026 · 9:00 AM",
requester: {
id: "client-0",
name: "Camille Durand",
email: "[email protected]"
},
assignee: {
name: "Nadia Roussel"
},
messages: [
{
id: "message-0",
author: {
name: "Camille Durand",
role: "Requester"
},
kind: "customer",
at: "October 8 · 9:00 AM",
body: "Hello, one of the mugs in my order arrived with a broken handle. Could you tell me how to get a replacement?"
},
{
id: "message-1",
author: {
name: "Nadia Roussel",
role: "Customer service"
},
kind: "reply",
at: "October 8 · 9:15 AM",
body: "Hello, we’ll look into your request. Could you send us a photo of the mug and its packaging by replying to this message?"
}
],
orders: [
{
id: "order-0",
number: "CMD-2048",
date: "October 5, 2026",
status: "delivered",
statusLabel: "Delivered",
lines: [
{
id: "line-1",
product: {
id: "cup",
name: "Stoneware mug, natural glaze"
},
quantity: 2,
unitPrice: 2400
}
],
totals: {
subtotal: 4800,
total: 4800,
currency: "USD"
}
}
]
},
tickets: [
{
id: "DOS-109",
subject: "Change the delivery address",
status: "To handle",
priority: "High",
openedAt: "October 8, 2026 · 9:00 AM",
requester: {
id: "client-1",
name: "Mathieu Lever",
email: "[email protected]"
},
assignee: {
name: "Nadia Roussel"
},
messages: [
{
id: "message-0",
author: {
name: "Mathieu Lever",
role: "Requester"
},
kind: "customer",
at: "October 8 · 9:00 AM",
body: "Hello, one of the mugs in my order arrived with a broken handle. Could you tell me how to get a replacement?"
},
{
id: "message-1",
author: {
name: "Nadia Roussel",
role: "Customer service"
},
kind: "reply",
at: "October 8 · 9:15 AM",
body: "Hello, we’ll look into your request. Could you send us a photo of the mug and its packaging by replying to this message?"
}
],
orders: [
{
id: "order-1",
number: "CMD-2049",
date: "October 5, 2026",
status: "delivered",
statusLabel: "Delivered",
lines: [
{
id: "line-1",
product: {},
quantity: 2,
unitPrice: 2400
}
],
totals: {
subtotal: 4800,
total: 4800,
currency: "USD"
}
}
]
},
{
id: "DOS-110",
subject: "Get a copy of my invoice",
status: "Waiting on customer",
priority: "Normal",
openedAt: "October 8, 2026 · 9:00 AM",
requester: {
id: "client-2",
name: "Sofia Benali",
email: "[email protected]"
},
assignee: {
name: "Nadia Roussel"
},
messages: [
{
id: "message-0",
author: {
name: "Sofia Benali",
role: "Requester"
},
kind: "customer",
at: "October 8 · 9:00 AM",
body: "Hello, one of the mugs in my order arrived with a broken handle. Could you tell me how to get a replacement?"
},
{
id: "message-1",
author: {
name: "Nadia Roussel",
role: "Customer service"
},
kind: "reply",
at: "October 8 · 9:15 AM",
body: "Hello, we’ll look into your request. Could you send us a photo of the mug and its packaging by replying to this message?"
}
],
orders: [
{
id: "order-2",
number: "CMD-2050",
date: "October 5, 2026",
status: "delivered",
statusLabel: "Delivered",
lines: [
{
id: "line-1",
product: {},
quantity: 2,
unitPrice: 2400
}
],
totals: {
subtotal: 4800,
total: 4800,
currency: "USD"
}
}
]
}
],
macros: [
{
id: "photo",
label: "Ask for a photo",
body: "To help us look into your request, could you attach a photo of the item and its packaging?"
},
{
id: "received",
label: "Acknowledge receipt",
body: "Thank you for the details. We’re passing them on to the team handling your case."
}
],
reply: "ticket.reply",
note: "ticket.note",
orderAction: "order.detail",
options: {
canNote: true,
footnote: "Canned replies stay drafts to review before sending."
}
}
</script>
<template>
<TasksTicketQueueTableDetail v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe section’s heading |
| ticket* | Ticket | Datathe open customer ticket; the host must omit staff-only data for customer viewers, and customer-view also excludes internal notes from its rendered HTML |
| tickets* | Ticket[] | Dataqueue: additional tickets, each with its own conversation and orders |
| macros | Macro[] | Datathe merchant’s own reply templates; insert into a draft, never send automatically |
| reply | string | ActionPOST endpoint accepting ticketId and body |
| note | string | ActionPOST endpoint accepting ticketId and body; only for authorised staff |
| orderAction | string | Actiona named action of the page |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Ticket ticket · 9 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Datathe ticket’s id |
| subject* | string | Wordswhat the ticket is about, in a line |
| status* | string | Wordsits status in the host’s words, e.g. "Open" |
| priority* | string | Wordsits priority in the host’s words, e.g. "High" |
| openedAt* | string | Wordswhen it was opened, as the host writes it |
| requester* | Requester | the customer who opened it |
| assignee | Assignee | the team member it is assigned to |
| messages* | Message[] | Datathe conversation, oldest first |
| orders | Order[] | Datathe customer’s orders, for context |
Requester ticket.requester · 7 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe person’s name |
| role | string | Wordstheir role or job title |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
| string | Wordsthe customer’s email address |
Assignee ticket.assignee · 6 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe person’s name |
| role | string | Wordstheir role or job title |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
Message ticket.messages[] · 5 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Datathe message’s id |
| author* | Author | who wrote it |
| at* | string | Wordswhen it was written, as the host writes it |
| body* | string | Wordsthe message itself |
| kind* | 'customer' | 'reply' | 'internal' | customer: from the customer; reply: the team’s answer; internal: a note the customer does not see |
Author ticket.messages[].author · 6 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe person’s name |
| role | string | Wordstheir role or job title |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
Order ticket.orders[] · 9 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | Datathe record’s id in the tool that answers it |
| number* | string | Wordsthe order’s number as the shop shows it |
| date* | string | Wordsthe date as the shop writes it |
| status* | 'pending' | 'paid' | 'preparing' | 'shipped' | 'delivered' | 'cancelled' | 'returned' | 'refunded' | where the order stands |
| statusLabel | string | Wordsthe status in the shop’s words, instead of the block’s own |
| lines* | (Line | Line)[] | full cart lines, or summaries (name, quantity, total) when the tool keeps only those |
| totals* | Totals | the order’s amounts |
| shippingAddress | ShippingAddress | where it is delivered |
| tracking | Tracking | the carrier’s tracking, once shipped |
Totals ticket.orders[].totals · 11 props
| Prop | Type | Description |
|---|---|---|
| subtotal* | number | an amount in cents |
| discount | number | an amount in cents |
| discountLabel | string | Wordswhat the discount is, e.g. a code’s name |
| shipping | number | null | null: computed at the next step |
| shippingLabel | string | Wordsthe delivery method, e.g. "Standard delivery" |
| fees | number | fees the shop charges on top (service, handling), when it does |
| feesLabel | string | Wordswhat the fees are ("Service fee") |
| tax | number | an amount in cents |
| taxIncluded | boolean | true: the prices include tax |
| total* | number | an amount in cents |
| currency | string | DesignISO 4217, EUR by default |
ShippingAddress ticket.orders[].shippingAddress · 7 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe recipient’s name |
| line1* | string | Wordsstreet and number |
| line2 | string | Wordsa second address line: building, floor |
| postalCode* | string | Wordsthe postcode |
| city* | string | Wordsthe town |
| country* | string | Wordsthe country |
| phone | string | Wordsa phone number for the delivery |
Tracking ticket.orders[].tracking · 4 props
| Prop | Type | Description |
|---|---|---|
| carrier | string | Wordswho carries it, e.g. "Colissimo" |
| number | string | Wordsthe carrier’s tracking number |
| url | string | Designthe carrier’s tracking page |
| events | Event[] | the carrier’s tracking events |
Event ticket.orders[].tracking.events[] · 4 props
| Prop | Type | Description |
|---|---|---|
| date* | string | Wordswhen it happened, as the carrier writes it |
| label* | string | Wordswhat happened, e.g. "Out for delivery" |
| place | string | Wordswhere it happened |
| done* | boolean | true: this event has happened |
Ticket tickets[] · 9 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Datathe ticket’s id |
| subject* | string | Wordswhat the ticket is about, in a line |
| status* | string | Wordsits status in the host’s words, e.g. "Open" |
| priority* | string | Wordsits priority in the host’s words, e.g. "High" |
| openedAt* | string | Wordswhen it was opened, as the host writes it |
| requester* | Requester | the customer who opened it |
| assignee | Assignee | the team member it is assigned to |
| messages* | Message[] | Datathe conversation, oldest first |
| orders | Order[] | Datathe customer’s orders, for context |
Requester tickets[].requester · 7 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe person’s name |
| role | string | Wordstheir role or job title |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
| string | Wordsthe customer’s email address |
Assignee tickets[].assignee · 6 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe person’s name |
| role | string | Wordstheir role or job title |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
Message tickets[].messages[] · 5 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Datathe message’s id |
| author* | Author | who wrote it |
| at* | string | Wordswhen it was written, as the host writes it |
| body* | string | Wordsthe message itself |
| kind* | 'customer' | 'reply' | 'internal' | customer: from the customer; reply: the team’s answer; internal: a note the customer does not see |
Author tickets[].messages[].author · 6 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe person’s name |
| role | string | Wordstheir role or job title |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
Order tickets[].orders[] · 9 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | Datathe record’s id in the tool that answers it |
| number* | string | Wordsthe order’s number as the shop shows it |
| date* | string | Wordsthe date as the shop writes it |
| status* | 'pending' | 'paid' | 'preparing' | 'shipped' | 'delivered' | 'cancelled' | 'returned' | 'refunded' | where the order stands |
| statusLabel | string | Wordsthe status in the shop’s words, instead of the block’s own |
| lines* | (Line | Line)[] | full cart lines, or summaries (name, quantity, total) when the tool keeps only those |
| totals* | Totals | the order’s amounts |
| shippingAddress | ShippingAddress | where it is delivered |
| tracking | Tracking | the carrier’s tracking, once shipped |
Totals tickets[].orders[].totals · 11 props
| Prop | Type | Description |
|---|---|---|
| subtotal* | number | an amount in cents |
| discount | number | an amount in cents |
| discountLabel | string | Wordswhat the discount is, e.g. a code’s name |
| shipping | number | null | null: computed at the next step |
| shippingLabel | string | Wordsthe delivery method, e.g. "Standard delivery" |
| fees | number | fees the shop charges on top (service, handling), when it does |
| feesLabel | string | Wordswhat the fees are ("Service fee") |
| tax | number | an amount in cents |
| taxIncluded | boolean | true: the prices include tax |
| total* | number | an amount in cents |
| currency | string | DesignISO 4217, EUR by default |
ShippingAddress tickets[].orders[].shippingAddress · 7 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe recipient’s name |
| line1* | string | Wordsstreet and number |
| line2 | string | Wordsa second address line: building, floor |
| postalCode* | string | Wordsthe postcode |
| city* | string | Wordsthe town |
| country* | string | Wordsthe country |
| phone | string | Wordsa phone number for the delivery |
Tracking tickets[].orders[].tracking · 4 props
| Prop | Type | Description |
|---|---|---|
| carrier | string | Wordswho carries it, e.g. "Colissimo" |
| number | string | Wordsthe carrier’s tracking number |
| url | string | Designthe carrier’s tracking page |
| events | Event[] | the carrier’s tracking events |
Event tickets[].orders[].tracking.events[] · 4 props
| Prop | Type | Description |
|---|---|---|
| date* | string | Wordswhen it happened, as the carrier writes it |
| label* | string | Wordswhat happened, e.g. "Out for delivery" |
| place | string | Wordswhere it happened |
| done* | boolean | true: this event has happened |
Macro macros[] · 3 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Datathe saved reply’s id |
| label* | string | Wordsthe saved reply’s name, e.g. "Refund issued" |
| body* | string | Wordsthe text it puts in the reply |
Options options · 3 props
| Prop | Type | Description |
|---|---|---|
| canNote | boolean | true: the team can add an internal note |
| footnote | string | Wordsa small line at the foot of the section |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a band of the page that redefines the theme surfaces inside it |
What it asks your app for
The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| money | formats a price, given in cents |
| asset | a picture’s address as your app serves it |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your word for an interface key, or undefined to keep the block’s own |
The words it says itself, in English and French; label(key) replaces any of them:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too many attempts, try again in a moment. | Trop de tentatives, réessayez dans un moment. |
Features
- Every word in the server HTML
- Same markup in Vue and React
- Theme tokens only: every theme, light and dark
- Shows what you give it, invents nothing
- No motion; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
reply,note,orderAction - Reads
tickets,ordersfrom your app
A tasks section, for app, support pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, tailwind-merge.
More tasks blocks
- Approval queue conflict: two versions of the same item side by side, to keep one, the other or both.
- Approval queue review: A split case file with supporting content beside a decision form, using the merchant’s own evidence only.
- Approval queue table: a long queue to go through quickly: dense rows, select several, approve or decline in bulk.
- Approval queue triage: Requests grouped by kind in a numbered register for a moderation pass, using the merchant’s own reports only.
- Task list by person: A lead checking what each person has on their plate: one card per assignee with their counts and tasks, the unassigned ones last.
- Task list focus: Today and overdue tasks beside a quieter upcoming agenda, using only the host’s deadline classifications.
- Task list grouped: A checklist grouped by work status for completing the team’s own tasks without moving cards.
- Task list table: A comparable task register with owner, deadline and priority for the team’s own records.