Skip to content

DOCS-1162 - Algolia Ask AI demo#6420

Open
kimsauce wants to merge 65 commits into
mainfrom
staging/algolia-ask-ai
Open

DOCS-1162 - Algolia Ask AI demo#6420
kimsauce wants to merge 65 commits into
mainfrom
staging/algolia-ask-ai

Conversation

@kimsauce

@kimsauce kimsauce commented Mar 14, 2026

Copy link
Copy Markdown
Collaborator

Purpose of this pull request

Algolia Ask AI staging site for UAT

Adds the Ask AI sidepanel and navbar button to the Sumo Logic docs site, wired to Algolia's Ask AI. Includes full UI polish and search integration:

Search-to-sidepanel handoff

  • Pressing Enter in the top nav DocSearch bar routes the query directly to the Ask AI sidepanel
  • Clicking the native Ask AI option in the DocSearch dropdown also opens the sidepanel with that query
  • Simplified handoff logic — removed custom button injection in favor of native option click routing

Sidepanel header actions

  • Replaced the dropdown with two dedicated icon buttons: New Conversation and Conversation History
  • New Conversation auto-focuses the prompt textarea after clearing
  • Conversation History toggles the history panel; clicking it again while history is open returns to the chat

Input UX

  • Auto-expanding textarea — grows as you type (up to 200px), then scrolls
  • Scrollbar restored at right edge with absolutely-positioned submit button so textarea fills full width
  • Narrowed right padding from 44px to 36px

Visual polish

  • Bolder sparkle icon — stroke width 1.3 → 2, size 14×14 → 16×16
  • Softer dark mode placeholder color — bright white → muted gray (#7f8497)
  • Smaller intro text — .85rem to match Algolia's sizing

Select the type of change

  • Minor Changes - Typos, formatting, slight revisions
  • Update Content - Revisions, updating sections
  • New Content - New features, sections, pages, tutorials
  • Site and Tools - .clabot, version updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

Ticket (if applicable)

https://sumologic.atlassian.net/browse/DOCS-1162

@kimsauce kimsauce self-assigned this Mar 14, 2026
@cla-bot cla-bot Bot added the cla-signed Contributor approved, listed in .clabot file label Mar 14, 2026
@kimsauce kimsauce marked this pull request as ready for review March 15, 2026 05:55
…dark mode tweaks

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…improvements

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
kimsauce and others added 4 commits June 16, 2026 02:45
…improvements

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ict, keep Enter-to-sidepanel handler

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…om button injection

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Intercepts Algolia's like/dislike buttons to open a custom modal that
collects free-text feedback before the vote is recorded. On submit,
details are POSTed to a Google Form (no-cors) and a browser event
`ask-ai-feedback-submitted` is dispatched for additional integrations.
Algolia's native thumbs vote still registers after submission.

- Adds feedbackFormUrl to customFields in docusaurus.config.js
- Modal captures question + answer context alongside the written details
- Escape key and backdrop click dismiss without submitting
- Success toast auto-dismisses after 3 s; inline error shown on failure
- Full dark mode and mobile responsive styles

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kimsauce kimsauce requested a review from jpipkin1 June 27, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed Contributor approved, listed in .clabot file doc:site tech Site/tool maintenance, dependencies, updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants