Closed Bug 1840139 Opened 1 year ago Closed 1 year ago

Create error component

Categories

(Firefox :: Shopping, task, P2)

task

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: jhirsch, Assigned: niklas, NeedInfo)

References

Details

(Whiteboard: [fidefe-shopping])

Attachments

(2 files)

When the backend is unreachable, we want to show an error component at the top of the sidebar.

There's a button in the designs but it's not clear how often we want users to be able to attempt to ping the backend if it's struggling (TBD)

Figma link: https://www.figma.com/file/Wu4kaHSfKSQnzkym7qek3R/Shopping-Experience-MVP?type=design&node-id=1-265&mode=design&t=ju5kpYU0FsL9ZVXf-0

See also a11y annotations in figma: https://www.figma.com/file/Wu4kaHSfKSQnzkym7qek3R/Shopping-Experience-MVP?type=design&node-id=1-265&mode=design&t=s4GFkPNxsyXbFQRZ-0

Whiteboard: [fidefe-shopping]
No longer blocks: 1840156
Summary: Error component → Create error component
Blocks: 1840180
No longer blocks: shopping2023

Setting P3 for now, as this is currently unassigned.

Severity: -- → N/A
Priority: -- → P3
Severity: N/A → S3
Priority: P3 → P2
Assignee: nobody → nbaumgardner
Status: NEW → ASSIGNED
Pushed by nbaumgardner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7ebfd2e7a63a Create generic error shopping card. r=shopping-reviewers,fluent-reviewers,flod,Gijs
Pushed by nbaumgardner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/54ff3fcb5561 Create generic error shopping card. r=shopping-reviewers,fluent-reviewers,flod,Gijs

Backed out for causing failures on browser_adjusted_rating.js

[task 2023-08-01T21:48:57.379Z] 21:48:57     INFO - TEST-START | browser/components/shopping/tests/browser/browser_adjusted_rating.js
[task 2023-08-01T21:48:57.614Z] 21:48:57     INFO - GECKO(3541) | [Parent 3541: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7faacf385000 == 6 [pid = 3541] [id = 5]
[task 2023-08-01T21:48:57.616Z] 21:48:57     INFO - GECKO(3541) | [Parent 3541: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 13 (7faad8734f20) [pid = 3541] [serial = 13] [outer = 0]
[task 2023-08-01T21:48:57.618Z] 21:48:57     INFO - GECKO(3541) | [Parent 3541: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 14 (7faad2e9d000) [pid = 3541] [serial = 14] [outer = 7faad8734f20]
[task 2023-08-01T21:48:57.707Z] 21:48:57     INFO - GECKO(3541) | [Parent 3541: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 15 (7fab0515ec00) [pid = 3541] [serial = 15] [outer = 7faad8734f20]
[task 2023-08-01T21:48:57.741Z] 21:48:57     INFO - GECKO(3541) | [Parent 3541, Main Thread] WARNING: Failed to retarget HTML data delivery to the parser thread.: file /builds/worker/checkouts/gecko/parser/html/nsHtml5StreamParser.cpp:1235
[task 2023-08-01T21:48:58.174Z] 21:48:58     INFO - GECKO(3541) | [Parent 3541, Main Thread] WARNING: '!inner', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorProtocol.cpp:163
[task 2023-08-01T21:48:58.176Z] 21:48:58     INFO - GECKO(3541) | [Parent 3541, Main Thread] WARNING: '!inner', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorProtocol.cpp:163
[task 2023-08-01T21:48:58.190Z] 21:48:58     INFO - TEST-INFO | started process screentopng
[task 2023-08-01T21:48:58.655Z] 21:48:58     INFO - TEST-INFO | screentopng: exit 0
[task 2023-08-01T21:48:58.655Z] 21:48:58     INFO - Buffered messages logged at 21:48:57
[task 2023-08-01T21:48:58.655Z] 21:48:58     INFO - Entering test bound test_adjusted_rating
[task 2023-08-01T21:48:58.656Z] 21:48:58     INFO - Buffered messages finished
[task 2023-08-01T21:48:58.657Z] 21:48:58     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_adjusted_rating.js | Uncaught exception in test bound test_adjusted_rating - at chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_adjusted_rating.js:21 - TypeError: can't access property "updateComplete", adjustedRating is null
[task 2023-08-01T21:48:58.657Z] 21:48:58     INFO - Stack trace:
[task 2023-08-01T21:48:58.658Z] 21:48:58     INFO - test_adjusted_rating/<@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_adjusted_rating.js:21:7
[task 2023-08-01T21:48:58.658Z] 21:48:58     INFO - async*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:146:22
[task 2023-08-01T21:48:58.658Z] 21:48:58     INFO - async*test_adjusted_rating@chrome://mochitests/content/browser/browser/components/shopping/tests/browser/browser_adjusted_rating.js:7:26
[task 2023-08-01T21:48:58.658Z] 21:48:58     INFO - handleTask@chrome://mochikit/content/browser-test.js:1131:26
[task 2023-08-01T21:48:58.659Z] 21:48:58     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18
[task 2023-08-01T21:48:58.659Z] 21:48:58     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2023-08-01T21:48:58.659Z] 21:48:58     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2023-08-01T21:48:58.659Z] 21:48:58     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2023-08-01T21:48:58.659Z] 21:48:58     INFO - Leaving test bound test_adjusted_rating
Pushed by nbaumgardner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d3afebcd350c Create generic error shopping card. r=shopping-reviewers,fluent-reviewers,flod,Gijs
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch

Hi @Jared, is there a way for us to trigger this error ?

Flags: needinfo?(jhirsch)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: