* Filter and sort requests: exclude background tasks, sort descending by id. * Mirrors app.js `computed.requests`.
(rawRequests)
| 75 | * Mirrors app.js `computed.requests`. |
| 76 | */ |
| 77 | function processRequests(rawRequests) { |
| 78 | const rows = Array.isArray(rawRequests) ? rawRequests : []; |
| 79 | return rows |
| 80 | .filter((req) => req.source !== 'background') |
| 81 | .slice() |
| 82 | .sort((a, b) => String(b.id || '').localeCompare(String(a.id || ''))); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Transmission method → display string. |