Skip to content
Razor catalogue

On this page

@addTagHelper *, Webority.Ui.Razor

States

A group the server marked safe opens as one block. The list expands in place, a row can be left out, and the block moves through running, partly failed and done.

Ready
The list is collapsed until the person opens it. The approve button counts the checked rows.

3 one-day requests inside the balance

One day each, inside the leave balance.

Show code
<app-queue-bundle title="3 one-day requests inside the balance" reason="One day each, inside the leave balance.">
    <app-queue-row key="r1" primary="Asha Rao" secondary="Mon 3 Nov" trailing="1 day" />
    <app-queue-row key="r2" primary="Dev Singh" secondary="Tue 4 Nov" trailing="1 day" />
    <app-queue-row key="r3" primary="Meera Iyer" secondary="Wed 5 Nov" trailing="1 day" />
</app-queue-bundle>
Running
Progress counts up while the approvals run, and the rows stop taking input.

3 one-day requests

Show code
<app-queue-bundle title="3 one-day requests" running-total="3" running-done="1">…</app-queue-bundle>
Partly failed
A row that was not approved stays in the list with its reason, and the button offers the rest.

3 one-day requests

Show code
<app-queue-bundle title="3 one-day requests">
    <app-queue-row key="r1" primary="Asha Rao" status="done" />
    <app-queue-row key="r2" primary="Dev Singh" status="failed" />
    <app-queue-row key="r3" primary="Meera Iyer" status="failed" />
</app-queue-bundle>
Done
Once every row is approved the block says so and drops the approve button.

3 one-day requests

All approved

Show code
<app-queue-bundle title="3 one-day requests">
    <app-queue-row key="r1" primary="Asha Rao" status="done" />
</app-queue-bundle>

Guidance

What to do, and what to avoid.

Use it when

  • A server has marked a group of requests safe to approve together, and a person checks the list before approving.
  • A queue whose product rule defines a safe group, such as one-day leave requests inside the balance.

Reach for something else when

  • Each request must be opened and decided on its own. → AppSplitView
  • The rows are a list to scan or sort, with no group action. → AppDataTable
  • The queue has no safe group, so nothing can be approved together. → AppSplitView

Show only the rows the server marked safe

Do

2 one-day requests inside the balance

One day each, inside the leave balance.

The page never decides what is safe. Each row arrives with its own status, and only the marked rows belong in the block.

Avoid

5 requests

A bundle that approves a request the rule did not clear skips the check the person relies on.

Reference

Try every prop, read the full list, and check keyboard and screen reader behaviour.

Ready Left out Partly failed Done
off 3 5
0 1 2

3 one-day requests inside the balance

One day each, inside the leave balance, with no team holiday clash.

React, generated from the controls
<AppQueueBundle
  title="3 one-day requests inside the balance"
  reason="One day each, inside the leave balance, with no team holiday clash."
  rows={rows}
  onApprove={approve}
/>
Razor, the same props
<app-queue-bundle title="3 one-day requests inside the balance" reason="One day each, inside the leave balance, with no team holiday clash.">
    <app-queue-row key="r1" primary="Asha Rao" secondary="Mon 3 Nov" trailing="1 day" status="Idle" />
    <app-queue-row key="r2" primary="Dev Singh" secondary="Tue 4 Nov" trailing="1 day" status="Idle" />
    <app-queue-row key="r3" primary="Meera Iyer" secondary="Wed 5 Nov" trailing="1 day" status="Idle" />
</app-queue-bundle>

6 props. The 2 most used come first.

Used on most screens 2 props

PropTypeDefaultDescription
titledefault - string - The sentence that names the group, such as "8 one-day requests inside the balance".
reasondefault - string - The plain reason the server marked the group safe.

Less common 4 props

PropTypeDefaultDescription
running-totaldefault - int - The number of rows in a running approval. Setting it shows the progress bar.
running-donedefault 0 int 0 The number of rows approved so far.
namedefault keys string keys The form field the checked row keys post under.
classdefault - string - Extra classes on the section.

<app-queue-row> takes key (posted back with the checked rows), primary, secondary, trailing, checked (false leaves the row out) and status (Idle, Busy, Done or Failed).

Screen reader

3 notes
  • Each row is a checkbox named by its main line, so a screen reader reads what it approves.
  • The progress of a run is a progress bar with its label, so the count is announced as it moves.
  • Approve is a native button, reached by the keyboard in order after the list.

Do and avoid

1 pairs

Show only the rows the server marked safe

Do

2 one-day requests inside the balance

One day each, inside the leave balance.

The page never decides what is safe. Each row arrives with its own status, and only the marked rows belong in the block.

Avoid

5 requests

A bundle that approves a request the rule did not clear skips the check the person relies on.