feat: T4 waves 1-2 - rule configs, schema, suggestions core, season, rule forms
- Rule configs with typed parsers and registry; Berlin day helpers - Schema: T4 enums, Suggestion table, feed vocabulary (feedStatus as ColonyCondition with legacy text mapping), split queen source, varroa sample size; migration harness for data migrations - SuggestionsService: propose/refresh/resolve/obsolete/expire, accept/dismiss/reopen incl. bulk, lock order, concurrency e2e - SeasonService: phenology-based segments, inspection/varroa due dates, queen age; TimeEventsStep with JobPartialFailure - Frontend: per-rule settings forms with visible value sources Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
7097fcd97c
commit
d99a697739
116 files changed
+11239
-801
No files matched your search
@@ -1,6 +1,8 @@
|
||||
import { NotFoundException } from '@nestjs/common';
|
||||
import PDFDocument from 'pdfkit';
|
||||
import { PrismaService } from '../prisma/prisma.service';
|
||||
import { ColonyCondition } from '../../generated/prisma';
|
||||
import { FEED_CONDITION_LABELS_DE } from '../common/feed-vocabulary';
|
||||
import {
|
||||
PDF_MARGIN,
|
||||
drawSection,
|
||||
@@ -83,7 +85,7 @@ export interface ColonyRecordCard {
|
||||
queenCellsPresent: boolean | null;
|
||||
gentleness: number | null;
|
||||
swarmMood: number | null;
|
||||
feedStatus: string | null;
|
||||
feedStatus: ColonyCondition | null;
|
||||
measures: string | null;
|
||||
notes: string | null;
|
||||
}[];
|
||||
@@ -348,7 +350,7 @@ export function renderColonyRecordCardPdf(
|
||||
yesNo(i.queenCellsPresent),
|
||||
orDash(i.gentleness),
|
||||
orDash(i.swarmMood),
|
||||
orDash(i.feedStatus),
|
||||
orDash(i.feedStatus ? FEED_CONDITION_LABELS_DE[i.feedStatus] : null),
|
||||
orDash(i.measures),
|
||||
orDash(i.notes),
|
||||
]),
|
||||
|
||||
Reference in new issue
Block a user