A streamlined GitHub issue project-management Chrome extension. Treats each GitHub repo as a "project" and provides a kanban-style issue management UI, with GitHub as the single source of truth for all data.
- Multi-project switching: each GitHub repo maps to one project, switchable via a dropdown
- New project creation validates that the repo exists (calls
GET /repos/{owner}/{repo}; 404 is rejected) - Empty repos automatically get an initial commit (README.md) so a base branch exists for future operations
- Repos with an existing init issue: reused automatically, never duplicated
- Full project removal: clears local cache and
chrome.storagerecords (GitHub side is untouched)
- Five columns: Todo / In Progress / In Review / Done / Canceled
- Issue cards display a type badge (bug/feature/init) and a priority indicator
- Automatic status (aggregated from linked PRs; applies only to open issues):
- Any open non-draft PR → review
- All open PRs are draft → process
- All PRs closed/merged → automatically PATCH issue state=closed → Done
- Manual status switching: the detail modal's status dropdown offers Todo / In Progress / In Review / Done
- Todo / In Progress / In Review → state=open (auto-reopens if previously closed)
- Done → state=closed without the cancel label
- Cancel is still triggered by its own button (state=closed + cancel label)
- Status is automatically synced to GitHub labels (avoids local/remote drift)
- In-column sorting:
- Todo / In Progress / In Review: priority desc (Urgent > High > Medium > Low > none), then
updated_atdesc - Done / Canceled:
closed_atdesc (fallbackupdated_at)
- Todo / In Progress / In Review: priority desc (Urgent > High > Medium > Low > none), then
- Integrates GitHub's native sub-issue relationships (
/issues/{n}/sub_issuesAPI); never written into pm-meta - The detail modal shows two sections: Parent (only for child issues) and Sub-issues (available on any issue)
- Parent issue cards display a
{done}/{total}progress bar; child issue cards display a↳ #Nparent badge - Adding a sub-issue: click "+ Add Sub-issue" in the detail modal and enter an issue number; remove with the
×beside each list item - Actions call the GitHub API directly (no draft); local cache and board sync after success
- Limits: 100 children, nesting depth of 8, one parent per child, cross-repo not supported
- Parents are not auto-closed (distinct from the linkedPRs auto-close; a parent may have its own PR)
- Editing title, body, status, priority, or open/closed state → written to an in-memory draft, never immediately sent to the API
- Close via X: batch submission in the background (PATCH issue + PUT labels); the UI closes instantly without lag
- Click outside the modal: persisted to the IndexedDB drafts store; auto-loaded next time you open the issue
- API failures automatically fall back to draft mode — no data loss
- Cards with unsaved changes show a gray edge strip on the left, a sunken look, and an "unsaved" tag in the top-right corner
- Reopening a modal with an existing draft: a banner shows "Unsaved changes (X minutes ago)" with a discard button
- Each issue has a computed identifier:
{owner}-{issueNumber}(e.g.,lonshaus-9) - Displayed in the detail modal meta row, copyable in one click
- Users create branches locally with the identifier + dash as a prefix:
git checkout -b lonshaus-9-add-toolbar git push -u origin lonshaus-9-add-toolbar - After opening a PR, the extension auto-matches the issue via
pr.head.ref.startsWith('lonshaus-9-') - Multi-PR support: one issue can link to multiple PRs. The detail modal's "LINKED PRS" section shows clickable badges (linking to the GitHub PR page) with a status dot: green (open) / gray ring (draft) / purple (merged) / red (closed)
- Manual linking: when a branch doesn't follow the naming convention, click "+ Link PR" in the detail modal and enter a PR number; manual links are stored in a
<!-- pm-meta: {"linkedPRs":[...]} -->comment at the end of the issue body - All PRs closed → auto Done: on refresh or when opening an issue, if all linked PRs are detected as closed/merged, the issue is automatically PATCHed to state=closed
- Four levels: Low / Medium / High / Urgent
- Visualized as a red signal bar with 1/2/3 segments, plus a red exclamation mark (Urgent)
- Visible after card titles on the main view and in the detail modal's Priority dropdown
- Stored as a GitHub label (
priority:low/medium/high/urgent)
- Sent immediately (no draft); the send button is the blue paper-plane icon in the bottom-right of the textarea
- Comments come from the GitHub Issue Comments API
- Right-side slide-in panel (no separate page)
- GitHub Username + Personal Access Token
- Theme: Follow system / Light / Dark (CSS variables +
prefers-color-scheme) - Language: Follow browser / English / Traditional Chinese / Japanese (reloads the page after switching)
- Custom i18n system (
i18n.js) supports runtime switching (Chrome's built-inchrome.i18nAPI does not) - HTML uses
data-i18n/data-i18n-placeholder/data-i18n-titleattributes - JS uses
t(key, params)with template interpolation - Three languages: en / zh-TW / ja
- Issue types (bug/feature), priority levels (Low/Medium/High/Urgent), and status column names (Todo/In Progress, etc.) are always in English
GitHub is the sole source of truth — no metadata lives only locally:
| Metadata | Storage | Format |
|---|---|---|
| Issue title, body, open/closed state | GitHub Issue standard fields | Native |
| Status (todo/process/review) | GitHub Label | status:{key} |
| Done | GitHub Issue state | state: closed (no cancel label) |
| Canceled | GitHub Issue state + label | state: closed + cancel label |
| Priority | GitHub Label | priority:{level} |
| Issue ↔ PR auto-linking | Pure computation + branch naming convention | pr.head.ref.startsWith('${owner}-${number}-') |
| Issue ↔ PR manual linking | Hidden comment at the end of the issue body | <!-- pm-meta: {"linkedPRs":[14,15]} --> |
| Sub-issue parent/child | GitHub sub-issue API | sub_issues_summary + /issues/{n}/sub_issues |
| Comments | GitHub Issue Comments | Native |
Benefits of this design: reinstalling the extension, switching browsers, or clearing local data → a single refresh restores all metadata in full. No import/export, no hidden metadata written into the issue body.
Read (parse GitHub → internal format):
GitHub API → LocalStorage.parseIssueMetadata(issue)
├─ labels filtered for status:* / priority:* / cancel
└─ body parsed for pm-meta { branch, linkedPRs }
→ { status, urgency, cancelled, branchName, linkedPRs }
Write (internal format → GitHub):
Edit action → this._detailDraft.{title|body|state|status|urgency|cancelled|linkedPRs}
→ Click X
→ commitDraft(snapshot)
├─ buildIssueLabels: filter existing labels, then add new status:* / priority:* / cancel
├─ buildIssueBody: displayBody + pm-meta { branch?, linkedPRs? }
├─ updateIssue (PATCH title + body + state)
└─ setIssueLabels (PUT labels)
→ patchIssue syncs local cache
→ deleteDraft
PR status → Issue status derivation (for open issues):
getLinkedPRs(issueNumber, legacyBranchName, manualLinkedPRs, prs, owner)
├─ identifier prefix match (pr.head.ref.startsWith(`${identifier}-`))
├─ legacy branchName exact match (for older issues)
├─ manual linkedPRs (pm-meta array)
└─ deduplicated union of the three
computeIssueStatus(...)
├─ No linked PR → null
├─ All closed/merged → 'all-closed' (caller auto-PATCHes state=closed → Done)
├─ Any open non-draft → 'review'
└─ All open are draft → 'process'
IndexedDB (v3 schema):
issuesstore: keyed by${projectId}_${githubIssueId}to avoid cross-repo collisions; queried via theprojectIdindexmetadatastore: tracks the last sync time per projectdraftsstore: keyed by${projectId}_${issueNumber}; stores the unsubmitted changes and anupdatedAttimestamp
chrome.storage.sync (cross-device sync):
githubToken,owner,projects,activeProjectId,theme,language
chrome.storage.local (device-local):
labelsEnsured_{owner}_{repo}: the list of repos that already have system labels created; avoids redundant work
On the first operation against a repo, ensureSystemLabels will:
GET /repos/{owner}/{repo}/labelsto fetch existing labels- Compare against the 8 required system labels; POST only the missing ones (avoids 422 noise)
- Fixed colors: status matches the board's column indicators; priority graduates from light red to dark red
The 8 system labels:
status:todostatus:processstatus:reviewstatus:donepriority:lowpriority:mediumpriority:highpriority:urgent
These system labels are filtered out of the UI display to avoid mixing with type labels.
Design goal: users edit and walk away — no lag, no data loss.
Key implementation:
- Edit actions only update
_detailDraft; the API is never touched mergedDetailIssue()overlays the draft on top of the fresh issue for display- Close via X: snapshot the full draft state → close the modal immediately → fire-and-forget background commit
- Click outside: await persistDraft into IDB → close
- API failures: catch and auto-saveDraft; the next time the user opens the issue, a banner is shown
├── manifest.json Manifest V3 configuration
├── background.js Service Worker (intercepts icon click to open manager)
├── manager.html / manager.js Main panel (board, modal, editing logic)
├── settings.js Settings panel logic (theme, language switching)
├── i18n.js Custom i18n (en / zh-TW / ja)
├── github-api.js GitHub REST + GraphQL wrapper
├── storage.js IndexedDB wrapper (includes parseIssueMetadata)
├── theme.js Theme application (reads chrome.storage and sets data-theme)
└── options.html Redirects to manager settings when clicking "Options" in chrome://extensions