Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
6a470a0
fix(theme): write theme colours in hex, not oklch
ThePrimeShak Sep 18, 2026
a5b8d9e
fix(fonts): pin line height so Firefox matches Chrome
ThePrimeShak Sep 18, 2026
d76e6a4
feat(styles): add a design token layer
ThePrimeShak Sep 18, 2026
8e45bb5
refactor: move the app onto the design tokens
ThePrimeShak Sep 18, 2026
b147a5e
test(styles): guard the token vocabulary
ThePrimeShak Sep 18, 2026
5962426
feat(styles): update design tokens for consistent theming across comp…
ThePrimeShak Sep 19, 2026
28f15d6
fix(theme): write tints as plain rgba, not a calc chain
ThePrimeShak Sep 19, 2026
4fdd05c
refactor(styles): let @theme generate the colour utilities
ThePrimeShak Sep 19, 2026
89c6e38
fix(ui): restore hovers that resolved to their own base colour
ThePrimeShak Sep 19, 2026
28f7588
chore(styles): drop classes that never compiled
ThePrimeShak Sep 19, 2026
fddcb3f
test(styles): guard the collapsed layout
ThePrimeShak Sep 19, 2026
be6cd3e
fix(styles): put every tint back on its own ladder
ThePrimeShak Sep 19, 2026
1101108
fix(ui): restore solid borders and undo a mis-paired rewrite
ThePrimeShak Sep 19, 2026
b2999c3
fix(theme): let the channel variables reach the stylesheet
ThePrimeShak Sep 19, 2026
c988f09
feat(styles): add the rungs main used that the ladder had no step for
ThePrimeShak Sep 19, 2026
de033be
fix(ui): put every element back on the step it had on main
ThePrimeShak Sep 19, 2026
076e0ec
fix(ui): restore the colours the rewrite dropped rather than moved
ThePrimeShak Sep 19, 2026
dce432b
fix(styles): declare the z-index scale the utilities reference
ThePrimeShak Sep 19, 2026
fb01793
fix(styles): guard the half of a theme that fails silently
ThePrimeShak Sep 19, 2026
82a4156
chore(styles): cut the dead half of the palette and write it down
ThePrimeShak Sep 19, 2026
7ad9907
fix(styles): adjust background opacity and streamline gradient stops
sajjadmrx Sep 19, 2026
85d4c9b
fix(styles): update background colors and border styles across variou…
sajjadmrx Sep 19, 2026
be24e3b
refactor(styles): start a smaller colour vocabulary in tokens.css
ThePrimeShak Sep 27, 2026
877be2d
refactor(styles): move identical colours onto the ds- tokens
ThePrimeShak Sep 27, 2026
1ed8a81
refactor(styles): merge near-identical colour steps onto the ds- tokens
ThePrimeShak Sep 27, 2026
4adbdcb
refactor(styles): settle the last legacy colours and retire the old l…
ThePrimeShak Sep 27, 2026
76b4ec0
refactor(styles): drop the legacy colour layer and the ds- prefix
ThePrimeShak Sep 27, 2026
9940033
chore(styles): remove rules and utilities nothing uses
ThePrimeShak Sep 27, 2026
7a3e13c
fix(ui): put accent text on its pair and give imagery a foreground
ThePrimeShak Sep 27, 2026
1e7e354
refactor(styles): put Tailwind's shadow scale on the elevation ladder
ThePrimeShak Sep 27, 2026
9414b80
refactor(styles): name the text sizes below text-xs
ThePrimeShak Sep 27, 2026
5213b85
refactor(styles): give the page-wide layers the values they really use
ThePrimeShak Sep 27, 2026
f47ebe2
refactor(styles): trim the radius scale to the steps in use
ThePrimeShak Sep 27, 2026
cbbbd88
refactor: delete dead code and make the tests keep it out
ThePrimeShak Sep 27, 2026
86df647
chore(lint): clear every Biome diagnostic and keep it at zero
ThePrimeShak Sep 27, 2026
6e27819
refactor: move features under src/features and lock the folder shape
ThePrimeShak Sep 27, 2026
f16dcae
refactor: point every import down the layers and give each file its o…
ThePrimeShak Sep 27, 2026
b5e9c13
refactor: give every server call and query key one home per domain
ThePrimeShak Sep 27, 2026
1eafaed
refactor: give every stylesheet one role and make themes pure variables
ThePrimeShak Sep 28, 2026
af6c2eb
refactor: build loading, widget states and dialogs from one component…
ThePrimeShak Sep 28, 2026
9f1fba6
refactor: give each radius step a role and hold components/ui to it
ThePrimeShak Sep 28, 2026
adf298b
refactor: size every piece of text from the type scale
ThePrimeShak Sep 28, 2026
acf3333
fix: animate scale and position changes, and stop transitioning every…
ThePrimeShak Sep 28, 2026
ea99802
refactor: draw every icon from Lucide
ThePrimeShak Sep 28, 2026
8fa70ec
refactor: keep one icon name per drawing
ThePrimeShak Sep 29, 2026
3e3da4a
refactor: drop unused icon names and name icons for what they draw
ThePrimeShak Sep 29, 2026
054214b
refactor: draw the active home and explore tabs as solid icons with a…
ThePrimeShak Sep 29, 2026
574962a
fix: keep the navbar handle on its surface colour while hovering
ThePrimeShak Sep 29, 2026
e828d22
fix: navbar notifications empty state, birthday confetti and dead code
ThePrimeShak Sep 29, 2026
15d0bae
fix: give the navbar's controls names, real buttons and keyboard focus
ThePrimeShak Sep 29, 2026
675cb95
perf: load the settings, market, sign-in and wizard code on demand
ThePrimeShak Sep 29, 2026
aa18f5c
perf: draw the navbar logo from the extension instead of the CDN
ThePrimeShak Sep 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
270 changes: 201 additions & 69 deletions AGENTS.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions background/cache-names.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CacheName } from '@/common/types/sw-events'
import { CacheName } from '../src/common/types/sw-events'

export const CACHE_PREFIX = 'wgf-'
const CACHE_PREFIX = 'wgf-'

export const APP_VERSION: string = (() => {
const APP_VERSION: string = (() => {
try {
return browser.runtime.getManifest().version
} catch {
Expand Down
2 changes: 1 addition & 1 deletion background/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { removeFromStorage, setToStorage } from '../src/common/storage'
import { enforceCacheBudget, purgeStaleCaches } from './utils'
import { resolveCacheName } from './cache-names'
import { initActiveWallpaper, setActiveWallpaper } from './wallpaper-cache'
import { type SwEvent, SwEventType } from '@/common/types/sw-events'
import { type SwEvent, SwEventType } from '../src/common/types/sw-events'

export function setupEventListeners() {
if (!import.meta.env.FIREFOX) {
Expand Down
10 changes: 0 additions & 10 deletions background/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { CacheNames, EXPECTED_CACHES, LEGACY_CACHES } from './cache-names'

export const BOOKMARK_ORDER_KEY = '__root__'

const MAX_CACHE_BYTES = 100 * 1024 * 1024

export async function purgeStaleCaches(): Promise<void> {
Expand Down Expand Up @@ -53,11 +51,3 @@ export async function enforceCacheBudget(): Promise<void> {
}
} catch {}
}

export function normalizeKey(folderId: string | null): string {
return folderId == null ? BOOKMARK_ORDER_KEY : folderId
}

export function denormalizeKey(key: string) {
return key === BOOKMARK_ORDER_KEY ? null : key
}
2 changes: 1 addition & 1 deletion background/wallpaper-cache.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getFromStorage } from '@/common/storage'
import { getFromStorage } from '../src/common/storage'
import { CacheNames } from './cache-names'

export const activeWallpaperUrls = new Set<string>()
Expand Down
12 changes: 11 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"correctness": {
"useExhaustiveDependencies": "off",
"noUnusedVariables": "warn",
"noUnusedImports": "warn",
"noUnusedImports": "error",
"useUniqueElementIds": "off",
"noInvalidPositionAtImportRule": "off"
},
Expand Down Expand Up @@ -99,6 +99,16 @@
}
}
},
{
"includes": ["**/__tests__/**"],
"linter": {
"rules": {
"style": {
"noNonNullAssertion": "off"
}
}
}
},
{
"includes": ["package.json", "tsconfig.json"],
"json": {
Expand Down
3 changes: 0 additions & 3 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"zip:firefox": "wxt zip -b firefox",
"zip:firefox:clean": "npm run clean && wxt zip -b firefox",
"compile": "tsc --noEmit",
"lint": "biome check src background entrypoints wxt.config.ts",
"test": "bun test",
"test:pre-push": ".git/hooks/pre-push.bat",
"postinstall": "wxt prepare"
Expand All @@ -33,7 +34,6 @@
"moment": "2.30.1",
"moment-hijri": "3.0.0",
"moment-timezone": "0.6.2",
"motion": "12.40.0",
"ms": "2.1.3",
"react": "19.2.7",
"react-colorful": "5.7.0",
Expand Down
Loading
Loading