Skip to content

Conversation

@jbrinkman
Copy link
Owner

Summary

Implements Issue #34 to make HTML reports easier to use by adding interactive collapsible sections with summary navigation.

Features Added

Clickable Summary Cards

  • Summary cards now navigate directly to corresponding sections
  • Hover effects and smooth animations
  • Visual feedback on click

Collapsible Sections

  • All main content sections (Breaking Changes, Added Items, Removed Items, Modified Items) are now collapsible
  • Toggle buttons with proper icon rotation (▶ when collapsed, ▼ when expanded)
  • Smooth expand/collapse animations

Session Storage Persistence

  • Section states persist across page reloads
  • User preferences are remembered within the browser session

Default Collapsed State

  • Sections start collapsed by default for better overview
  • Users can expand sections as needed

Enhanced Navigation

  • Smooth scrolling to sections
  • Auto-expand sections when navigating via summary cards
  • Brief highlight effect on target sections

Technical Implementation

Files Modified

main-layout.scriban

  • Added clickable onclick handlers to summary cards
  • Restructured sections with collapsible headers and content divs
  • Added toggle buttons with icons

styles.css

  • Added collapsible section styles with smooth transitions
  • Enhanced summary card hover effects
  • Proper icon rotation for collapsed/expanded states
  • Responsive design considerations

scripts.js

  • toggleSection() - Handles collapse/expand functionality
  • navigateToSection() - Smooth scrolling with auto-expand
  • initializeSections() - Sets default collapsed state with session storage
  • Session storage helpers for persistence

Testing

  • ✅ All 412 tests pass
  • ✅ HTML report generation works correctly
  • ✅ Collapsible functionality tested with sample assemblies
  • ✅ Icon rotation fixed and working properly
  • ✅ Session storage persistence verified
  • ✅ Responsive design tested

User Experience

The HTML reports are now much more user-friendly:

  • Better Overview: Collapsed sections provide a clean summary view
  • Quick Navigation: Click summary cards to jump to relevant sections
  • Persistent State: Section preferences remembered across reloads
  • Smooth Interactions: Professional animations and visual feedback

Closes #34

Implements Issue #34 to make HTML reports easier to use by adding:

- Clickable summary cards that navigate to corresponding sections
- Collapsible sections with toggle buttons and smooth animations
- Session storage to persist section states across page reloads
- Sections start in collapsed state by default
- Proper icon rotation (▶ when collapsed, ▼ when expanded)
- Smooth scrolling navigation with highlight effects

Technical changes:
- main-layout.scriban: Added clickable summary cards and collapsible section structure
- styles.css: Added collapsible section styles, hover effects, and responsive design
- scripts.js: Added toggleSection, navigateToSection, and initializeSections functions with session storage

All tests pass and HTML report generation works correctly.
@jbrinkman jbrinkman requested a review from Copilot July 31, 2025 02:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements collapsible sections with summary navigation to enhance the usability of HTML reports, addressing Issue #34. The changes make large reports more manageable by providing a cleaner overview and interactive navigation.

  • Adds clickable summary cards that navigate directly to corresponding sections
  • Implements collapsible sections with toggle buttons and smooth animations
  • Includes session storage persistence to remember user preferences across page reloads

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
styles.css Adds CSS for collapsible sections, toggle buttons, and enhanced summary card interactions
scripts.js Implements JavaScript functionality for section toggling, navigation, and session storage
main-layout.scriban Updates HTML template to include collapsible structure and clickable summary cards

@jbrinkman jbrinkman merged commit 581564e into main Jul 31, 2025
7 checks passed
@jbrinkman jbrinkman deleted the feature/issue-34-html-collapsible-sections branch July 31, 2025 02:15
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.

HTML Report: Add collapsible sections with summary navigation

2 participants