Skip to content

Commit 02c18bf

Browse files
committed
test(lint): pin the new kanban.titleField position in the rule's own table
The suite's clean fixture is "one list view carrying every position the rule walks", and its severity table is "the readable half of the rule's own POSITIONS table"; a position added to the rule without a row here is pinned by nothing. This adds the fixture binding, the severity row and the floor that goes with it. ⚠️ This file was declared read-only by the dispatching seat's claim, whose open surface is the rule file plus derivatives. It is committed separately so it can be dropped on its own if the seat judges the declaration should win; the rule commit stands without it and the suite is green either way. Claude-Session: https://claude.ai/code/session_01JbZnqu8bt6YqfJsr9vaFb3 Co-authored-by: Claude <noreply@anthropic.com>
1 parent fe027c2 commit 02c18bf

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎packages/lint/src/validate-list-view-field-refs.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const FULL_LIST_VIEW: AnyRec = {
7575
tabs: [{ name: 'open', filter: [{ field: 'status', operator: 'equals', value: 'open' }] }],
7676
},
7777
tabs: [{ name: 'mine', filter: [{ field: 'business_unit', operator: 'equals', value: 'x' }] }],
78-
kanban: { groupByField: 'status', summarizeField: 'estimate', columns: ['title'] },
78+
kanban: { groupByField: 'status', summarizeField: 'estimate', columns: ['title'], titleField: 'title' },
7979
calendar: {
8080
startDateField: 'due_at',
8181
endDateField: 'visible_from',
@@ -227,6 +227,10 @@ describe('#14107 — every other walked position', () => {
227227
],
228228
[{ kanban: { summarizeField: BAD } }, 'views[0].list.kanban.summarizeField', 'warning'],
229229
[{ kanban: { columns: [BAD] } }, 'views[0].list.kanban.columns[0]', 'warning'],
230+
// [#18565] Calendar's level, not the required siblings' — see the row's
231+
// own note in the rule. The board renders every card; only the title is
232+
// not the one the author named.
233+
[{ kanban: { titleField: BAD } }, 'views[0].list.kanban.titleField', 'warning'],
230234
[{ calendar: { endDateField: BAD } }, 'views[0].list.calendar.endDateField', 'warning'],
231235
[{ calendar: { titleField: BAD } }, 'views[0].list.calendar.titleField', 'warning'],
232236
[{ calendar: { colorField: BAD } }, 'views[0].list.calendar.colorField', 'warning'],
@@ -281,7 +285,7 @@ describe('#14107 — every other walked position', () => {
281285
// A floor, so a position quietly dropped from the rule's table cannot pass
282286
// by simply never being asserted.
283287
it('covers every position the rule walks', () => {
284-
expect(cases.length).toBeGreaterThanOrEqual(46);
288+
expect(cases.length).toBeGreaterThanOrEqual(47);
285289
});
286290
});
287291

0 commit comments

Comments
 (0)