feat(time-tracking): add byte-identical time-tracking DTOs from server #51
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/time-tracking-client-dtos"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Ports the server's
time_trackingmodel types so the SPA can consume the new Service Desk endpoints (work types, time entries, timesheets, timers, rounding rules). Companion to mokosh-server PR #58.Changes
src/modules/time_tracking/mirroring the shared-module pattern:mod.rsgatesroutes/servicebehind#[cfg(feature = "server")], so the WASM build compiles onlymodels. The tree is byte-identical to mokosh-server's copy to keep the manual copy-paste contract intact.rust_decimal(features = ["serde"],db-postgresomitted on the client) for the money/rate DTO fields.Note
This is the fifth shared module, which per
client-server-integration.mdis the trigger to extract a shared types crate. That extraction is a tracked follow-up rather than part of this slice.Testing
just pre-commitgreen: fmt, clippy (--all-targets -D warnings),cargo check --target wasm32-unknown-unknown, andcargo test --lib(47 tests) all pass in the rust-builder image.🤖 Generated with Claude Code