Closed Bug 1925090 Opened 4 months ago Closed 1 month ago

[WebCompat Reporter] Integrate the success behaviour after submitting the report

Categories

(Fenix :: General, task, P1)

All
Android
task

Tracking

(firefox136 fixed)

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: 007, Assigned: npoon)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [fxdroid][group4] )

Attachments

(2 files)

Create a Middleware for firing off the report ping.

After a successful ping, the screen should be navigated away and a Snackbar should be displayed "for 20s or until the Snackbar is dismissed".

Figma

Depends on: 1925099
Depends on: 1927885
No longer depends on: 1917267
Summary: [WebCompat Reporter] Integrate the Glean API/Metric for submitting the report → [WebCompat Reporter] Integrate the success behaviour after submitting the report

The middleware for firing off the report ping has been created in Bug 1925088. This ticket should now implement both the success and failure cases after report submission. The success Snackbar should be displayed "for 20s or until the Snackbar is dismissed". We know that in the failure case, we want an error snackbar but we are still awaiting details about the snackbar message and its duration and navigation behaviour

Summary: [WebCompat Reporter] Integrate the success behaviour after submitting the report → [WebCompat Reporter] Integrate the success and failure behaviours after submitting the report
Depends on: 1925088
Severity: -- → N/A
Assignee: nobody → npoon
Status: NEW → ASSIGNED

After discussing with desktop engineers and UX, it was discovered that there is no failure scenario. The getWebCompatInfo API from GV requires no internet connection. Thus, if there is no internet connection, we will still be able to collect everything required and submit to Glean. Internally, Glean will handle storing the report until the user comes back online, and subsequently submit the report. Also, if the call to GV fails, we will just submit the form data to Glean (and no failure case is necessary). Updating the title to reflect this

Summary: [WebCompat Reporter] Integrate the success and failure behaviours after submitting the report → [WebCompat Reporter] Integrate the success behaviour after submitting the report
Attachment #9442016 - Attachment description: Bug 1925090 - [WebCompat Reporter] Display a snackbar after submitting the report → Bug 1925090 - Part 2: [WebCompat Reporter] Display a snackbar after submitting the report
Blocks: 1938263
Pushed by npoon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/63ba6601c300 Part 1: Support the ability to pass custom durations to Snackbars r=android-reviewers,007 https://hg.mozilla.org/integration/autoland/rev/410c6d92358d Part 2: [WebCompat Reporter] Display a snackbar after submitting the report r=android-reviewers,007
Regressions: 1940353
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: