swiftops-backend / docs /devlogs /browser /browserconsole.txt

Commit History

  1. fix: add pricing_tier to allowed line item types in invoice schema

    e7d310d
  2. fix: convert Decimals to float in invoice generation additional_metadata for JSON serialization

    8d20770
  3. fix: convert Decimal to float in invoice pricing rules for JSON serialization

    8f5c70d

  1. Fix report endpoints to be async for compatibility with permission decorator

    93e3d85
  2. Fix payroll stats 422 by removing duplicate /stats endpoint and correcting route ordering.

    bb7143c
  3. Fix timesheets 404/403 by adding missing permissions and reordering routes to prevent path conflicts.

    9962ce3

  1. fix: add 60s timeout to Cloudinary uploads with Supabase fallback for large images

    756bc21

  1. refactor: remove reconciliation system and all related code, tasks, and docs

    d12a170

  1. fix(auth): properly update user password and use valid audit enum values

    d9b6bad
  2. feat: updated the pm ticket detail endpoint to give back proper actions

    24bb10d

  1. Fix timezone-aware datetime comparisons and correct CORS config requiring explicit allowed origins

    938ea18
  2. Improve invoice generation by auto-deriving contractor/client from project and updating schemas, logic, and docs accordingly

    c651639
  3. Enhance available-tickets endpoint to auto-derive contractor from project and support contractor_id=auto

    5a1264e
  4. Fix contractor invoice list route by removing trailing slash to prevent 307 redirects and CORS failures

    337e2ae
  5. Fix contractor invoice route prefix conflict and update frontend docs to match corrected API paths

    717d701
  6. Fix Tende Pay export critical edge cases: only mark exported expenses as paid, skip invalid amounts/users, warn on mixed payment methods

    d566e9e
  7. Corrected Timesheet enum storage by configuring SQLAlchemy Enum to persist .value strings and preventing unwanted enum coercion.

    e9639af
  8. Fixed enum-case mismatch by allowing string-based status values and passing lowercase status directly to DB.

    3071dc4
  9. Fixed enum mismatch by updating schema and endpoints to use lowercase TimesheetStatus string values aligning with DB enum

    3f304b5

  1. Fix 403 error by updating user view permissions for project managers, sales managers, and dispatchers

    d078030
  2. reconcilliation endpoints

    940d3bc
  3. fix: Moved /stats and /stats/summary routes BEFORE the /{expense_id} route

    87f3e2f

  1. fix(bulk-export): add missing imports, improve error handling, and add logging

    6226e01
  2. fix(notifications): update service to use correct filter fields (from_date/to_date) to prevent AttributeError

    66d100e
  3. fix(filters): replace Pydantic Depends with custom Query-based parsers to correctly handle multi-value API filters

    2fb09d0

  1. Fix ProjectSubcontractor import scope in dashboard_service.py

    b0f8513
  2. fix: add missing ProjectTeam import in dashboard_service to resolve endpoint error

    b463025
  3. Reorder document routes so /users/me endpoints take precedence over generic entity routes

    9f54fd9
  4. Add dedicated /users/me document and profile photo endpoints to avoid UUID parsing errors

    3e9b945
  5. Make account_name optional and auto-populate it for mobile money and bank accounts

    a37b051
  6. Fix backend permissions to allow field agents to update full basic profile info

    b6832d2

  1. Fix invalid Ticket attribute usage by replacing nonexistent ticket_reference/title with correct id and ticket_name in ticket expense API

    be87f92
  2. Fix incorrect relationship reference by replacing ticket_assignment with assignment across service and API layers

    428eb7e
  3. fix: replace utcnow() with timezone-aware datetime.now(timezone.utc) in days_issued to prevent offset-naive/aware errors

    33d9190
  4. fix: correct ProjectTeam import to use app.models.project_team instead of app.models.project

    9191671
  5. fix: make user_id optional for self-service and auto-set before auth check; update schema, service, and docs

    c5fdc5d
  6. fix: reorder FastAPI routes so /my-stats and /my-inventory are matched before /{inventory_id}

    dcd97c0
  7. Fix LocationTrailResponse by including required action and related fields in service response

    fccae56

  1. Update expense validation rules for completed/cancelled tickets and add same-day completion grace period

    6590cd4
  2. Fix expense query order to ensure assignments are fetched first for correct role-based filtering

    ed6bcd1
  3. fix: add complete status-history coverage, set started_at correctly, and harden dedup_key + location tracking

    53b964c
  4. fix: replace string-based joinedload with class-bound attributes to restore completion-checklist relationship loading

    0379dd9
  5. Add dedicated PUT /completion-data endpoint for partial updates to ticket completion data

    807713e
  6. Remove Base inheritance from TicketStatusHistory so SQLAlchemy can correctly register the model

    4c66bec
  7. Remove BaseModel inheritance to match ticket status history table schema

    0d59441
  8. Fix column name mismatch between model and database for ticket status history

    fd9d839

  1. feat(ticket-completion): allow incremental photo uploads and enforce full validation only at completion

    d3b4695
  2. Fix JSONB journey history not persisting by flagging journey_location_history as modified in update_location service.

    4c3de8e
  3. Fix circular import by registering TicketStatusHistory before Ticket in models init to resolve SQLAlchemy mapper errors.

    0f127a7
  4. Fix customer field references and update endpoint with correct model fields

    39f910d