Configurable Issue Types model (GitHub issue type + labels + body template)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- github, javascript
- Domain
- frontend
Research direction
Review popup/app.html and issue-form.js, then trace the generated type selector and submit flow. Verify in the browser that Bug, Enhancement, and Other produce the expected type, labels, and body URL parameters, including graceful handling when GitHub issue types are unsupported. Done means the acceptance criteria pass without storage persistence or regressions.
Written by the indexing model from the issue text.
Description
Story:
As a User/Developer
I want issue "types" to be a structured data model — each mapping to a GitHub native issue type, default labels, and a body template
So that selecting a type prefills the right fields and the concept is no longer hardcoded across the popup
Requirements:
- Today the
typeradio value (bug/enhancement/other) is overloaded: it's used both as the label and to pick a hardcoded body template, with the radios hardcoded inpopup/app.html. This issue decouples that into a real model. - Define a Type shape
{ id, name, githubType, labels[], bodyTemplate }:name— display name (e.g. "Bug")githubType— free-text, sent as&type=(confirmed working live, e.g.&type=Bug); org-level feature so it must be ignored gracefully off-orglabels— array of default labels, joined into&labels=bodyTemplate— markdown body
- The default types (Bug / Enhancement / Other) live in code as the single source of truth — not seeded into
chrome.storage. Keeping them code-owned means we can improve them and every user on the defaults gets the update, with no migration. User-added types & their persistence are deferred to #15. - Adopt the improved feature template (Story → Requirements → Tasks → Acceptance criteria).
- Wire the selected type into the redirect URL:
&type=,&labels=(supports multiple), and the body template — preserving the existing pure-redirect UX. - Rename the internal
type/type_fieldconcept consistently.
Tasks:
- Define the Type shape + the code
DEFAULTS(Bug / Enhancement / Other) as the single source of truth — no storage, no seeding - Render the type selector from the model (replacing the hardcoded radios in
app.html), via DOM APIs +.text() - Refactor the submit handler to build the URL (
&type=,&labels=, body) from the selected type - Adopt the updated feature template
- Keep field-state persistence working with the generated radios — the existing generic radio handler in
issue-form.jsis reused; radios render synchronously, beforeIssueForm.init
Acceptance criteria:
- Selecting Bug yields
&type=Bug(where supported), the bug label(s), and the bug body template - A type can carry multiple labels, all applied via
&labels= -
githubTypeis sent as&type=and is gracefully ignored off-org (no broken URL) - No behavioural regression vs the previous Bug/Enhancement/Other radios
- Type definitions come from the code
DEFAULTSmodel (not inlined in the submit handler) and are not persisted to storage in this issue
Foundation for the Issue Types work (replaces ideas #1 + #3, merged). Storage/persistence intentionally deferred to #15.
- Dominant language
- JavaScript
- Stars
- 19
- Forks
- 5
- Avg merge
- 8d 14h
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stilliard/quick-add-github-issue-browser-extension
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 65/100
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 76/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 58/100
All issues in stilliard/quick-add-github-issue-browser-extension
Similar issues
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100