Flag incidents that carry notes in the queue
A blue tag with the notebook icon and a count marks an incident with working notes; a green one marks a note on what fixed it. Both let you scan the queue for incidents that have more to say than their title, without opening each one. The incident list and detail JSON gain note_count and resolution_note_count, counted in the same query that selects the incident, so a list costs no extra request per row. The fields are additive: terdut-tui and terdut-operator ignore them and need no change. Claude-Session: https://claude.ai/code/session_016mBLURvJoMuUEr9cB2RpUN
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// The incident queue: filter chips and a list of incident rows.
|
||||
|
||||
import * as api from './api.js';
|
||||
import { h, clear, icon, badge, severityBadge, originChip, emptyState, spinner, fadeOnOverflow } from './ui.js';
|
||||
import { h, clear, icon, badge, noteTags, severityBadge, originChip, emptyState, spinner, fadeOnOverflow } from './ui.js';
|
||||
import { ago, until, isFuture, severityClass, labelSummary, originOf, titleWithoutOrigin } from './format.js';
|
||||
import { state, myID, onTeamChange } from './state.js';
|
||||
import * as onboarding from './onboarding.js';
|
||||
@@ -309,6 +309,7 @@ function row(inc, index) {
|
||||
// The left-border colour alone doesn't say what it means; spell it out
|
||||
// too, same badge the incident detail page uses for severity.
|
||||
inc.severity && severityBadge(inc.severity),
|
||||
...(noteTags(inc) || []),
|
||||
assignee,
|
||||
team,
|
||||
labels && h('span', { class: 'labels', text: labels }),
|
||||
|
||||
Reference in New Issue
Block a user