diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index 593cb4d8..be871cd1 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -136,5 +136,25 @@ "menuLoadingText": { "message": "Loading...", "description": "Loading messsage" + }, + "generalIssueOption": { + "message": "General issue (requires notes)", + "description": "The option text for a general issue" + }, + "scrollbarIssueOption": { + "message": "Scrollbar related", + "description": "The option text for a scrollbar issue" + }, + "modalIssueOption": { + "message": "Modal related", + "description": "The option text for a modal issue" + }, + "scrollbarIssueDescription": { + "message": "Select this option to signify an issue on this page related to scrolling - like 'the site is not showing a scrollbar'.", + "description": "Explanation of what a scrollbar issue is" + }, + "modalIssueDescription": { + "message": "Select this option to signify an issue on this page related to a modal - like 'there is a pop-up box blocking interaction'.", + "description": "Explanation of what a modal issue is" } } diff --git a/src/data/background.js b/src/data/background.js index 74ea6e9f..37025f19 100644 --- a/src/data/background.js +++ b/src/data/background.js @@ -353,7 +353,7 @@ if (!isManifestV3) { } // Reporting -function reportWebsite(info, tab, anon, notes, callback) { +function reportWebsite(info, tab, anon, issueType, notes, callback) { if (tab.url.indexOf("http") != 0 || !tabList[tab.id]) { return; } @@ -387,6 +387,7 @@ function reportWebsite(info, tab, anon, notes, callback) { "Content-Type": "application/json", }, body: JSON.stringify({ + issueType, notes, url: tab.url, browser: getBrowserAndVersion(), @@ -574,6 +575,7 @@ chrome.runtime.onMessage.addListener((request, info, sendResponse) => { info, tabList[request.tabId], request.anon, + request.issueType, request.notes, sendResponse ); diff --git a/src/data/menu/index.html b/src/data/menu/index.html index c1d51715..59439eb4 100644 --- a/src/data/menu/index.html +++ b/src/data/menu/index.html @@ -26,7 +26,17 @@

example.com

- + + + +