📋 feat: In-app Questionnaire Popup and Management Endpoints - #15780
Open
kenzaelk98 wants to merge 4 commits into
Open
kenzaelk98 wants to merge 4 commits into
kenzaelk98 wants to merge 4 commits into
Conversation
Contributor
|
👋 Thanks for the contribution! LibreChat merges all changes into Nothing is needed from you; your commits, reviews and discussion are unchanged. If the diff now shows files you did not touch, rebase onto git remote add upstream https://github.com/danny-avila/LibreChat.git
git fetch upstream dev
git rebase upstream/dev
git push --force-with-leaseMaintainers: apply the |
11 tasks
This branch has not been deployed
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.
Summary
Adds an optional in-app questionnaire modal plus server-side management (admin API + CLI), so operators can run feedback rounds.
Related: #14643
Behavior
dismissibleis enabled).repromptIntervalHours, or permanent dismiss when that field isnull.Configurable options
dismissible(defaulttrue): show/hide dismiss (“Maybe later”). Whenfalse, users must complete (or wait for the display window to end).repromptIntervalHours: positive hours to snooze after dismiss, ornullfor permanent dismiss.showConfetti(defaulttrue): confetti animation on submit only. OptionalthankYouMessagecan include any emoji/copy; if omitted, a default thank-you string is used.What’s included
/api/questionnaire) + admin API (/api/admin/questionnaires)read:questionnaires/manage:questionnairesnpm run update-questionnaire/delete-questionnaireconfig/questionnaire.example.jsonFollow-up
I opened a separate PR against LibreChat-AI/admin-panel for the admin UI to manage questionnaires (depends on the admin API in this PR). Here: LibreChat-AI/admin-panel#144
Screenshots
Example Modal (questions)


Example Dismiss toast (snooze)

Example Completion (with confetti)

Change Type
Documentation
Happy to add docs (similar to banner CLI usage) in a follow-up if wanted. This PR includes
config/questionnaire.example.jsonand CLI usage in the description for now.Test plan
upstream/dev; install; build changed packages/client as needednpm run update-questionnaire -- --file=config/questionnaire.example.json(optionally--status=active)showConfetti: trueshowConfetti: false+ emoji inthankYouMessage→ message/emoji only, no confettirepromptIntervalHours: 48→ toast about 2 days; no re-show until intervalrepromptIntervalHours: null→ permanent dismiss toast; no re-showdismissible: false→ no dismiss controlHappy to add focused unit tests (validation / dismiss rules) in a follow-up if preferred.
Checklist