@@ -115,16 +115,22 @@ source files in this repo as-is. To make a change, edit the source, reload
115115the extension at ` chrome://extensions ` (or re-install the temporary add-on
116116in Firefox), and refresh a PR page.
117117
118- | File | Purpose |
119- | --------------- | ----------------------------------------------------- |
120- | ` manifest.json ` | Extension definition (Manifest V3, Chrome + Firefox) |
121- | ` constants.js ` | Shared constants (storage key, order values) |
122- | ` reorder.js ` | Pure DOM-reordering helpers (unit-tested) |
123- | ` checks.js ` | PR status-checks detection helpers (unit-tested) |
124- | ` content.js ` | Runs on PR pages; reorders comments, draws the toggle |
125- | ` background.js ` | Keeps the toolbar icon in sync with the current tab |
126- | ` popup.html ` | Toolbar popup UI |
127- | ` popup.js ` | Popup behavior; reads/writes saved preference |
118+ | File | Purpose |
119+ | --------------- | --------------------------------------------------------- |
120+ | ` manifest.json ` | Extension definition (Manifest V3, Chrome + Firefox) |
121+ | ` constants.js ` | Shared constants (storage key, order values) |
122+ | ` reorder.js ` | Pure DOM-reordering helpers (unit-tested) |
123+ | ` checks.js ` | PR status-checks detection helpers (unit-tested) |
124+ | ` pages.js ` | Per-page GitHub DOM selectors and targets (unit-tested) |
125+ | ` content.js ` | Runs on PR pages; wires storage, observers, and the UI |
126+ | ` background.js ` | Keeps the toolbar icon in sync with the tab (unit-tested) |
127+ | ` popup.html ` | Toolbar popup UI |
128+ | ` popup.js ` | Popup behavior; reads/writes saved preference |
129+
130+ When GitHub ships a UI change that breaks reordering, the selectors to
131+ update live in ` pages.js ` (timeline/commits targets) and ` checks.js `
132+ (status-checks box); each has jsdom tests with fixtures mirroring the real
133+ page structure, so start by updating the fixture to match the new DOM.
128134
129135### Dev tooling (optional)
130136
0 commit comments