Skip to content

Conversation

@LeviiiCraft2
Copy link

@LeviiiCraft2 LeviiiCraft2 commented Oct 13, 2025

This PR introduces the homeworks view and several visual + structural improvements across the widget views.

Highlights

  • New view: Added homeworks.ts, a new widget view that displays homework items with subject, teacher, and due date.
    • Supports compact mode (2-column layout).
    • Added completion toggle via URL parameter (toggleHomework).
    • Integrates due date color coding for upcoming / overdue tasks.
    • Supports liquidGlass appearance for consistent semi-transparent backgrounds.
  • Visual updates:
    • Major revision of the Absences View (added visualExcuseStatus, improved time formatting, reason & text display, ...).
    • Updated absences, exams, and grades views to use dynamic item colors via getItemColors().
    • Improved contrast and readability across light/dark modes.
    • Adjusted font scaling and padding for tighter, more uniform layout.
  • Widget core improvements (widget.ts):
    • Added empty-view messages with motivational or humorous quotes for each view.
    • Added header rendering (shows current views in use).
    • Enhanced data validation & debug logging for better stability.
    • Improved layout handling and fallback when no data or unknown parameters are present.

Changes

  • 21 files changed
    • src/views/homeworks.ts → +200 lines (new feature)
    • src/views/absences.ts → refined layout & color logic
    • src/views/exams.ts, src/views/grades.ts → integrated getItemColors()
    • src/widget.ts → refactored layout, added headers, no-data quotes, and new view registration
  • Total: 1,138 additions, 289 deletions

Result

This update adds a fully functional Homework view and refreshes the visual consistency of all widget views.
Widgets now look cleaner, adapt better to light/dark themes, and feel more lively even when data is empty.
UntisWidget-homeworks-and-ui-improvements.js
#10

@LeviiiCraft2 LeviiiCraft2 changed the title Feature/homework and UI improvements Homework and UI improvements Oct 14, 2025
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