Repository navigation
feat: pad building blocks (toolbar, popup, settings, user list, chat) - #18
Conversation
- ep-toolbar / ep-toolbar-button / ep-toolbar-separator: roving tabindex, toggle and badge buttons, ep-toolbar-action, compact mode that moves priority="low" items into an overflow row - ep-avatar: initials or picture, readable text colour, status dot - ep-user-list: own entry with name field and colour button, others sorted; rename / colour / select events - ep-chat-panel: messages via property or slot, stays at the bottom, keeps position when older messages are prepended, Enter sends - ep-popup: non-modal panel below an anchor, Escape / outside click, focus handling, bottom sheet on narrow screens - ep-settings-section / ep-settings-row, ep-segmented - author colours are validated before they reach a style attribute (styleMap writes the first render as a string) - story Pad/Layout shows the parts together Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012RMvvMtnCwj6ycD9fwLYVu
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoAdd composable pad toolbar, popup, user list, and chat components
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
- chat: keeps the first visible message in place on any content change while scrolled up (rebuilt entries, slotted prepends, loading row); load-more re-arms when messages arrive; empty label follows slotted messages - user list: rename baseline only changes with the own name - popup: clamped to the viewport for both alignments; closing via the open property also emits ep-popup-close and returns focus - settings row: disabled rows disable their control; row labels follow label changes (marked with data-ep-row-label) and reach ep-segmented - segmented: disabled blocks keyboard; ArrowLeft without selection goes to the last option - toolbar: items whose priority changes leave the overflow row; "more" is part of the roving order in compact mode Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012RMvvMtnCwj6ycD9fwLYVu
Step 3: the parts the pad, timeslider and sheet pages are made of. Like the existing components they only read theme tokens, so colibris stays the default and etherpad-go can put its own theme on top.
New components
ep-toolbar,ep-toolbar-button,ep-toolbar-separatorend.aria-pressed) or show a badge;ep-toolbar-actioncarries{ key, pressed }.breakpointthe toolbar turns compact and movespriority="low"items into an overflow row behind a "more" button.ep-avatar: initials or a picture. Text colour follows the background contrast, with an optional status dot.ep-user-listep-user-rename,ep-user-color-request,ep-user-select.ep-chat-panel.messagesor as slottedep-chat-messageelements.has-more→ep-chat-load-more).readonlyhides the input.ep-popuppersistent). Focus moves in on open and back to the anchor on close.ep-settings-section/ep-settings-row: label and description on the left, control on the right. Clicking the label toggles a checkbox, and the row gives the control its accessible name.ep-segmented: radio-group style switch (for example light/dark).Changes to existing components
ep-checkbox:accessible-namefor rows without a visible label.focus()now reaches the inner input.safeColor) before they reach astyleattribute. Lit'sstyleMapwrites the first render as a plain string, so a colour likered;background:url(…)from another user got through inep-chat-messageandep-user-badge.Tests
Generated by Claude Code