Polish Services: Saudi Coffee rename + image, fix Black Coffee Arabic, hide order notes behind a button (Task #394)
Three small UX fixes on the Services screen: 1. Renamed service id=2 to "قهوة سعودي" / "Saudi Coffee" and swapped the thumbnail to a new clear brown image (small dallah pouring into a finjan with cardamom + a date) saved at public/service-images/saudi-coffee.png. The legacy arabic-coffee.png is left in place so any cached references keep loading. 2. Renamed service id=2450 Arabic name to "بلاك كوفي" (English "Black Coffee" unchanged). 3. OrderServiceModal now opens with the notes textarea collapsed and not mounted, so iPad/Safari no longer auto-pops the keyboard. A small outline "إضافة ملاحظات / Add notes" button (with pencil icon) expands it and focuses the textarea on demand. While expanded, a small "إخفاء / Hide" link collapses it again without clearing typed text. If initialNotes is non-empty when the dialog opens, it starts expanded. Submission behavior unchanged. Verified DB state after updates: id=2 name_ar=قهوة سعودي name_en=Saudi Coffee image_url=service-images/saudi-coffee.png id=2450 name_ar=بلاك كوفي name_en=Black Coffee image_url=service-images/black-coffee.png Added i18n keys services.addNotes / services.hideNotes to ar.json and en.json. Added data-testid="order-notes-toggle" and data-testid="order-notes-textarea" for future tests. `pnpm --filter @workspace/tx-os typecheck` passes. The pre-existing `test` workflow failure is unrelated to this change.
This commit is contained in:
@@ -48,6 +48,12 @@ uri = "file://artifacts/tx-os/public/service-images/black-coffee.png"
|
||||
type = "image"
|
||||
title = "black coffee mug"
|
||||
|
||||
[[generated]]
|
||||
id = "pFSmazHx0m3gsXrCE0oR2"
|
||||
uri = "file://artifacts/tx-os/public/service-images/saudi-coffee.png"
|
||||
type = "image"
|
||||
title = "saudi coffee dallah"
|
||||
|
||||
[[outputs]]
|
||||
id = "LYgvZ2mSFO2a8Q7YzWuYh"
|
||||
uri = "file://attached_assets/tx-icon/main.svg"
|
||||
|
||||
Reference in New Issue
Block a user