Skip to content

v1.7.1

Latest

Choose a tag to compare

@marksxiety marksxiety released this 08 Jun 01:12
bbef8a5

Bug Fixes

  • Shift Time Display

    • Replaced '--' string fallbacks with null for missing shift_start_time and shift_end_time across all overtime fetch endpoints.
    • Added null checks before calling to12hr() and display "N/A" when schedule times are unavailable.
  • Configuration Staleness

    • Added a force parameter to loadConfig() to bypass cached configuration data.
    • Moved forced configuration refresh into loadMonthData() to ensure schedule data is refreshed on every month load.
  • Enhance State Leak

    • Added resetEnhanceState() and integrated it into relevant flows.
    • Clears the original reason and cooldown timer to ensure a clean state between actions.
  • Password Input

    • Removed the password visibility toggle.
    • Simplified password input type handling.
  • Textarea Read-Only State

    • Fixed textarea behavior to correctly respect the readonly prop when the glowing state is enabled.
  • Session Persistence

    • Overtime filing queue is now properly cleared from sessionStorage on logout using clearAll() from useOvertimeQueue.
  • Error Persistence

    • Preserved errors during session persistence and hydration instead of discarding them.

New Features

  • useOvertimeQueue Composable

    • Introduced a centralized overtime filing queue with:
      • sessionStorage persistence
      • Automatic hydration on page load
      • clearAll() support for logout cleanup
    • Replaces local queue references and UID counters.
  • Server-Side Filter Counts

    • Stat cards now use server-provided info.counts values:
      • total_hours
      • filed
      • pending
      • approved
      • rejected
    • Counts are refreshed on every fetch and filter operation.

Refinements

  • Renamed the "Actions" column to "Default Shift".
  • Added a primary badge highlight for the current date.
  • Added JSDoc typings to useOvertimeQueue.
  • Removed unused imports and dead code:
    • removeWeek
    • Link
    • Icon
    • buildShiftReference
  • Ensured all status values are persisted in application state.

Tests

  • Added backend test coverage for info.counts, including:
    • Total counts
    • Filtered counts
    • Count calculations independent of pagination