@propriety/court-calendar 1.0.181 → 1.0.183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/cases.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/docs/REFERENCE.md +1 -1
- package/package.json +1 -1
- package/src/__tests__/filtering.test.ts +1 -1
- package/src/helpers/cases.ts +1 -1
- package/src/helpers/filtering.ts +1 -1
- package/src/types.ts +1 -1
package/dist/helpers/cases.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare function isCaseSettled(c: Case, isVillage: boolean): boolean;
|
|
|
3
3
|
/**
|
|
4
4
|
* The case is waiting on a hearing officer's decision.
|
|
5
5
|
*
|
|
6
|
-
* `D` is written by
|
|
6
|
+
* `D` is written by court-calendar-api's nightly `set_past_cases_to_awaiting_decision` job, which
|
|
7
7
|
* stamps every hearing that has passed with no determination recorded. It is not a settled
|
|
8
8
|
* action, so none of the case-level filters can retire one — hence `showOutForDecision`.
|
|
9
9
|
*
|
package/dist/types.d.ts
CHANGED
|
@@ -223,7 +223,7 @@ export interface AdjournmentEntry {
|
|
|
223
223
|
/**
|
|
224
224
|
* Holds the originating CourtDateID, not a date, despite the name. The adjournment
|
|
225
225
|
* flows store the court date here so rows can be related back to it — see
|
|
226
|
-
* `get_adjournment_dates_by_court_date` in
|
|
226
|
+
* `get_adjournment_dates_by_court_date` in court-calendar-api. Don't "fix" this.
|
|
227
227
|
*/
|
|
228
228
|
HearingDate: number | null;
|
|
229
229
|
FirstChair: number | null;
|
package/docs/REFERENCE.md
CHANGED
|
@@ -197,7 +197,7 @@ POST and got a 500 over a date that had in fact been created.
|
|
|
197
197
|
| A Collections muni renders as `N00` | For Collections, `MuniCode` holds a **county** code, and the letter prefixing every muni code *is* its county. Look up exact-before-padding. |
|
|
198
198
|
| An edit blanks a date's case list | Two different empties reach `caseIndexesToLink` and both used to mean "unlink everything". It returns `undefined` — not `[]` — because a **missing** key is the only value the API reads as "leave the links alone". Mirror only what was actually sent into memory. |
|
|
199
199
|
| `CourtCases` disagrees with the grid | `CourtCases` is a stale counter. The real links are `Courtfiles.CourtDateID` / `VillageCourtDateID`. An "N → 0" edit is usually the counter catching up. |
|
|
200
|
-
| A create returned 500 but the date exists | The INSERT commits before linking /
|
|
200
|
+
| A create returned 500 but the date exists | The INSERT commits before linking / evidence. A 500 does not mean nothing landed — check before re-creating. |
|
|
201
201
|
| A calendar-wide freeze on save | Both freezes were one unindexed `Courtfiles.NegDateID` table-locking 60k rows. `EXPLAIN` the write path before suspecting React. |
|
|
202
202
|
| A hearing draws on the wrong day | Adjournment is **placement, not status**. The case-level `AdjournedDate` always wins over the hearing date, even when it lands earlier. |
|
|
203
203
|
| `HearingLink` opens `<host>/null` | The string `"null"` was written into the column (multipart can't carry a real null). `normalizeHearingLink` scrubs it; it also rejects non-http(s) schemes because the value goes straight to `window.open`. |
|
package/package.json
CHANGED
|
@@ -564,7 +564,7 @@ describe('filterCourtDates — past negotiations', () => {
|
|
|
564
564
|
|
|
565
565
|
// ─── filterCourtDates — out for decision (showOutForDecision) ─────────────────
|
|
566
566
|
//
|
|
567
|
-
// 'D' is written by
|
|
567
|
+
// 'D' is written by court-calendar-api's nightly job on every past hearing with no determination
|
|
568
568
|
// recorded. It is not a settled action, so nothing else on this pipeline can retire one.
|
|
569
569
|
// DEFAULT_FILTER_CTX sets showOutForDecision TRUE suite-wide, so every test here states it.
|
|
570
570
|
|
package/src/helpers/cases.ts
CHANGED
|
@@ -20,7 +20,7 @@ export function isCaseSettled(c: Case, isVillage: boolean): boolean {
|
|
|
20
20
|
/**
|
|
21
21
|
* The case is waiting on a hearing officer's decision.
|
|
22
22
|
*
|
|
23
|
-
* `D` is written by
|
|
23
|
+
* `D` is written by court-calendar-api's nightly `set_past_cases_to_awaiting_decision` job, which
|
|
24
24
|
* stamps every hearing that has passed with no determination recorded. It is not a settled
|
|
25
25
|
* action, so none of the case-level filters can retire one — hence `showOutForDecision`.
|
|
26
26
|
*
|
package/src/helpers/filtering.ts
CHANGED
|
@@ -90,7 +90,7 @@ export function filterCourtDates(
|
|
|
90
90
|
return lastDay >= negCutoff;
|
|
91
91
|
})
|
|
92
92
|
// A date whose remaining cases are all waiting on a hearing officer's decision is
|
|
93
|
-
// waiting on the court, not on us.
|
|
93
|
+
// waiting on the court, not on us. court-calendar-api's nightly job stamps 'D' on every
|
|
94
94
|
// hearing that has passed with nothing recorded, and 'D' is not a settled action, so
|
|
95
95
|
// the case-level filters above can never retire one — the same shape of problem that
|
|
96
96
|
// `showPastNegotiations` solves for negotiations.
|
package/src/types.ts
CHANGED
|
@@ -271,7 +271,7 @@ export interface AdjournmentEntry {
|
|
|
271
271
|
/**
|
|
272
272
|
* Holds the originating CourtDateID, not a date, despite the name. The adjournment
|
|
273
273
|
* flows store the court date here so rows can be related back to it — see
|
|
274
|
-
* `get_adjournment_dates_by_court_date` in
|
|
274
|
+
* `get_adjournment_dates_by_court_date` in court-calendar-api. Don't "fix" this.
|
|
275
275
|
*/
|
|
276
276
|
HearingDate: number | null;
|
|
277
277
|
FirstChair: number | null;
|