Repository navigation
fix(demo): connect avatar menu in demo top app bar - #141
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
material | 5077c4f | Commit Preview URL Branch Preview URL |
Oct 05 2026, 11:41 PM |
There was a problem hiding this comment.
📋 Review Summary
This pull request adds an interactive dropdown user menu (md-menu) to the top app bar avatar profile picture in demo/index.html. It incorporates keyboard accessibility, ARIA state reflection (aria-expanded, aria-haspopup), and feedback notifications via md-snackbar upon selecting menu options.
🔍 General Feedback
- Great addition of accessibility attributes (
role="button",tabindex="0",aria-haspopup="menu", and dynamicaria-expandedtoggling) to the profile picture image. - Wiring up menu selection to trigger the existing
md-snackbarprovides pleasant and immediate interactive feedback for the user in the demo environment.
📊 Token Usage & Cost Efficiency
| Metric | Value |
|---|---|
| Input Tokens (uncached) | 6,037 |
| Input Tokens (cached) | 393,380 (⚡ 98.5% cached) |
| Thinking / Reasoning Tokens | 1,257 |
| Output Tokens | 174 |
| Total Session Tokens | 400,848 |
| Cost (uncached input) | $0.0045 |
| Cost (cached input) | $0.0295 |
| Cost (thinking / reasoning) | $0.0047 |
| Cost (response output) | $0.0007 |
| Estimated Total Cost | $0.0394 |
Gemini 3.8 Flash: introductory rate $0.75/$3.75 per 1M applied; reverts to $1.5/$7.5 after 2026-12-31.
Gemini 3.8 Flash: standard tier; batch and flex are half again, priority is higher.
Cache reads are priced here, but context-cache STORAGE, where the model charges for it separately per token-hour, is not included, so the figure can run slightly low.
Summary
#profile-pic) indemo/index.html.<md-menu>with items for Profile, My Organizations, Settings, and Sign out, anchored to the profile picture withanchor-corner="end-end"andmenu-corner="start-end".Enter,Space) handlers to toggle the user menu.role="button",tabindex="0",aria-haspopup="menu",aria-expanded) that sync with menu open/closed state.<md-snackbar>when a menu item is clicked.