Skip to content

Beacon table: fixed-width aligned columns, strongest signal on top - #7

Merged
jappeace merged 5 commits into
jappeace:masterfrom
jappeace-sloth:feat/row-color-and-page-skip
Jul 14, 2026
Merged

jappeace merged 5 commits into
jappeace:masterfrom
jappeace-sloth:feat/row-color-and-page-skip

Conversation

@jappeace-sloth

Copy link
Copy Markdown

The table work that landed on this branch after #6 merged (its commits were orphaned by the merge timing; this PR carries them):

  • The beacon list is an actual table: header row plus one row per beacon with serial (MAC's low three hex bytes, stable for renamed beacons), bare RSSI, bare battery, the device's rate (exact once configured, ~estimate while observed, ? before a measurement) and status.
  • Serial, RSSI, battery and rate columns share fixed widths between the header and every row via hatter's new wsWidth (Add wsWidth: a fixed-width style property through all bridges hatter#246, resolving #245, built for this feature); a test walks the rendered widths and asserts each row's columns equal the header's.
  • Rows sort by RSSI, strongest on top; the sort test uses a three-beacon ordering that fails both the no-sort and reversed-list mutants (both verified).

Pins hatter at the #246 branch head; repoint to master after #246 merges. Merge order: hatter#246, then this.

🤖 Generated with Claude Code

jappeace-sloth and others added 5 commits July 14, 2026 19:21
- Columns: serial (the MAC's low three hex bytes, the same digits
  factory names carry, so renamed beacons show a stable serial too),
  bare RSSI, bare battery, the device's rate, and status. Each cell
  is its own node, colored by the rate verdict; a header row labels
  the columns.
- The rate column shows the exact period once the beacon was
  configured, the measured estimate (tilde) while only observed, and
  "?" until a second advertisement gives a measurement.
- Rows sort by RSSI, strongest on top (sabotage-verified: insertion
  order fails the new sort test).

Prompt: okay this is better, can you make an actual table out of it,
show just the serial number (no kbeaconpro prefix), rssi (just
number), battery (just number), and th econfigured ping rate (not
shown currently), and can you make it a table?, sort highest rssi on
top

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Review gate finding: inserting weak-then-strong made the prepend
accumulator coincidentally sorted, so dropping the sort entirely
passed. Three beacons inserted middle, strong, weak make the raw
list, its reverse, and only the RSSI sort distinguishable; both the
no-sort and reverse mutants now fail the test (verified).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
hatter #246 adds the fixed-width style property #245 asked for; the
serial, RSSI, battery and rate columns share fixed widths between
the header and every row (the status column stays content-sized),
and the " | " separators go away. A new test walks the rendered
widths and asserts each row's columns equal the header's.

Pin moves to the hatter PR branch; repoint after #246 merges.

Prompt: just go implement this too if you need it for my request:
jappeace/hatter#245 the point of this ota
app is alos to sorta fuzz hatter for obviously missing features

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The wsWidth style property landed on jappeace/hatter master, so the
pin moves off the jappeace-sloth feature branch. All 67 tests pass
against the new pin.

Prompt: okay merged the hatter one

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jappeace
jappeace merged commit c9a4f15 into jappeace:master Jul 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants