Omdevsinh Zala

Custom Homepage

A Chrome new-tab dashboard with shortcuts, link groups, drag-and-drop sections and fuzzy search.

v3.1.0

  • Angular 22
  • Signals (zoneless)
  • Angular Material/CDK
  • Tailwind CSS 4
  • Vitest
  • Manifest V3

Code on GitHub

Problem

Custom Homepage is a Chrome extension (Manifest V3). It replaces the new tab page with a dashboard of shortcuts and link groups, over a background image or video.

My groups were flat. The design spec describes one group with 18 links in a single grid. Many links shared the same GitHub favicon, so finding one meant reading every tile.

Before version 3, a review of 2.6.0 was written (docs/review.md). It lists bugs, performance, security, data and accessibility findings. The spec marks all of them as approved for fixing.

Constraints

The spec sets the rules. Existing data must migrate with zero loss. It counts as a failure if a saved link is lost or reordered, or if a link’s URL or usage data leaves the browser. There is no sync, no account and no analytics.

The extension has no backend. Data lives in chrome.storage. Outside the extension, for example on the dev server, it falls back to localStorage.

Storage keys, migrations and the export format are contracts with installed 2.x and 3.x users. My project rules say to keep compatibility code even when it looks dead.

Decision

Version 3 stores links in a new format, savedLinks_v2. It migrates 2.x data on first start and keeps a backup of the original data. The spec says to write only after the backup succeeded. The migration is a pure function, and it checks the shape of the data instead of trusting the version number.

Version 3 also keeps writing a 2.x-compatible copy of the links. If you go back to 2.6.0, it shows your links without sections. When you upgrade again, changes made in 2.6.0 are merged back in.

Imports are validated. The import skips links with javascript:, data: or vbscript: URLs and lists them. It backs up the current links first, and it asks before replacing existing links.

Trade-off

Writing the 2.x copy has a cost. Link data takes about twice the space. The spec estimates my data grows from about 7 KB to about 14 KB, and calls that fine within quota.

Chrome redraws backdrop-filter in patches. They show as light strips on colourful wallpapers. Tiles and pills have no blur, except on uploads. Screenshots cannot show the glitch, so I check it by eye.

Result

The review found that every link’s full URL went to a Google favicon service. Now favicons come from the browser’s own cache, icons are bundled with the extension and text uses the system font. No request goes to a third party. I also dropped the unused host permissions.

Press / or Ctrl+K to search all links by name, site, section or group, with typo tolerance. Enter opens a result. Ctrl+Enter opens it in a background tab. With no match, the search lists every link. The scorer is small in-house code, not a dependency.

The review found that the add and group tiles were not focusable and that menu buttons had no name. Group tiles are now real buttons with a label. Keyboard focus is always visible. Reduced-motion users get no animation and no autoplaying video. Right-click, the context-menu key or Shift+F10 opens an item’s menu.

What I’d do next

There is no light theme yet. The glass design spec leaves it out of that pass, because the glass sits over the wallpaper. It says a light theme can come later.

CSS-only fixes have no unit test coverage, because the unit tests do not load the global stylesheet. I check those in the browser or with check:styles. My notes also say to test the unpacked build before a release, because the extension behaves differently from the dev server.