Conversation
|
| Filename | Overview |
|---|---|
| ui/dockwidget/local_first_shell.py | Single-line change: "ready" tone font_weight lowered from "600" to "500", matching the "available" tone and leaving "current" as the sole bold (700) item. |
| tests/test_local_first_shell.py | Adds assertIn("font-weight: 500", data_item.styleSheet()) for the "ready" state; the complementary assertion that the current item carries font-weight: 700 is absent. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[_nav_tone] -->|page_state.current| B["tone = 'current'"]
A -->|page_state.ready| C["tone = 'ready'"]
A -->|otherwise| D["tone = 'available'"]
B --> E["font-weight: 700\nbackground: COLOR_TITLE_BAR\ncolor: COLOR_TEXT"]
C --> F["font-weight: 500 ← changed from 600\nbackground: transparent\ncolor: COLOR_TEXT"]
D --> G["font-weight: 500\nbackground: transparent\ncolor: COLOR_MUTED"]
Reviews (1): Last reviewed commit: "Make nav bolding current-only" | Re-trigger Greptile
| self.assertTrue(data_item.property("ready")) | ||
| self.assertEqual(data_item.property("navTone"), "ready") | ||
| self.assertIn("font-weight: 500", data_item.styleSheet()) | ||
| self.assertTrue(map_item.property("current")) | ||
| self.assertEqual(map_item.property("navTone"), "current") |
There was a problem hiding this comment.
The new assertion validates that the ready state drops to
font-weight: 500, but there is no matching assertion that the current (map_item) state still carries font-weight: 700. Without it, a future accidental change to the current tone's weight would go undetected by this test.
| self.assertTrue(data_item.property("ready")) | |
| self.assertEqual(data_item.property("navTone"), "ready") | |
| self.assertIn("font-weight: 500", data_item.styleSheet()) | |
| self.assertTrue(map_item.property("current")) | |
| self.assertEqual(map_item.property("navTone"), "current") | |
| self.assertTrue(data_item.property("ready")) | |
| self.assertEqual(data_item.property("navTone"), "ready") | |
| self.assertIn("font-weight: 500", data_item.styleSheet()) | |
| self.assertTrue(map_item.property("current")) | |
| self.assertEqual(map_item.property("navTone"), "current") | |
| self.assertIn("font-weight: 700", map_item.styleSheet()) |
There was a problem hiding this comment.
Thanks — agreed. Added the symmetric assertion that the current navigation item keeps font-weight: 700, alongside the ready item's font-weight: 500 assertion.
Re-ran:
python3 -m pytest tests/test_local_first_shell.py -qpython3 -m pytest tests/ -x -q --tb=short
|



Summary
Tests
python3 -m pytest tests/test_local_first_shell.py -qpython3 -m pytest tests/ -x -q --tb=shortLocal validation