Skip to content

Apply size tiers to the code viewer - #6

Merged
anishshobithps merged 1 commit into
mainfrom
feat/document-tiers
Nov 10, 2026
Merged

anishshobithps merged 1 commit into
mainfrom
feat/document-tiers

Conversation

@anishshobithps

Copy link
Copy Markdown
Contributor

Summary

  • Wires the existing size tiers into the Monaco viewers, so large files stop paying for features they do not need.
  • Reduced tier (over 256 KB or 20,000 lines): folding, bracket colourization, occurrence highlight, link detection and sticky scroll are off.
  • Plain tier (over 2 MB or a line over 20,000 characters): opens as plain text with a notice and an "Enable highlighting" button that switches to the reduced tier for that file.
  • Applies to both the file editor and the diff editor.
  • Adds a minified bundle and a 25,000-line JSON file to the fixture demo session.

Test plan

  • turbo run check-types lint for web and tests
  • Fixture session in the browser: dist/bundle.min.js shows the notice and the button clears it; data/rows.json highlights with folding off; package.json highlights with folding on
  • CI

@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website-vw4l Ready Ready Preview Nov 10, 2026 3:22pm UTC

@anishshobithps
anishshobithps merged commit 259df7e into main Nov 10, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview – website-vw4l — 423b670e Deployed Nov 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant