Skip to content

v1.1.0 — UI Overhaul, Kiosk Redesign & Bug Fixes

Choose a tag to compare

@TheTractorHacker TheTractorHacker released this 16 May 00:09
· 101 commits to main since this release

FoleyTimePro v1.1.0

Major update covering UI redesigns, new features, and critical bug fixes across the entire application.


User Portal

  • Dashboard — New hero banner with status-colored gradient (green = clocked in, amber = lunch, navy = out). Two-column layout: clock actions on the left, this week's punches on the right. Live net-time timer now correctly starts after lunch end, not just after clock-in.
  • Settings — Avatar initials, sticky sidebar with active indicator, color-coded section icons, mobile tab bar.
  • Login — Fixed logo flash caused by broken image path; onerror loop prevention.
  • Modal (punch confirmation) — Fixed missing CSS that caused the confirm popup to be invisible. Fixed duplicate id="note" conflict that silently discarded the employee's note on every punch.

Admin Portal

  • Login page — Fully redesigned: white card on navy gradient, FoleyTimePro logo, Admin badge, employee portal back-link.
  • Edit User — Two-column card layout. Password field is now visible (type=text) with a Generate button and a copy-to-clipboard confirmation banner showing the new password. Shift assignment dropdown added.
  • Edit Shift — Complete redesign with day-of-week pill toggles, merged controls card. Bulk user assignment panel on the right: scrollable list grouped by office, live search, All/None toggles, status dot per user, saves independently.
  • Attendance table — Fixed sticky header bleeding into employee rows (z-index and top:0 fix for overflow-auto container).
  • Time-Off Requests — Wrapped in card, badge-styled status, type pill, combined date cell, review notes inline.

Auto Clock-Out

  • Added AutoClockOut toggle and GracePeriodMinutes field to shift edit page.
  • AutoClockOut column added to shifts table (default off).
  • Cron job (auto_clockout_cron.php) now: only runs for shifts with AutoClockOut enabled, records clock-out at the shift end time (not trigger time), sends push notification to the employee in addition to the admin email.
  • Fixed column name TimeOut → TimeOUT in the cron UPDATE query.

Kiosk

  • Full redesign: dark navy radial-gradient, glassmorphism panels, giant gradient-text clock, live date in header, pulsing badge scan icon.
  • Color-coded punch buttons: Clock In = green, Lunch Start = amber, Lunch End = blue, Clock Out = red, Cancel = gray full-width.
  • Fixed wrong status display: kiosk_status was missing bind_result() so variables were always undefined — every employee showed as "Clocked In" regardless of actual state.
  • Fixed wrong action executed: Kiosk mode was ignoring $_POST['action'] entirely and determining action from punch state sequentially. Clicking "Clock Out" when not clocked in would run Clock In. Now routes on the actual button pressed with guard clauses for invalid states.
  • Now PHP — reads company name, logo, favicon from branding DB.

Branding Uploads

  • Fixed 403: upload_branding.php was chmod 600 root:root, unreadable by PHP-FPM.
  • Raised nginx client_max_body_size to 25M and PHP upload_max_filesize to 20M.
  • Auto-resize: all uploads are now automatically resized and re-encoded (logos/favicons → WebP at target dimensions; backgrounds → original format at 1920×1080 max).

SSL Certificate

  • Regenerated self-signed cert with SAN covering DNS:time.foleyit.com, DNS:localhost, IP:10.1.0.36, IP:127.0.0.1 — eliminates Chrome's "Unsafe attempt to load URL from chrome-error://" error when accessing via internal IP.

Service Worker

  • Added cross-origin skip — SW no longer intercepts Cloudflare beacon or other third-party scripts, eliminating integrity hash failures in the console.
  • Updated STATIC_ASSETS to current file names; bumped CACHE_VERSION to clear stale caches.

Permissions & Infrastructure

  • Fixed cache/ ownership so branding JSON can be written by PHP-FPM.
  • Applied chmod a+rX + chown www-data across admin/, api/, functions/, user/ to fix blanket Permission Denied errors.
  • Fixed FK crash in shift user assignment (AssignedBy column) — now looks up admin numeric ID from session username instead of casting string to 0.