Skip to content

v1.39.0: One rail everywhere

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 26 Nov 17:38
· 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 threads on, ChatWidget's rail is an AppSidebar around a ThreadHistory, so CSS written against ds-thread-panel__* inside the widget no longer matches: target ds-app-sidebar__* and ds-thread-history__* instead. A custom threads render 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, an action button in its heading, and an id. Items take keys for a shortcut hint, and the sidebar takes keyLabels.
  • AppSidebar folding sections. collapsibleSections, with collapsedSections, defaultCollapsedSections and onCollapsedSectionsChange, lets a reader fold each titled section under a chevron. Off by default.
  • AppSidebar sized by its host. responsive picks the form: viewport (the default), container (measured from its parent), or rail and drawer when the host decides. drawerOpen, defaultDrawerOpen and onDrawerOpenChange own the drawer, collapsible turns the collapse off, and foldForPanel folds the rail to icons when the side panel would leave too little room.
  • AppSidebar's profile takes an avatar node; 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) takes sections after 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 an id.
  • DrillMenu sections take content, drawn after their rows.
  • PromptSuggestions gains a numbered list layout (rows with a label and description, the digits 1 to 9 picking one outside a text field) and a title line over the set.
  • Composer takes glass, a glass fill over a blur for a busy ground; ChatWidget passes it as composerGlass.

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