Repository navigation
feat: Surveys 2.0 - #168
Open
boehlerlukas wants to merge 7 commits into
Open
boehlerlukas wants to merge 7 commits into
boehlerlukas wants to merge 7 commits into
Conversation
…ort, inline page) Card: 348px corner popover with 18px radius and enter animation; on phones a bottom sheet with handle, scrim and safe-area inset. Full: covers the viewport, the messenger draws the background and close button. Page: inline frame in a host container that follows the survey's height. Card and page surveys stay invisible until the messenger reports their height. Safe-area insets are sent to the messenger (survey-safe-area). Reduced motion respected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ner, resume) Legacy format strings keep working. start-survey keeps `format` as the messenger app mode (survey | survey_full | survey_web | survey_page) and adds surveyFormat, fields, personalToken, resume, outboundAction and safeArea. showSurvey before the session is ready opens once it is; an inline survey page is never replaced by a triggered survey. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Handles the messenger's survey-legacy (back to the pre-2.0 card / centred full-screen chrome) and survey-shown / survey-answered / survey-completed / survey-closed, exposed as SDK events (typed in index.d.ts). survey-shown now comes from the messenger only; outbound-sent stays on notify-event. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…takes keyboard focus when shown by a trigger Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Surveys 2.0:
showSurveyoptions and new survey framesGleap.showSurvey(id, formatOrOptions): the old strings still work. The options are{ format: 'card'|'full'|'page', fields, personalToken, container, resume }. A call made before the session is ready now waits for it.resume,resumeDataandoutboundActionto the Messenger-App.survey-legacy, the frame switches back to the old look.survey-shown,survey-answered,survey-completed,survey-closed(typed inindex.d.ts).outbound-sentis unchanged.survey-embed.js(about 3 KB):<div data-gleap-survey data-api-key data-mode="inline|popup|tab">.Verified: jest 505/505,
npm run build, visual harness, and a full end-to-end run.Build output is not committed; it ships with the next version commit. The survey page and embed need this release on
sdk.gleap.io/latest.Design: https://claude.ai/artifact/AnPuqYBjvmVxxgxHozHfi1 · Contract:
SURVEYS_V2_SPEC.md(Gleap workspace)Surveys 2.0 PRs (merge/deploy order: Server → Messenger-App → Frontend → JavaScript-SDK release → HelpCenterApp → MCP-server → docs):
🤖 Generated with Claude Code