Skip to content

The build chip is glyph-only — one label was misaligning a row of eight icons - #2053

Merged
rbuergi merged 1 commit into
mainfrom
fix/header-chip-icon-only
Aug 22, 2026
Merged

The build chip is glyph-only — one label was misaligning a row of eight icons#2053
rbuergi merged 1 commit into
mainfrom
fix/header-chip-icon-only

Conversation

@rbuergi

@rbuergi rbuergi commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

The header strip is icon buttons: each sibling is a FluentButton wrapping exactly one FluentIcon. The build chip was the same except it also rendered Last deployed 08-21 22:16 — which made it wider than its siblings and pushed its own glyph off their shared centre line.

Both reported symptoms — the visible text, and one icon sitting at a different height — are that single difference.

The text is removed, not hidden

A media query already dropped it below 720px:

@media (max-width: 720px) { .platform-build-chip__deployed { display: none; } }

So the narrow layout was the intended one all along. It just never applied at the width people actually use.

🚨 The deployment time had to move, not go

Describe's idle tooltip was version · instance and carried no time at all. Deleting the label would have lost "when was this deployed?" entirely — which the type's own documentation calls the question people actually bring to it:

"Last deployed 08-18 15:35" answers the question people actually bring to it ("is this current?")

It is now folded into every state's tooltip, including the two update-pending ones, so the single surface the chip still has says everything it has to say.

DisplayText is deleted, not left unrendered

The span was its only consumer. A record member nothing reads is a field that drifts out of agreement with what ships. Its three tests move to the tooltip and keep their reasoning intact — WHEN belongs to the reader, WHICH BUILD stays one hover away, and an unknown time is omitted rather than invented (no epoch date, no "unknown" filler).

Verification

Memex.Portal.Shared.Test 358/358, Release with -warnaserror.

🤖 Generated with Claude Code

…ht icons

The header strip is icon buttons: each sibling is a FluentButton wrapping exactly
one FluentIcon. The build chip was the same except it also rendered 'Last deployed
08-21 22:16', which made it wider than its siblings and pushed its own glyph off
their shared centre line. Both reported symptoms — visible text, and one icon
sitting at a different height — are that single difference.

The text is removed rather than hidden. A media query already dropped it below
720px, so the narrow layout was the intended one all along; it just never applied
to the width people actually use.

🚨 The deployment time had to MOVE, not go. Describe's idle tooltip was
'version · instance' and carried no time at all, so deleting the label would have
lost 'when was this deployed?' entirely — which the type's own docs call the
question people actually bring to it. It is now folded into every state's tooltip,
including the update-pending ones, so the one surface the chip still has says
everything it has to say.

DisplayText is deleted rather than left unrendered: the span was its only
consumer, and a record member nothing reads is a field that drifts. Its three
tests move to the tooltip and keep their reasoning — WHEN belongs to the reader,
WHICH BUILD stays one hover away, and an unknown time is omitted rather than
invented.

Memex.Portal.Shared.Test 358/358.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 22, 2026 08:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the platform build chip in the header strictly glyph-only to keep it visually aligned with the surrounding icon buttons, moving the “last deployed” timestamp from inline text into the tooltip across all chip states.

Changes:

  • Removed the inline “last deployed” label from the build chip view and deleted the associated styling.
  • Updated PlatformUpdateChip to drop DisplayText and always fold deployment time into the tooltip when known.
  • Adjusted unit tests to validate the deployment time behavior via Tooltip instead of DisplayText.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
test/Memex.Portal.Shared.Test/PlatformUpdateChipTest.cs Updates assertions to pin deployment-time behavior on Tooltip and removes DisplayText expectations.
memex/Memex.Portal.Shared/SelfUpdate/PlatformUpdateChipView.razor Removes inline label rendering and CSS so the chip is glyph-only.
memex/Memex.Portal.Shared/SelfUpdate/PlatformUpdateChip.cs Removes DisplayText from the record and appends deployment time into the tooltip for all states.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

// pushed its own glyph off their shared centre line — visible as one misaligned icon in a
// row of eight. Dropping the text fixes the row, so the time has to land here or it is
// simply lost, and "when was this deployed?" is the question the chip exists to answer.
var withDeployed = (string sentence) => deployed is null ? sentence : $"{sentence} {deployed}.";
@github-actions

Copy link
Copy Markdown

Test Results (shard 3)

   10 files  ±0     10 suites  ±0   4m 58s ⏱️ +2s
1 693 tests ±0  1 691 ✅ ±0  2 💤 ±0  0 ❌ ±0 
2 173 runs  ±0  2 171 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit cb1b4f9. ± Comparison against base commit 1661b86.

@github-actions

Copy link
Copy Markdown

Test Results (shard 0)

1 236 tests  ±0   1 232 ✅ ±0   12m 0s ⏱️ +35s
    9 suites ±0       4 💤 ±0 
    9 files   ±0       0 ❌ ±0 

Results for commit cb1b4f9. ± Comparison against base commit 1661b86.

@github-actions

github-actions Bot commented Aug 22, 2026

Copy link
Copy Markdown

Test Results (shard 4)

1 909 tests  ±0   1 803 ✅ +1   9m 19s ⏱️ -15s
   10 suites ±0     106 💤 ±0 
   10 files   ±0       0 ❌  - 1 

Results for commit cb1b4f9. ± Comparison against base commit 1661b86.

♻️ This comment has been updated with latest results.

@github-actions

Copy link
Copy Markdown

Test Results (shard 5)

1 217 tests  ±0   1 216 ✅ ±0   7m 10s ⏱️ -1s
   11 suites ±0       1 💤 ±0 
   11 files   ±0       0 ❌ ±0 

Results for commit cb1b4f9. ± Comparison against base commit 1661b86.

@github-actions

Copy link
Copy Markdown

Test Results (shard 2)

3 228 tests  ±0   3 228 ✅ ±0   8m 24s ⏱️ -3s
    9 suites ±0       0 💤 ±0 
    9 files   ±0       0 ❌ ±0 

Results for commit cb1b4f9. ± Comparison against base commit 1661b86.

This pull request removes 3 and adds 3 tests. Note that renamed tests count towards both.
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ DisplayText_is_null_when_the_deployment_time_is_unknown
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ DisplayText_says_when_it_was_deployed_and_names_no_version
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ DisplayText_stays_a_deployment_time_when_an_update_is_pending
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ An_unknown_deployment_time_is_omitted_rather_than_invented
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ Tooltip_says_when_it_was_deployed_and_the_bar_names_no_version
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ Tooltip_still_carries_the_deployment_time_when_an_update_is_pending

@github-actions

Copy link
Copy Markdown

Test Results (shard 1)

1 939 tests  ±0   1 746 ✅ ±0   8m 56s ⏱️ +2s
   10 suites ±0     193 💤 ±0 
   10 files   ±0       0 ❌ ±0 

Results for commit cb1b4f9. ± Comparison against base commit 1661b86.

@github-actions

github-actions Bot commented Aug 22, 2026

Copy link
Copy Markdown

Test Results

    59 files  ±0      59 suites  ±0   50m 49s ⏱️ +20s
11 222 tests ±0  10 916 ✅ +1  306 💤 ±0  0 ❌  - 1 
11 702 runs  ±0  11 396 ✅ +1  306 💤 ±0  0 ❌  - 1 

Results for commit cb1b4f9. ± Comparison against base commit 1661b86.

This pull request removes 3 and adds 3 tests. Note that renamed tests count towards both.
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ DisplayText_is_null_when_the_deployment_time_is_unknown
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ DisplayText_says_when_it_was_deployed_and_names_no_version
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ DisplayText_stays_a_deployment_time_when_an_update_is_pending
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ An_unknown_deployment_time_is_omitted_rather_than_invented
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ Tooltip_says_when_it_was_deployed_and_the_bar_names_no_version
Memex.Portal.Shared.Test.PlatformUpdateChipTest ‑ Tooltip_still_carries_the_deployment_time_when_an_update_is_pending

♻️ This comment has been updated with latest results.

@rbuergi

rbuergi commented Aug 22, 2026

Copy link
Copy Markdown
Contributor Author

Merging over a red Run tests (shard 4), with the control run rather than asserted.

The failure is MeshWeaver.AI.Test.ProbeHubCostTest.GetContentSchema_DoesNotBuildTheNodeControlPlane. This diff is one .razor file, one record and its tests, all in Memex.Portal.Shared — it cannot reach MeshWeaver.AI.Test.

That alone is not evidence, so I checked the right thing: ProbeHubCostTest fails on main itself. Across main's last six completed Build and Test runs:

run conclusion ProbeHubCost failures
32566889549 success 0
32566839566 success 0
32566457849 success 0
32564482939 success 0
32564051012 failure 2
32562019976 failure 2

Two of six, on main, with no involvement from this branch. Independently, the Expo migration PR (#2056) hit the same suite on both of its runs — a diff containing zero C# files.

Recorded on #1384, which is where the population belongs.

Local verification for this change: Memex.Portal.Shared.Test 358/358, Release with -warnaserror.

@rbuergi
rbuergi enabled auto-merge August 22, 2026 10:51
@rbuergi
rbuergi merged commit 7fd5929 into main Aug 22, 2026
39 of 41 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