Skip to content

Fixes #111: Display multiple support contracts on device detail pages#127

Merged
DanSheps merged 1 commit into
DanSheps:mainfrom
jsenecal:feature/111-multiple-contracts-display
Dec 12, 2025
Merged

Fixes #111: Display multiple support contracts on device detail pages#127
DanSheps merged 1 commit into
DanSheps:mainfrom
jsenecal:feature/111-multiple-contracts-display

Conversation

@jsenecal
Copy link
Copy Markdown
Collaborator

Summary

  • Add Support Contracts card to device detail pages with configurable position (left_page, right_page, full_width_page)
  • Group contracts by status: Active, Future, Unspecified, Expired
  • Display contract ID, SKU, vendor, and relevant dates in compact tabbed tables
  • Lazy-load expired contracts via HTMX for better performance
  • Add contract_card_position plugin setting (defaults to right_page)

Changes

  • Add contract status constants with color mapping
  • Add status property to SupportContractAssignment model
  • Add contract_status_badge template filter
  • Add HTMX views and templates for device contracts
  • Update README with configuration documentation

Tests

All 388 existing tests pass. Added 11 new HTMX view tests and 6 model status property tests.

…il pages

- Add contract status constants (active, future, unspecified, expired)
- Add status property to SupportContractAssignment model
- Add contract_status_badge template filter
- Add configurable contract_card_position plugin setting
- Add HTMX views for lazy-loading contract data
- Add tabbed UI with contracts grouped by status
- Add SKU column to contract tables
- Lazy-load expired contracts on tab click
- Add comprehensive test coverage for HTMX views and model status
- Update README with configuration documentation
@DanSheps DanSheps merged commit dbfff92 into DanSheps:main Dec 12, 2025
4 checks passed
@jsenecal jsenecal deleted the feature/111-multiple-contracts-display branch December 15, 2025 19:52
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