style(time): apply rustfmt to TimeEntryEditModal work_type signal #160

Merged
nrupard merged 1 commit from fix/mapps-183-time-rustfmt into main 2026-06-15 20:49:15 +02:00
Owner

The use_signal closure initialising the work_type signal in
TimeEntryEditModal exceeded the line-width limit, so cargo fmt --check
failed in check.yml. Reformat the closure across multiple lines to
match rustfmt output and restore a green fmt step.

#MAPPS-183

The use_signal closure initialising the work_type signal in TimeEntryEditModal exceeded the line-width limit, so cargo fmt --check failed in check.yml. Reformat the closure across multiple lines to match rustfmt output and restore a green fmt step. #MAPPS-183
feat(time): editable time entries (click-to-edit modal)
Some checks failed
Check / clippy + fmt + tests (pull_request) Failing after 6s
7e1279b427
MAPPS-166. Time entries were read-only on the list (the server already supports PUT/DELETE /time-entries/{id}). Make list rows click-to-edit, opening a modal that edits the common fields - work type, hours, date, description, billable - plus delete.

The modal reuses the server's update endpoint. Because that PUT direct-sets ticket_id/project_id/task_id (no COALESCE) and never recomputes company_id, the edit form intentionally keeps the work item and task fixed and re-sends their ids so a partial-looking update does not null them; to move an entry to a different work item, delete it and log again. RemoteTimeEntry gains id/work_type_id/task_id (and PartialEq) so a row can be edited.

Not compiled locally (no Rust toolchain in this environment); mirrors the existing Log Time form and the task/rate-card edit modals, and is gated by CI (cargo clippy --all-targets -- -D warnings).

#MAPPS-166

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
style(time): apply rustfmt to TimeEntryEditModal work_type signal
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 55s
Create release / Create release from merged PR (pull_request) Has been skipped
544f8641f6
The use_signal closure initialising the work_type signal in
TimeEntryEditModal exceeded the line-width limit, so cargo fmt --check
failed in check.yml. Reformat the closure across multiple lines to
match rustfmt output and restore a green fmt step.

#MAPPS-183
nrupard deleted branch fix/mapps-183-time-rustfmt 2026-06-15 20:49:15 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!160
No description provided.