Commit Graph

18 Commits

Author SHA1 Message Date
CPAMAP f5ef2aac0f Match ZeitConsens user case-insensitively
The saved tapi-zc-user and the server's MA_USER_NAME are compared
to decide whether to auto-switch the 3CX presence. A mismatch in
capitalization between the two sources silently disabled the sync,
so both are lowercased before comparison.
2026-04-15 17:21:51 +02:00
CPAMAP 2874ea78c4 Rename firma to atCompany on server and client
Renames the Zeiterfassung-vs-home flag to a clearer English name
(SQL alias AT_COMPANY, model property AT_COMPANY, JSON atCompany)
in both the server query/model and the client AvailabilityInfo
type and people-tile renderer.
2026-04-13 13:18:02 +02:00
CPAMAP d5558b61b2 Parse lastStamp as Date in AvailabilityService
Type AvailabilityInfo.lastStamp as Date and convert from the JSON
string in the service after fetch, so consumers work with real
Date objects.
2026-04-13 13:15:58 +02:00
CPAMAP b7a952ee81 Bump version to 9.6.0 2026-04-13 13:11:10 +02:00
CPAMAP 523477ffba Add firma flag to availability and show office/home label
Server query gets the last stamp's BU_TERM in the same OUTER APPLY
as LAST_STAMP, exposing FIRMA (1 = Zeiterfassung/Büro). Three OUTER
APPLYs reduced to two by combining MAX(BU_BU) with TOP 1 ORDER BY.

Client model gains a firma boolean and the people-tile indicator
appends "· Büro" or "· Home" next to the timestamp, but only when
the user is logged in.
2026-04-13 12:55:51 +02:00
CPAMAP 74992a020f Add lastStamp to availability and show it on people tiles
Server query extended with MAX(BU_BU) per user as LAST_STAMP,
exposed via the Availability model. Client formats it as
DD.MM. HH:mm next to the loggedIn dot, replacing the mocked time.
2026-04-13 12:29:43 +02:00
CPAMAP 235b7cba18 Add availability indicators on people tiles and share fetch service
New Availability module decorates each people-tile with a vertical
  status bar on the avatar and a dot+timestamp under the status text,
  showing ZeitConsens loggedIn state per extension.

  Status and Availability now share a single AvailabilityService that
  polls /availability every 30s, halving the API load. Avatars are
  enlarged to 57px and vertically centered to fit the new layout.
2026-04-13 12:14:18 +02:00
CPATRD ccf1f63f1b Bump Version to 9.5.1 2026-04-10 12:06:16 +02:00
CPATRD 8459f7938d Move userscript to server 2026-04-10 12:02:03 +02:00
CPAMAP e6860461ee Extract presence module and add SVG status icons
Move quick status buttons into dedicated presence.ts/css module with
Font Awesome SVG icons (briefcase, headphones, grill, beer mug,
screen-users). Bump version to 9.5.0.
2026-04-10 11:42:31 +02:00
CPATRD f890fce7c9 Bump version to 9.4.0 2026-04-09 14:14:04 +02:00
CPATRD 4c6342a989 Bump version to 9.3.1 2026-03-27 11:00:42 +01:00
CPATRD b47debeef2 svg loader 2026-03-27 11:00:10 +01:00
CPATRD a02ce50cf3 Change favicon color depending on status 2026-03-19 14:32:19 +01:00
CPATRD c16c07ea42 New 3cx tapi server url 2026-03-19 14:32:19 +01:00
CPATRD 535cf6ea05 Removed unused imports 2026-03-19 14:32:19 +01:00
CPATRD 41f6e640e1 Packages aktualisiert 2026-03-18 10:53:51 +01:00
CPATRD 26f1902996 Moved userscript to client 2026-03-18 10:34:20 +01:00