Implement feedback actions

CopySystemSpecsIntoClipboard
RequestFeature
FileBugReport
This commit is contained in:
Joseph T. Lyons
2023-12-05 15:48:41 -05:00
parent a80b145d0d
commit 78e1c0f9c3
8 changed files with 144 additions and 151 deletions
+10 -10
View File
@@ -33,16 +33,16 @@ actions!(GiveFeedback, SubmitFeedback);
// });
// }
#[derive(Serialize)]
struct FeedbackRequestBody<'a> {
feedback_text: &'a str,
email: Option<String>,
metrics_id: Option<Arc<str>>,
installation_id: Option<Arc<str>>,
system_specs: SystemSpecs,
is_staff: bool,
token: &'a str,
}
// #[derive(Serialize)]
// struct FeedbackRequestBody<'a> {
// feedback_text: &'a str,
// email: Option<String>,
// metrics_id: Option<Arc<str>>,
// installation_id: Option<Arc<str>>,
// system_specs: SystemSpecs,
// is_staff: bool,
// token: &'a str,
// }
// #[derive(Clone)]
// pub(crate) struct FeedbackEditor {