From 23c627f8260ae98d23365abab58231831320d9be Mon Sep 17 00:00:00 2001 From: QuicksilverSlick Date: Wed, 18 Nov 2026 15:51:32 -0600 Subject: [PATCH] chore(mobile): remove the one-time compose_bar size ceiling #155 (the Block catch-up) needed a one-time ceiling of 1202 lines for lib/features/channels/compose_bar, because CI compared Block's whole catch-up against a far-behind fork main. #155 is on main now (train #172), so the base holds the over-limit file and the normal hold-or-shrink rule covers it. This reverts 21bbc1c6f. Claude-Account: russelledeming@gmail.com Co-Authored-By: Claude Opus 5.5 --- mobile/scripts/file-size-policy.mjs | 10 ---------- scripts/check-file-sizes-core.test.mjs | 8 +------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/mobile/scripts/file-size-policy.mjs b/mobile/scripts/file-size-policy.mjs index 19f279d4402..2d05dfb4be5 100644 --- a/mobile/scripts/file-size-policy.mjs +++ b/mobile/scripts/file-size-policy.mjs @@ -1,14 +1,4 @@ export const rules = [ - // Fork only (QuicksilverSlick/buzz #155): Block's compose bar arrives at 1202 - // lines in one catch-up merge. Block's own ratchet allows it because Block's - // base was already over the limit; ours was 1120, so the merge reads as growth. - // shortcut: one-time ceiling for a Block-owned folder; remove it once #155 is - // on main (the base is then over the limit, so hold-or-shrink applies anyway). - { - root: "lib/features/channels/compose_bar", - extensions: new Set([".dart"]), - maxLines: 1202, - }, { root: "lib", extensions: new Set([".dart"]), diff --git a/scripts/check-file-sizes-core.test.mjs b/scripts/check-file-sizes-core.test.mjs index 6935d203168..905a2cea2c9 100644 --- a/scripts/check-file-sizes-core.test.mjs +++ b/scripts/check-file-sizes-core.test.mjs @@ -230,13 +230,7 @@ test("surface entrypoints expose the exact ordered production policies", () => { ["src/shared/styles", [".css"], 1200], ], ], - [ - mobilePolicy, - [ - ["lib/features/channels/compose_bar", [".dart"], 1202], - ["lib", [".dart"], 1200], - ], - ], + [mobilePolicy, [["lib", [".dart"], 1200]]], [ webPolicy, [