From 24f7e958bff0f19b5680daa0adf7fe5e3321d465 Mon Sep 17 00:00:00 2001 From: Iain Date: Sun, 4 Oct 2026 14:57:44 +0100 Subject: [PATCH 1/2] fix: prefill the report form's title instead of its fields --- src/lib/table.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/table.js b/src/lib/table.js index 7d7eb35..ff13a2f 100644 --- a/src/lib/table.js +++ b/src/lib/table.js @@ -141,8 +141,10 @@ export const reportedFeatures = (features, rows) => export const featuresFrom = (features, rows, origin) => features.filter(({ key }) => rows.every((row) => row.cells[key].origin === origin)); -export const reportUrl = (device, rom) => - `${issueUrl('report-feature')}&device=${device.key}${rom ? `&rom=${rom.key}` : ''}`; +export const reportUrl = (device, rom) => { + const title = `[Report]: ${device.title} (${device.key})${rom ? ` on ${rom.name}` : ''}`; + return `${issueUrl('report-feature')}&title=${encodeURIComponent(title)}`; +}; export const deviceSearchText = (device) => [device.title, ...device.codenames, ...(device.aliases ?? [])].join(' ').toLowerCase(); From 2fb6e1142297095047215502732de314f132761b Mon Sep 17 00:00:00 2001 From: Iain Date: Sun, 4 Oct 2026 15:01:23 +0100 Subject: [PATCH 2/2] docs: say what the report link fills in now --- .github/CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 505a189..438a59f 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -27,7 +27,7 @@ The files in `upstream/` get rewritten by a bot every Monday, so any change you ## Reporting what works -The [form](https://github.com/NotAFlightRisk/android-rom-compat/issues/new?template=report-feature.yml) is the easy way. Pick a device and ROM, set whatever you've tried, and a bot opens a pull request for you with your name on the commit. If something's missing or doesn't add up, it comments on the issue saying what - just edit the issue and it'll try again. The "Report" link on each ROM row of a device page fills in the first two fields for you. +The [form](https://github.com/NotAFlightRisk/android-rom-compat/issues/new?template=report-feature.yml) is the easy way. Pick a device and ROM, set whatever you've tried, and a bot opens a pull request for you with your name on the commit. If something's missing or doesn't add up, it comments on the issue saying what - just edit the issue and it'll try again. The "Report" link on each ROM row of a device page puts the device, its codename and the ROM in the title, so you can copy them across. Rather do it by hand? Add a `features` section to `data/support//.yml`, making the file if it's not there yet. Anything you leave out shows as unknown, which is fine.