Skip to content

Consider embeddable Assistant 'closeButton' behavior consistent with Gitbook's own Assistant implementation #4081

Description

@sfmcintyre

Description

When configuring closeButton: true via the Node.js embeddable Assistant package, the embedded assistant gets an 'X (Close)' icon in the sidebar in the bottom-left of the assistant, as described in this README.md (though missing in the public docs). With an otherwise-empty side-bar (no tabs, no actions), this populates a side-bar with only an 'X (Close)' button, uses ~60px of space

On the Gitbook docs site, the Assistant launches with an 'X (Close)' button in the top right, near the '[Trash can] (Clear conversation)' button, if you have chat content. This seems like an ideal UI, and what I assumed closeButton: true configuration would enable.

Any chance y'all would consider moving the embeddable Assistant behavior (Node.js/React/etc) to mirror the internal Gitbook assisant, with a top-right-aligned 'X (Close)' button for closeButton: true configurations?

Screenshots

  • My embedded Node.js instance
Image
  • Gitbook's instance
Image

How to reproduce

  1. Basic Node.js setup, using gitbook = createGitbook(...) => frame = gitbook.createFrame(...) => frame.configure({ ..., closeButton: true })
  2. Open assistant, with 'X (Close)' in bottom left, on a left-aligned side-bar

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions