Add collapsible interactive dialog demo with borderless and collapsed options#213
Add collapsible interactive dialog demo with borderless and collapsed options#213krd311 wants to merge 8 commits into
Conversation
…s will enable Mattermost to show expandable elements in an interactive dialog.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
Adds a new /dialog collapsible demo path to the Mattermost demo plugin, showcasing the new collapsible Interactive Dialog element type (including nested sections, default-collapsed sections, and borderless sections). This complements the corresponding server/webapp feature work by providing a practical reference dialog.
Changes:
- Added a new dialog sample (
getDialogWithCollapsibleElements) demonstrating collapsible sections nested up to 3 levels, includingCollapsedandBorderlessvariants. - Extended
/dialoghelp text and autocomplete to include the newcollapsiblesubcommand. - Wired the new subcommand into the
/dialogcommand handler to open the new sample dialog.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| server/dialog_samples.go | Adds a new dialog definition that demonstrates collapsible dialog sections and nested child fields. |
| server/command_hooks.go | Adds the /dialog collapsible help/autocomplete entry and routes the new subcommand to open the collapsible demo dialog. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. 💤 Files selected but had no reviewable changes (1)
⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThis change adds a new ChangesCollapsible Dialog Feature
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/update-branch |
|
Error trying to update the PR. |
|
/update-branch |
|
Error trying to update the PR. |
|
Looks like I'm having an issue getting the build to pass due to the Elements, Collapsed, and Borderless fields I added to the model. Does anyone have any suggestions for this? |
Summary
Adds a /dialog collapsible slash command to the demo plugin that opens an Interactive Dialog showcasing collapsible sections — a new DialogElement type that groups child fields under an expand/collapse toggle. This serves as the reference/demo counterpart to the server + webapp changes that introduce the feature.
Ticket Link
https://mattermost.atlassian.net/browse/MM-69315