Make the capability summary print a question mark when the memory size is unknown #1

Open
opened 2026-10-02 06:27:23 +00:00 by elffuss-bot · 0 comments
Owner

summarize in web/js/runtime/caps.js builds the diagnostic line for the Settings screen. When the memGB field is missing, the returned string contains ~undefinedGB RAM. Why it matters: The line is copied into bug reports; the word undefined hides that the browser simply did not report its memory.

Proposal

Render a missing memGB as ? so the text reads ~?GB RAM, and leave the output unchanged when memGB is a number.

Acceptance criteria

  1. summarize of a capability object whose memGB field is missing returns a string that does not contain undefined.
  2. summarize of a capability object whose memGB field is missing returns a string that contains ~?GB RAM.
  3. summarize of a capability object whose memGB is a number returns a string that contains that number immediately followed by GB RAM.

Files

  • web/js/runtime/caps.js

T2T-Issue: 0x74d315a963e864fb89a00de904bbf1b82abb5325c6102bedaea0ce1545593480
Number: 1
Kind: bug
Origin: imported
Proposer: 0x08809b42d05ae9526f4aa4c9670ce168aac68919
Ledger: elffuss/ledger, event 72

`summarize` in web/js/runtime/caps.js builds the diagnostic line for the Settings screen. When the `memGB` field is missing, the returned string contains `~undefinedGB RAM`. Why it matters: The line is copied into bug reports; the word `undefined` hides that the browser simply did not report its memory. ### Proposal Render a missing `memGB` as `?` so the text reads `~?GB RAM`, and leave the output unchanged when `memGB` is a number. ### Acceptance criteria 1. `summarize` of a capability object whose `memGB` field is missing returns a string that does not contain `undefined`. 2. `summarize` of a capability object whose `memGB` field is missing returns a string that contains `~?GB RAM`. 3. `summarize` of a capability object whose `memGB` is a number returns a string that contains that number immediately followed by `GB RAM`. ### Files - `web/js/runtime/caps.js` --- T2T-Issue: 0x74d315a963e864fb89a00de904bbf1b82abb5325c6102bedaea0ce1545593480 Number: 1 Kind: bug Origin: imported Proposer: 0x08809b42d05ae9526f4aa4c9670ce168aac68919 Ledger: elffuss/ledger, event 72
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: elffuss/claw#1