Skip to content

feat: date-range quick-select for Analytics/Notifications + OIDC dark mode fix#29

Merged
finish06 merged 4 commits intomainfrom
feature/date-range-notifications-analytics
Mar 4, 2026
Merged

feat: date-range quick-select for Analytics/Notifications + OIDC dark mode fix#29
finish06 merged 4 commits intomainfrom
feature/date-range-notifications-analytics

Conversation

@finish06
Copy link
Owner

@finish06 finish06 commented Mar 4, 2026

Summary

  • Add quick-select buttons (Last 7 Days, Last 30 Days, Max, Custom) to Analytics and Notifications tabs, matching the existing Sync Logs tab
  • Add date_from/date_to query parameters to GET /htmx/notifications endpoint with server-side filtering on NotificationLog.created_at
  • Include date parameters in notification pagination prev/next links
  • Fix OIDC settings dark mode: define --bg-secondary CSS variable in both light/dark themes, replace inline styles with .info-box class

Spec Coverage

  • specs/date-range-quick-select.md AC-011 through AC-020
  • specs/oidc-settings.md AC-016, AC-017

Test plan

  • 11 new tests for date-range quick-select v0.2.0 (analytics buttons, notifications filtering, pagination)
  • 2 new tests for OIDC dark mode fix (no inline bg-secondary, info-box class used)
  • Full suite: 825 tests passing
  • Lint and format clean

🤖 Generated with Claude Code

finish06 and others added 4 commits March 4, 2026 00:28
- New: specs/changelog-presentation.md (v0.1.0) — improve in-app changelog
  rendering with markdown, color-coded badges, accordion UX, pagination
- Updated: specs/date-range-quick-select.md (v0.2.0) — extend quick-select
  buttons to Analytics and Notifications tabs (AC-011–AC-020)
- Updated: specs/synthetic-monitoring.md (v0.2.0) — runtime enable/disable
  without restart, DB-persisted config, check history dashboard (AC-013–AC-018)
- Updated: specs/oidc-settings.md (v0.2.0) — dark mode fix for callback URL
  and FORCE_LOCAL_LOGIN info boxes (AC-016–AC-017)
- Fixed: smoke test accepts 302 on /docs when auth is enabled

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add quick-select buttons (7d, 30d, Max, Custom) to Analytics partial
  with JS logic to set date inputs and auto-trigger chart refresh (AC-011–AC-014)
- Add quick-select buttons to Notifications partial (AC-015, AC-020)
- Add date_from/date_to query params to GET /htmx/notifications with
  filtering on NotificationLog.created_at (AC-016)
- Include date_from/date_to in pagination prev/next links (AC-019)
- Add 11 tests covering all new acceptance criteria

Spec: specs/date-range-quick-select.md
AC: AC-011, AC-012, AC-013, AC-014, AC-015, AC-016, AC-019, AC-020

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Define --bg-secondary CSS variable in both light (#f3f4f6) and
  dark (#1f2937) theme blocks
- Add .info-box CSS class for theme-aware info boxes
- Replace inline background: var(--bg-secondary, #f5f5f5) in OIDC
  template with .info-box class (no hardcoded fallback)
- Add 2 tests for AC-016 and AC-017

Spec: specs/oidc-settings.md
AC: AC-016, AC-017

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The unquoted colon in the pytest -o flag was invalid YAML syntax.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@finish06 finish06 merged commit e355761 into main Mar 4, 2026
5 checks passed
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.

1 participant