Improve wording for #8317

Also add missing label to bug report url
pull/8332/head
Gabriel Horner 2023-01-12 11:05:02 -05:00
parent 6fd8d8d165
commit dded4be84b
2 changed files with 9 additions and 9 deletions

View File

@ -61,20 +61,20 @@
;; for mobile ;; for mobile
[:input.form-input.is-large.transition.duration-150.ease-in-out {:type "text" :placeholder "Long press here to paste if you are on mobile"}] [:input.form-input.is-large.transition.duration-150.ease-in-out {:type "text" :placeholder "Long press here to paste if you are on mobile"}]
[:div.flex.justify-between.items-center.mt-2 [:div.flex.justify-between.items-center.mt-2
[:div "Something wrong? No problem, click here to go to the previous step."] [:div "Something wrong? No problem, click to go back to the previous step."]
(ui/button "Go back" :on-click #(util/open-url (rfe/href :bug-report)))])) (ui/button "Go back" :on-click #(util/open-url (rfe/href :bug-report)))]))
(when (= step 1) (when (= step 1)
(list (list
[:div "Here is the data read from clipboard."] [:div "Here is the data read from clipboard."]
[:div.flex.justify-between.items-center.mt-2 [:div.flex.justify-between.items-center.mt-2
[:div "If it is Okay, click the button to copy the result to your clipboard."] [:div "If this is okay to share, click the copy button."]
(ui/button "Copy the result" :on-click #(copy-result-to-clipboard! (js/JSON.stringify (clj->js result) nil 2)))] (ui/button "Copy the result" :on-click #(copy-result-to-clipboard! (js/JSON.stringify (clj->js result) nil 2)))]
[:div.flex.justify-between.items-center.mt-2 [:div.flex.justify-between.items-center.mt-2
[:div "Now you can report the result pasted to your clipboard. Please paste the result to Additional Context and state where you copied the original content from. Thanks!"] [:div "Now you can report the result pasted to your clipboard. Please paste the result in the 'Additional Context' section and state where you copied the original content from. Thanks!"]
(ui/button "Create an issue" :href header/bug-report-url)] (ui/button "Create an issue" :href header/bug-report-url)]
[:div.flex.justify-between.items-center.mt-2 [:div.flex.justify-between.items-center.mt-2
[:div "Something wrong? No problem, click here to go to the previous step."] [:div "Something wrong? No problem, click to go back to the previous step."]
(ui/button "Go back" :on-click reset-step!)] (ui/button "Go back" :on-click reset-step!)]
[:pre.whitespace-pre-wrap [:code (js/JSON.stringify (clj->js result) nil 2)]]))])) [:pre.whitespace-pre-wrap [:code (js/JSON.stringify (clj->js result) nil 2)]]))]))
@ -103,11 +103,10 @@
[:div.flex.items-center.mb-2 [:div.flex.items-center.mb-2
(ui/icon "bug") (ui/icon "bug")
[:h1.text-3xl.ml-2 "Bug report"]] [:h1.text-3xl.ml-2 "Bug report"]]
[:div.opacity-60 "Oops, looks like something went wrong.."] [:div.opacity-60 "Can you help us out by submitting a bug report? We'll get it sorted out as soon as we can."]]
[:div.opacity-60 "Can you help us out by submitting a bug report? We'll get it sorted out as soon as we can"]]
[:div.cp__bug-report-reporter.rounded-lg.p-8.mt-8 [:div.cp__bug-report-reporter.rounded-lg.p-8.mt-8
[:h1.text-2xl "Is the bug you encountered related to these fields?"] [:h1.text-2xl "Is the bug you encountered related to these features?"]
[:div.opacity-60 "You can use these handy tools to give us additional information"] [:div.opacity-60 "You can use these handy tools to give us additional information."]
(report-item-button "Clipboard helper" (report-item-button "Clipboard helper"
"Inspect and collect clipboard data" "Inspect and collect clipboard data"
"clipboard" "clipboard"
@ -115,5 +114,5 @@
[:div.py-2] ;; divider [:div.py-2] ;; divider
[:div.flex.flex-col [:div.flex.flex-col
[:h1.text-2xl "Or..."] [:h1.text-2xl "Or..."]
[:div.opacity-60 "If there are no tools available for you to gather additional information, please report the bug directly"] [:div.opacity-60 "If there are no tools available for you to gather additional information, please report the bug directly."]
(report-item-button "Submit a bug report" "Help Make Logseq Better!" "message-report" {:on-click #(util/open-url header/bug-report-url)})]]]) (report-item-button "Submit a bug report" "Help Make Logseq Better!" "message-report" {:on-click #(util/open-url header/bug-report-url)})]]])

View File

@ -70,6 +70,7 @@
(str "https://github.com/logseq/logseq/issues/new?" (str "https://github.com/logseq/logseq/issues/new?"
"title=&" "title=&"
"template=bug_report.yaml&" "template=bug_report.yaml&"
"labels=from:in-app&"
"platform=" "platform="
(js/encodeURIComponent platform)))) (js/encodeURIComponent platform))))