feat(types): adopt shared mokosh-types crate (MAPPS-378, rebased, supersedes #445) #463
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-378-adopt-mokosh-types-rebased"
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?
Supersedes #445 (rebased onto current main; the stale branch could not be updated in place). Closes the remaining half of MAPPS-378.
What
Completes MAPPS-378: mokosh-apps now sources the auth/tenants/tickets DTOs from the shared
mokosh-typescrate instead of hand-copied structs, so drift becomes a compile error. Net: +33 −314 (deletes the hand copies, re-exports from the crate).CurrentUser,UserRole(drops the unusedparse_roleshim).Tenant,TenantBranding,TenantStatus,CreateTenantRequest,UpdateTenantRequest,TenantResponse.TicketNote,TicketNoteResponse.contacts + time_tracking were already adopted on main via #457 (MAPPS-383); mileage_tracking has no client module. So after this, every shareable DTO is sourced from
mokosh-types.Why a new PR
The original #445 branch was based on an old main and its Cargo.lock change (mokosh-types
a317a14) conflicts with main's #457 lock change (30cde30) - that is the "conflicting file: Cargo.lock" Forgejo shows. This branch is #445's single commit rebased onto current main (683e878), with that conflict resolved by keeping main's dep + lock:30cde30is newer thana317a14(Aug 1 vs Jul 24, a superset), and this change adds no new crates (only re-exports), so the dependency graph is unchanged from main. The rebased commit therefore carries no Cargo.lock change and no conflict. Please close #445 in favour of this.Verification
just pre-commit(dockerized) green:cargo fmt --all --check,cargo clippy --all-targets -- -D warnings,cargo check --target wasm32-unknown-unknown,cargo test --lib(252 passed, 0 failed). The wasm32 check confirms the auth/tenants/tickets models compile against the newer30cde30rev.🤖 Generated with Claude Code