Commit Graph

6 Commits

Author SHA1 Message Date
Тимур Городецкий ae383b5231 fix: show title, unit and plan for a work created from the picker
The new work was not yet in lookups of the current render, so the card
got the full path, an empty unit and plan 0.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-19 16:17:56 +05:00
Тимур Городецкий 33f31366cd fix: center the report picker on wide screens and keep the value field inside its card
The bottom sheet stays for phones only, as in the old picker.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-19 16:17:56 +05:00
Тимур Городецкий f0272c2170 fix: check report access with the user id of the lists site
The user id differs per site, so the id from the page context showed
"Нет доступа" in reports when the page was not on /sites/stroy.
The id and the photo folder path now come from settings.siteUrl.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-19 16:17:56 +05:00
Тимур Городецкий 92b578d806 feat: wire report form page, remove section placeholder
All eight sections of the old stroy-bot-* web parts are now reachable
from the app. Unknown routes fall back to the hub.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-16 10:08:07 +05:00
Тимур Городецкий 072d246eed test: cover report form rules, save order and SharePoint calls
Checked line by line against stroy-bot-report: form modes, validation
texts and order, payloads, delete-children-first then recreate save
sequence, photo upload, access lookup and dictionary fallbacks. The fake
HTTP client can now answer per call so created rows get distinct ids.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-16 10:08:07 +05:00
Тимур Городецкий bfb3eb7b75 wip: add report form page (not wired yet)
Ported stroy-bot-report form saved before tests are written. Not
reachable from the app until save/mode tests cover the delete-and-
recreate algorithm.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-16 09:48:06 +05:00