Repository navigation
v1.39.0: One rail everywhere
·
35 commits
to main
since this release
One rail everywhere: the chat's history is now an AppSidebar, with the same shell, sizes, side panel and phone drawer as an app's rail. ThreadHistory is new, PromptSuggestions gains a numbered list, and Composer can go glass. Nothing is removed and no prop has moved, but the built-in chat rail is drawn by different components, so read Before you upgrade if you style it.
Before you upgrade
- The built-in chat rail is AppSidebar. With
threadson, ChatWidget's rail is an AppSidebar around a ThreadHistory, so CSS written againstds-thread-panel__*inside the widget no longer matches: targetds-app-sidebar__*andds-thread-history__*instead. A customthreadsrender prop keeps the old rail and sheet unchanged. - A narrow chat opens its history as a drawer. Below the rail threshold the header's menu button opens AppSidebar's drawer over the widget, focus trapped, with the history as its first level, in place of the glass sheet. Escape closes the drawer and leaves a docked ChatLauncher open.
- Five themes colour the sent bubble. Zest, Getaway, Blueprint, Velvet and Bubblegum fill the sent message bubble from their action colour; the rest keep their neutral bubble. Forest's corners are tighter, closer to Smoke's.
New
- ThreadHistory, the rows of a chat history as a component of their own: labelled groups, a status dot, a description line, the pin, a time, a row menu revealed on hover or focus (always shown on touch) and inline rename. It renders from a Server Component and is fully controlled.
- AppSidebar sections can hold anything. A section takes
content(a node, or a function of the rail's state) drawn under its rows and folding with the rail, anactionbutton in its heading, and anid. Items takekeysfor a shortcut hint, and the sidebar takeskeyLabels. - AppSidebar folding sections.
collapsibleSections, withcollapsedSections,defaultCollapsedSectionsandonCollapsedSectionsChange, lets a reader fold each titled section under a chevron. Off by default. - AppSidebar sized by its host.
responsivepicks the form:viewport(the default),container(measured from its parent), orrailanddrawerwhen the host decides.drawerOpen,defaultDrawerOpenandonDrawerOpenChangeown the drawer,collapsibleturns the collapse off, andfoldForPanelfolds the rail to icons when the side panel would leave too little room. - AppSidebar's profile takes an
avatarnode; the email line and the more button appear only when given. - AppLayout takes
sidebarProps, passed through to its AppSidebar. - ChatThreads (the built-in rail's props, through
threadsProps) takessectionsafter the history (such as an Appearance section that opens in the side panel),drawerTopEntries,drawerBottomEntries,footerAction,railLabel,railLabels, and the folded-sections trio. - ThreadPanel takes
footerAction, and a group takes anid. - DrillMenu sections take
content, drawn after their rows. - PromptSuggestions gains a numbered
listlayout (rows with a label and description, the digits 1 to 9 picking one outside a text field) and atitleline over the set. - Composer takes
glass, a glass fill over a blur for a busy ground; ChatWidget passes it ascomposerGlass.
Fixed
- AppSidebar's top slot never shrinks, so an EntitySwitcher in a crowded collapsed rail is no longer clipped.
- Sidebar and side-panel scrollbars stay hidden until the rail scrolls.
- ShaderScene's sky scene has no land: its horizon sits under the frame.
npm install rift-ds@1.39.0