feat: room history tab + tech task resolution comment

- RoomModal: new "История" tab showing all housekeeping and maintenance tasks for the room
  - Groups tasks by date (newest first), expandable cards
  - Shows: assignee, start time, end time, duration (started_at → completed_at)
  - For maintenance: description, problem/solution photos with lightbox viewer
  - Timing grid: start / completion timestamps
- Backend GET /housekeeping: add room_id filter param
- TechnicalPage CompletionModal: add resolution comment field saved to task notes
- api.ts: housekeeping.list() accepts roomId param

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 11:32:11 +03:00
parent 96961046ed
commit 14f0b8e0f2
5 changed files with 320 additions and 37 deletions

View File

@@ -241,6 +241,7 @@ export function RoomsPage() {
open={modalOpen}
room={editingRoom}
existingNumbers={rooms.map(r => r.number)}
slug={slug}
onClose={() => { setModalOpen(false); setSaveError(null) }}
onSave={handleSave}
onDelete={editingRoom ? () => handleDelete(editingRoom.id) : undefined}