HTML Container documentation#460
Open
pinkevmladchy wants to merge 5 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds end-user documentation pages for the HTML Container widget across product doc trees (CE/PE/PAAS/PAAS EU) and wires the widget into site navigation/widgets index so it’s discoverable from the widget library and sidebar.
Changes:
- Introduces a full HTML Container documentation include with configuration details and 5 worked examples (Angular + Plain HTML).
- Adds thin MDX stubs for each product/doc section to render the shared include with the right
productcontext. - Registers HTML Container in the widget grid and reference sidebar under both Cards and HTML Widgets.
Reviewed changes
Copilot reviewed 11 out of 22 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/content/docs/docs/reference/widgets/html-widgets/html-container.mdx | CE stub page for HTML Widgets section pointing to the shared include. |
| src/content/docs/docs/reference/widgets/cards/html-container.mdx | CE stub page for Cards section pointing to the shared include. |
| src/content/docs/docs/pe/reference/widgets/html-widgets/html-container.mdx | PE stub page for HTML Widgets section. |
| src/content/docs/docs/pe/reference/widgets/cards/html-container.mdx | PE stub page for Cards section. |
| src/content/docs/docs/paas/reference/widgets/html-widgets/html-container.mdx | PAAS stub page for HTML Widgets section. |
| src/content/docs/docs/paas/reference/widgets/cards/html-container.mdx | PAAS stub page for Cards section. |
| src/content/docs/docs/paas/eu/reference/widgets/html-widgets/html-container.mdx | PAAS EU stub page for HTML Widgets section. |
| src/content/docs/docs/paas/eu/reference/widgets/cards/html-container.mdx | PAAS EU stub page for Cards section. |
| src/content/_includes/docs/reference/widgets/cards/html-container.mdx | Main, shared HTML Container documentation content (config + examples + troubleshooting). |
| src/components/WidgetGrid.astro | Adds HTML Container tiles to Cards and HTML Widgets sections. |
| astro.sidebar.ts | Adds HTML Container links to reference sidebar under Cards and HTML Widgets. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+496
to
+499
| <div class="card"><span class="card__label">People</span><span class="card__value">{{ selected.lastValue }}</span></div> | ||
| <div class="card"><span class="card__label">Type</span><span class="card__value">{{ selected.type }}</span></div> | ||
| <div class="card"><span class="card__label">Last update</span><span class="card__value">{{ selected.lastSeen }}</span></div> | ||
| </div> |
Comment on lines
+650
to
+656
| return { | ||
| entityId: ds.entityId, | ||
| entityType: ds.entityType, | ||
| name: ds.entityName, | ||
| type: ds.entityType, | ||
| lastValue: last ? last[1] : '—', | ||
| lastSeen: last ? new Date(last[0]).toLocaleString() : '—', |
| onDataUpdateError: (subscription, e) => console.error(e), | ||
| }, | ||
| }; | ||
| ctx.subscriptionApi.createSubscription(subOpts, true).subscribe(); |
| onDataUpdateError: (subscription, e) => console.error(e), | ||
| }, | ||
| }; | ||
| ctx.subscriptionApi.createSubscription(subOpts, true).subscribe(); |
Comment on lines
+897
to
+913
| // Make each column a Sortable list; cards share one group so they move between columns. | ||
| board.querySelectorAll('.kanban__cards').forEach((listEl) => { | ||
| new Sortable(listEl, { | ||
| group: 'kanban', | ||
| animation: 150, | ||
| onAdd: (evt) => { | ||
| const id = evt.item.dataset.id; | ||
| const entityType = evt.item.dataset.type; | ||
| const status = evt.to.dataset.status; // destination column | ||
| const dev = devices.find((d) => d.id === id); | ||
| if (dev) dev.status = status; | ||
| ctx.attributeService | ||
| .saveEntityAttributes({ id, entityType }, 'SERVER_SCOPE', [{ key: 'status', value: status }]) | ||
| .subscribe(); | ||
| }, | ||
| }); | ||
| }); |
Comment on lines
+880
to
+882
| function render() { | ||
| board.innerHTML = statuses | ||
| .map((s) => { |
| onDataUpdateError: (subscription, e) => console.error(e), | ||
| }, | ||
| }; | ||
| ctx.subscriptionApi.createSubscription(subOpts, true).subscribe(); |
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.
Add HTML Container documentation with 5 examples (3 angular, 2 plain HTML)