Skip to content

HTML Container documentation#460

Open
pinkevmladchy wants to merge 5 commits into
mainfrom
html-container-doc
Open

HTML Container documentation#460
pinkevmladchy wants to merge 5 commits into
mainfrom
html-container-doc

Conversation

@pinkevmladchy

Copy link
Copy Markdown
Contributor

Add HTML Container documentation with 5 examples (3 angular, 2 plain HTML)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 product context.
  • 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 thread src/content/_includes/docs/reference/widgets/cards/html-container.mdx Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 22 changed files in this pull request and generated 7 comments.

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();
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