From 99b261b52e7f91ec823ddea9a096f74943333c19 Mon Sep 17 00:00:00 2001 From: Zakk Date: Sun, 27 Sep 2026 22:51:38 +1000 Subject: [PATCH] refactor(limits): merge the recorder-off branches and fix a comment limitCauses has no reader outside limits.ts, so it is no longer exported. The two branches that push a record_* key now share one condition: flows stay available with recording off, so their recorder counts as off only when honk stops offering flows.max_flows; every other recorder is off when its resource is unavailable. The explain comment said the features line lists only the items the headline does not name. It lists every item, and is left out when the headline names them all. --- src/features/shared/limits.ts | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/features/shared/limits.ts b/src/features/shared/limits.ts index 641c4520..547e4fbe 100644 --- a/src/features/shared/limits.ts +++ b/src/features/shared/limits.ts @@ -34,7 +34,7 @@ const recorders: Partial> = { }; // Why features are off, in the order the overview lists them. -export const limitCauses = [ +const limitCauses = [ 'configNotLoaded', 'configReadOnly', 'mainReadOnly', @@ -99,17 +99,15 @@ export function backendLimits(capabilities: Capabilities, version: Pick { const n = items.length; switch (cause) {