Skip to content

Reorder panels and add collapsible JSON Data pane#17

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/update-layout-json-nunjucks-output
Draft

Reorder panels and add collapsible JSON Data pane#17
Copilot wants to merge 4 commits intomainfrom
copilot/update-layout-json-nunjucks-output

Conversation

Copy link
Contributor

Copilot AI commented Jan 8, 2026

Reorders the three-panel layout to improve logical data flow (JSON Data → Template → Output) and adds collapse/expand functionality to the JSON Data panel for workspace optimization.

Changes

  • Panel reordering: JSON Data (left), Nunjucks Template (center), Output (right)
  • Collapsible JSON panel: Toggle button (◀/▶) in panel header with smooth CSS transitions
  • Responsive layout: Media queries for mobile/tablet with vertical stacking at ≤768px breakpoints
  • Accessibility: ARIA attributes (aria-label, aria-expanded) for screen reader support

Implementation

// Toggle with proper ARIA state management
toggleJsonBtn.addEventListener('click', (e) => {
    e.stopPropagation();
    const isCollapsed = jsonPanel.classList.toggle('collapsed');
    toggleJsonBtn.textContent = isCollapsed ? '▶' : '◀';
    toggleJsonBtn.setAttribute('aria-expanded', isCollapsed ? 'false' : 'true');
});
.panel.collapsed {
    flex: 0 0 auto;
    min-width: 40px;
}

.panel.collapsed .panel-header {
    writing-mode: vertical-rl;
}

Screenshots

Normal view – All panels expanded:
Normal View

Collapsed view – JSON panel minimized for maximum workspace:
Collapsed View

Mobile view – Responsive vertical layout:
Mobile View

Original prompt

Das 'JSON Data'-Pane soll links positioniert werden und bei Bedarf zuklappbar (collapse/expand) sein. Das 'Nunjucks Template'-Pane soll in die Mitte, direkt rechts von 'JSON Data' und links vom 'Output (HTML Preview)'. Damit bekommt der Arbeitsbereich eine logische Reihenfolge und mehr nutzbare Fläche. Die Umsetzung soll responsiv und benutzerfreundlich sein.

This pull request was created from Copilot chat.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 8, 2026 16:20
Co-authored-by: TorstenC <5834405+TorstenC@users.noreply.github.com>
Co-authored-by: TorstenC <5834405+TorstenC@users.noreply.github.com>
Co-authored-by: TorstenC <5834405+TorstenC@users.noreply.github.com>
Copilot AI changed the title [WIP] Update layout for JSON Data and Nunjucks Template panes Reorder panels and add collapsible JSON Data pane Jan 8, 2026
Copilot AI requested a review from TorstenC January 8, 2026 16:26
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