Commit c220483
committed
fix(web): stop sticky-merging sidebar summary pending flags
The sidebar was stickily preserving the previous hasPendingApprovals /
hasPendingUserInput / hasActionableProposedPlan flags across every
thread-upserted shell event. This was defensive code from the era when
the shell listing snapshot always reported these flags as false and
relied on detail events to correct them.
After upstream f7fa62a (shell snapshot queries), the server projection
tracks pending_approval_count / pending_user_input_count /
has_actionable_proposed_plan in SQL and updates them in the same
transaction as the corresponding domain event. Every thread-aggregate
event emits a fresh thread-upserted shell event derived from the updated
projection — so the shell event's flags are the authoritative truth.
Keeping the sticky merge caused a ghost "Pending Approval" indicator to
linger in the sidebar forever on threads whose approval had long since
been resolved.
Update the regression tests to reflect the new authority: the shell
event wins. Detail events can still flip flags to true; shell events
can now flip them back to false.1 parent 069b0e8 commit c220483
2 files changed
Lines changed: 19 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
1345 | | - | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1346 | 1358 | | |
1347 | 1359 | | |
1348 | 1360 | | |
| |||
1374 | 1386 | | |
1375 | 1387 | | |
1376 | 1388 | | |
1377 | | - | |
| 1389 | + | |
1378 | 1390 | | |
1379 | 1391 | | |
1380 | 1392 | | |
| |||
1424 | 1436 | | |
1425 | 1437 | | |
1426 | 1438 | | |
1427 | | - | |
1428 | | - | |
| 1439 | + | |
1429 | 1440 | | |
1430 | 1441 | | |
1431 | | - | |
| 1442 | + | |
1432 | 1443 | | |
1433 | 1444 | | |
1434 | 1445 | | |
| |||
1470 | 1481 | | |
1471 | 1482 | | |
1472 | 1483 | | |
1473 | | - | |
1474 | | - | |
| 1484 | + | |
1475 | 1485 | | |
1476 | 1486 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
| 802 | + | |
812 | 803 | | |
813 | 804 | | |
814 | 805 | | |
815 | 806 | | |
816 | | - | |
| 807 | + | |
817 | 808 | | |
818 | 809 | | |
819 | 810 | | |
| |||
0 commit comments