- Automation rules propose suggestions instead of creating tasks; notify per rule config; corrected varroa measurements refresh or resolve their suggestion - Inspection values can be taken over into the colony card (occupiedFrames 0-40, strength deprecated); warning counts use the same visibility rule as the notification list - Biotech chains: swarm check after queen cells, queen acceptance check, split schedules (raise own, queen cell, queen) - Season autopilot core with A1 inspection due, A2 varroa measurement, A3 recheck after treatment; colony sync and daily step - Frontend: suggestions page with groups, bulk accept, undo, paging, focus management and permission gating - Frontend: varroa traffic light from seasonal bands, sample size, one range request for the colony chart - Notifications: mark-read answers 404 for rows the user may no longer see Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
// Imported before anything else: the texts must not depend on suggestion-texts
|
|
// having been loaded first.
|
|
import { CHAIN_TEXTS } from './chain-texts';
|
|
import { SUGGESTION_TEXTS } from '../suggestion-texts';
|
|
|
|
describe('chain texts', () => {
|
|
it('load on their own and are part of the merged register', () => {
|
|
expect(Object.keys(CHAIN_TEXTS).length).toBeGreaterThan(0);
|
|
for (const code of Object.keys(CHAIN_TEXTS)) {
|
|
expect(SUGGESTION_TEXTS[code]).toBe(CHAIN_TEXTS[code]);
|
|
}
|
|
});
|
|
|
|
it('names the suggestions as the spec does', () => {
|
|
const lookup = {
|
|
colonyCode: () => 'V-1',
|
|
queenCode: () => 'Q-1',
|
|
treatmentProduct: () => null,
|
|
apiaryName: () => null,
|
|
stockItemName: () => null,
|
|
};
|
|
const title = (code: string) =>
|
|
CHAIN_TEXTS[code].render(CHAIN_TEXTS[code].example, lookup, '2026-05-05')
|
|
.title;
|
|
expect(title('SPLIT_SCHEDULE_RAISE_OWN')).toBe('Ableger-Plan übernehmen');
|
|
expect(title('SPLIT_SCHEDULE_QUEEN_CELL')).toBe('Stifte prüfen');
|
|
expect(title('SPLIT_SCHEDULE_QUEEN')).toBe('Annahme der Königin prüfen');
|
|
expect(title('QUEEN_CELLS_SWARM_CHECK')).toBe('Schwarmkontrolle');
|
|
});
|
|
});
|