From 3fc6e267085e54efa50e55a0d5be6a1645962cfd Mon Sep 17 00:00:00 2001 From: Kyle Machulis Date: Sun, 17 Mar 2024 16:30:09 -0700 Subject: [PATCH] chore: Make log submission clearer. Hopefully. --- lib/page/submit_logs_page.dart | 38 +++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/lib/page/submit_logs_page.dart b/lib/page/submit_logs_page.dart index 55ee307..48c2778 100644 --- a/lib/page/submit_logs_page.dart +++ b/lib/page/submit_logs_page.dart @@ -8,6 +8,7 @@ class SendLogsPage extends StatelessWidget { @override Widget build(BuildContext context) { + var contactController = TextEditingController(); var textController = TextEditingController(); return Expanded( child: Card( @@ -19,21 +20,38 @@ class SendLogsPage extends StatelessWidget { "Send Logs to Developers", style: TextStyle(fontWeight: FontWeight.w600, fontSize: 18), ), + const SizedBox(height: 8), + const Text( + "Please add your contact info (via email, discord, telegram, x/twitter, bluesky, masto, etc... SUBMISSIONS WITHOUT CONTACT INFO WILL BE IGNORED.) and any information you'd like the devs to know about your issue. Intiface Central logs and config files will be attached automatically.", + style: TextStyle(fontWeight: FontWeight.w400, fontSize: 12), + ), + const SizedBox(height: 8), + Container( + padding: const EdgeInsets.all(3), + decoration: BoxDecoration( + border: Border.all(color: Colors.grey, width: 2), borderRadius: BorderRadius.circular(3)), + child: TextField( + controller: contactController, + minLines: 1, + maxLines: 1, + style: const TextStyle(fontWeight: FontWeight.w400, fontSize: 12), + decoration: const InputDecoration( + border: InputBorder.none, enabledBorder: InputBorder.none, hintText: "Put contact info here"), + ), + ), + const SizedBox(height: 5), Expanded( child: Container( - padding: const EdgeInsets.all(10), + padding: const EdgeInsets.all(3), decoration: BoxDecoration( - border: Border.all(color: Colors.grey, width: 3), borderRadius: BorderRadius.circular(5)), + border: Border.all(color: Colors.grey, width: 2), borderRadius: BorderRadius.circular(3)), child: TextField( controller: textController, minLines: 2, maxLines: null, + style: const TextStyle(fontWeight: FontWeight.w400, fontSize: 12), decoration: const InputDecoration( - border: InputBorder.none, - enabledBorder: InputBorder.none, - hintMaxLines: 3, - hintText: - "Please add your contact info (via email, discord, telegram, x/twitter, bluesky, masto, etc...) and any information you'd like the devs to know about your issue. Intiface Central logs and config files will be attached automatically."), + border: InputBorder.none, enabledBorder: InputBorder.none, hintText: "Put issue report here"), ), )), SizedBox( @@ -51,7 +69,11 @@ class SendLogsPage extends StatelessWidget { // We're going to assume the stateful builder runs before we get a return from our capture. // Bold, possibly stupid move. late StateSetter _setState; - Sentry.captureMessage(textController.value.text, withScope: (scope) { + Sentry.captureMessage("""Contact Info: ${contactController.value.text} + +Message: + +${textController.value.text}""", withScope: (scope) { scope.setTag("ManualLogSubmit", true.toString()); }).then((value) { _setState(() {