feat(12.1-01): list row states from one controller call per page
- pact.ListRowStates with the fixed RowState set deleted, negative, disabled - list response meta.row_states keyed by row id; unknown values dropped - list messages rowStateDeleted, rowStateNegative, rowStateDisabled - update writes through the scope the load used, so a soft-deleted record a controller includes stays soft-deleted - DataTable row state badges and text styles - roster fixture, smoke tests, OpenAPI, TS types, dist, READMEs, docs
This commit is contained in:
@@ -247,3 +247,15 @@ func TestRelationHookInterfaces(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TestRowStateValues pins the wire values of the fixed row-state set: the
|
||||
// admin SPA and plugin CSS match on these exact strings.
|
||||
func TestRowStateValues(t *testing.T) {
|
||||
got := []RowState{RowStateDeleted, RowStateNegative, RowStateDisabled}
|
||||
want := []string{"deleted", "negative", "disabled"}
|
||||
for i, state := range got {
|
||||
if string(state) != want[i] {
|
||||
t.Fatalf("row state %d = %q, want %q", i, state, want[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user