Lazy-load the complete pull request workspace #541

Closed
opened 2026-08-11 04:49:06 +00:00 by timmy · 0 comments
Owner

Problem

The content-addressed dashboard runtime on origin/main is 100,717 bytes gzip, only 1,683 bytes below its 100 KiB budget. Every launch downloads and parses pull-request and review-sheet code even when the operator only triages issues, Today, Later, or unread updates. Read-only audit measured that removing only pull-sheet.js and review-sheet.js reduces core gzip by 4,697 bytes before extracting their orchestration from dashboard.js.

Vertical slice

Lazy-load one content-addressed pull-workflow chunk when an assigned pull, requested review, saved offline pull, or direct pull/review route is opened. Concurrent opens share one load. A failed chunk leaves My Work usable and offers an accessible retry. The service worker precaches the exact chunk so installed offline review remains available.

Acceptance criteria

  • Core runtime is no more than 95 KiB gzip and excludes pull/review helpers.
  • Pull/review entry points load the feature once and then preserve existing read, comment, review, merge, routing, and offline behavior.
  • Load failure is bounded, announced accessibly, retryable without reload, and does not disable My Work.
  • The exact feature revision is precached for cold-offline installed use.
  • Changing feature-only source leaves the core runtime URL unchanged while changing feature and shell revisions.
  • Focused behavioral tests and the full suite pass.

Non-duplication evidence

All 273 historical issue titles and recent commits through 3605c42 were reviewed. No prior issue implements a pull/review workflow chunk. #537 lazy-loads mobile issue capture only; #217, #355, #445, #517, and #521 concern pull/review behavior rather than runtime partitioning.

## Problem The content-addressed dashboard runtime on `origin/main` is 100,717 bytes gzip, only 1,683 bytes below its 100 KiB budget. Every launch downloads and parses pull-request and review-sheet code even when the operator only triages issues, Today, Later, or unread updates. Read-only audit measured that removing only `pull-sheet.js` and `review-sheet.js` reduces core gzip by 4,697 bytes before extracting their orchestration from `dashboard.js`. ## Vertical slice Lazy-load one content-addressed pull-workflow chunk when an assigned pull, requested review, saved offline pull, or direct pull/review route is opened. Concurrent opens share one load. A failed chunk leaves My Work usable and offers an accessible retry. The service worker precaches the exact chunk so installed offline review remains available. ## Acceptance criteria - Core runtime is no more than 95 KiB gzip and excludes pull/review helpers. - Pull/review entry points load the feature once and then preserve existing read, comment, review, merge, routing, and offline behavior. - Load failure is bounded, announced accessibly, retryable without reload, and does not disable My Work. - The exact feature revision is precached for cold-offline installed use. - Changing feature-only source leaves the core runtime URL unchanged while changing feature and shell revisions. - Focused behavioral tests and the full suite pass. ## Non-duplication evidence All 273 historical issue titles and recent commits through `3605c42` were reviewed. No prior issue implements a pull/review workflow chunk. #537 lazy-loads mobile issue capture only; #217, #355, #445, #517, and #521 concern pull/review behavior rather than runtime partitioning.
timmy self-assigned this 2026-08-11 04:49:06 +00:00
timmy closed this issue 2026-08-11 04:55:20 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#541
No description provided.