Skip to content

NEW Add in-context userdocs panel - #48

Open
ChloeSartorelli wants to merge 1 commit into
silverstripe:1from
creative-commoners:pulls/1/in-context-panel
Open

ChloeSartorelli wants to merge 1 commit into
silverstripe:1from
creative-commoners:pulls/1/in-context-panel

Conversation

@ChloeSartorelli

@ChloeSartorelli ChloeSartorelli commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Important

Needs #49 merged first.

Note that we can't add a behat test for this yet, as there are no docs by default yet. Once some default docs are added to the admin module we'll add behat tests.

This panel displays userdocs for the model being edited in a given form in the CMS. Sections with no specific form or model will be handled in separate issues.

Modal vs not-modal

Regarding this acceptance criterion:

Ideally the rest of the CMS can still be used while the panel is open. A modal panel is acceptable if that is considerably simpler

Note that the design prefers the modal panel (i.e. the rest of the CMS is greyed out and inaccessible). That's probably better than the current situation where the rest of the CMS can be used, because some content is hidden behind the panel.

I'm thinking about adding a >> button to collapse the panel (similar to what the left menu has), keeping on the current page, so that users can collapse and expand the panel without needing to re-navigate like they would with the current "it's either open or closed" behaviour. It's either that or implement the modal-like functionality - or both, but collapsing the panel deactivates the modal so you can interact with the CMS. I'll leave that decision up to the reviewer.

Deviations from the design

  • No "about" with icon at the top of rendered docs. It just doesn't seem necessary or helpful.
  • Replace "about" button with a simple icon button that matches the user docs menu icon. Doesn't stand out as much and IMO reads better as an indicator it's gonna open the docs.
  • Add "back" button for when navigating through doc pages
  • Add "back to start" button after multiple navigations to get back to the main docs page for the section
  • Content not greyed out (see note above about modals)

Issue

@emteknetnz emteknetnz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing tests

This panel displays userdocs for the model being edited in a given form
in the CMS. Sections with no specific form or model will be handled in a
separate commit.
@ChloeSartorelli
ChloeSartorelli force-pushed the pulls/1/in-context-panel branch from f94ec7d to e8a51f5 Compare December 1, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants