diff --git a/.gitignore b/.gitignore index caa384f..b307e92 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,5 @@ repomix-output.xml repomix-output.* .github_token + +test-artifacts/ diff --git a/TODO.md b/TODO.md index a4cdc4a..50ae922 100644 --- a/TODO.md +++ b/TODO.md @@ -1,7 +1,7 @@ # Storage Box Organizer - TODO ## High Priority Bugs -- [ ] Fix fullscreen image viewer: Tapping on any image currently does not trigger the full-screen view modal. Works only in Box list view. +_None open._ ## UI / UX Improvements - [ ] (Optional) Add future tasks here... \ No newline at end of file diff --git a/landing/index.html b/landing/index.html index f13eeae..6e9e317 100644 --- a/landing/index.html +++ b/landing/index.html @@ -465,6 +465,12 @@ + + + + + +
@@ -569,45 +575,75 @@

Просто. Подредено.

Търсиш дори вътре в кутиите

-

Напиши „чорапи“ и ще видиш кутията, в която са, дори да се казва „Зимни дрехи“. Не е нужно да помниш точното име.

+

Напиши „чорапи“ и ще видиш кутията, в която са, дори да се казва „Зимни дрехи“. Кутията ти казва и коя вещ в нея съвпада. Не е нужно да помниш точното име.

Снимка вместо дълги списъци

-

Снимаш направо с телефона или избираш от галерията. Една снимка казва повече от дълго описание.

+

Снимаш направо с телефона или избираш от галерията. Всяка кутия и вещ може да има няколко снимки, а всяка снимка се отваря на цял екран и се увеличава с пръсти.

Знаеш къде стои кутията

-

Мазе, таван, гардероб, гараж. Записваш мястото веднъж и повече не го търсиш.

+

Мазе, таван, гардероб, гараж. Записваш мястото веднъж и повече не го търсиш. Местата, които вече ползваш, ти се предлагат, докато пишеш.

Етикет с код на кутията

-

Разпечатваш етикет и го залепяш. Насочваш камерата на телефона към него и кутията се отваря в приложението.

+

От Настройки разпечатваш по един етикет за всяка кутия и го залепяш. Насочваш камерата на телефона към него и кутията се отваря на екрана.

- +

Подреждаш по теми

-

„храна“, „празници“, „ремонт“. С едно докосване виждаш само това, което ти трябва.

+

Слагаш на кутии и вещи етикети с думи като „храна“, „празници“, „ремонт“. Избираш един от тях и виждаш само това, което ти трябва.

+
+
+ +

Без двойни записи

+

Докато пишеш името на нова кутия или вещ, приложението ти показва подобните, които вече имаш, дори ако се различават с буква-две. Докосваш една и тя се отваря.

+
+
+ +

Всички вещи на едно място

+

Разделът „Вещи“ показва всичко от всички кутии и в коя кутия е всяка вещ. Можеш да избереш няколко наведнъж и да ги преместиш в друга кутия.

+
+
+ +

Подсказва какво липсва

+

„Преглед на инвентара“ в Настройки събира вещите без кутия или без етикети, кутиите без място, празните кутии и всичко без снимка. Докосваш и поправяш.

Нищо не се губи

-

Всичко се пази в облака. Смениш ли телефона, влизаш със същия имейл и всичко е там.

+

Всичко се пази в облака. Смениш ли телефона, влизаш със същия имейл и всичко е там. Можеш и да изтеглиш всичко, заедно със снимките, като резервно копие в един файл.

+
+
+ +

Размисли ли? Отмени.

+

Изтриеш ли кутия или вещ, или извадиш вещ от кутията ѝ, за няколко секунди можеш да натиснеш „Отмени“ в съобщението и всичко се връща.

+
+
+ +

Работи и в мазето

+

Слаб сигнал или никакъв? След първото влизане приложението се отваря и без интернет, а промените ти се записват, щом връзката се върне.

-

Само за твоите очи

-

Никой друг не вижда твоите кутии и снимки. Всеки профил има свои отделни неща.

+

Твоите неща са си твои

+

Никой друг потребител не вижда твоите кутии и снимки. Всеки профил има свои отделни неща.

Обновява се само

Новите подобрения идват сами. Не трябва да инсталираш нищо отново.

+
+ +

На български и английски

+

В Настройки избираш езика на приложението и светла или тъмна тема.

+
@@ -808,14 +844,20 @@

Хайде да подредим 'features.eyebrow': 'Features', 'features.title': 'Simple. Tidy. Always at hand.', 'features.lead': 'Nothing to learn. If you can take a photo with your phone, you can use this app.', - 'f1.t': 'Search inside the boxes', 'f1.d': 'Type “socks” and you get the box they are in, even if it is called “Winter clothes”. No need to remember exact names.', - 'f2.t': 'Photos instead of long lists', 'f2.d': 'Snap a picture with your phone or pick one from the gallery. A photo says more than a long description.', - 'f3.t': 'Know where each box is', 'f3.d': 'Cellar, attic, wardrobe, garage. Write it down once and stop searching.', - 'f4.t': 'A code label on the box', 'f4.d': 'Print a label and stick it on. Point your phone camera at it and the box opens in the app.', - 'f5.t': 'Sort things by topic', 'f5.d': '“food”, “holidays”, “repairs”. One tap shows just what you need.', - 'f6.t': 'Nothing gets lost', 'f6.d': 'Everything is kept in the cloud. New phone? Sign in with the same email and it is all there.', - 'f7.t': 'For your eyes only', 'f7.d': 'Nobody else sees your boxes or photos. Every account keeps its things separate.', + 'f1.t': 'Search inside the boxes', 'f1.d': 'Type “socks” and you get the box they are in, even if it is called “Winter clothes”. The box also tells you which thing in it matched. No need to remember exact names.', + 'f2.t': 'Photos instead of long lists', 'f2.d': 'Snap a picture with your phone or pick one from the gallery. Every box and thing can have several photos, and each photo opens full screen so you can zoom in with your fingers.', + 'f3.t': 'Know where each box is', 'f3.d': 'Cellar, attic, wardrobe, garage. Write it down once and stop searching. Places you already use are offered as you type.', + 'f4.t': 'A code label on the box', 'f4.d': 'In Settings, print one label for each box and stick it on. Point your phone camera at it and that box opens on the screen.', + 'f5.t': 'Sort things by topic', 'f5.d': 'Give boxes and things tags like “food”, “holidays”, “repairs”. Pick one and you see just what you need.', + 'f9.t': 'No accidental doubles', 'f9.d': 'As you type the name of a new box or thing, the app shows the similar ones you already have, even if a letter or two is different. Tap one and it opens.', + 'f10.t': 'All your things in one place', 'f10.d': 'The “Items” tab shows everything from every box, and which box each thing is in. You can select several at once and move them to another box.', + 'f11.t': 'Points out what is missing', 'f11.d': '“Inventory check” in Settings gathers things in no box or with no tags, boxes with no place, empty boxes and anything without a photo. Tap and fix.', + 'f6.t': 'Nothing gets lost', 'f6.d': 'Everything is kept in the cloud. New phone? Sign in with the same email and it is all there. You can also download everything, photos included, as a backup in a single file.', + 'f12.t': 'Changed your mind? Undo.', 'f12.d': 'Deleted a box or a thing, or took a thing out of its box? For a few seconds you can tap “Undo” in the message and it all comes back.', + 'f13.t': 'Works in the cellar too', 'f13.d': 'Weak signal or none? After the first sign-in the app opens without the internet too, and your changes are saved as soon as the connection is back.', + 'f7.t': 'Your things stay yours', 'f7.d': 'No other user can see your boxes or photos. Every account keeps its things separate.', 'f8.t': 'Updates itself', 'f8.d': 'Improvements arrive on their own. There is nothing to reinstall.', + 'f14.t': 'In Bulgarian and English', 'f14.d': 'In Settings you choose the app’s language and a light or dark theme.', 'install.eyebrow': 'Install', 'install.title': 'Ready in two minutes.', 'install.lead': 'Pick your device and follow the steps.', 'tab.desktop': 'Computer', 'a1.t': 'Download the app', 'a1.d': 'Tap the button below on your phone. A file ending in “.apk” will download.', diff --git a/src/components/FullscreenImageModal.jsx b/src/components/FullscreenImageModal.jsx index ff21ca4..beddcfa 100644 --- a/src/components/FullscreenImageModal.jsx +++ b/src/components/FullscreenImageModal.jsx @@ -167,19 +167,23 @@ export function FullscreenImageModal({ isOpen, onClose, imageRefs = [], itemName // eslint-disable-next-line react-hooks/exhaustive-deps }, [isOpen, currentId]); - // Keyboard navigation + // Keyboard navigation. Captured on window and Escape stopped there: opened + // from an edit modal, the modal's own Escape listener on document used to + // run first and close the modal, unmounting this viewer before its handler + // ran, so the modal kept a stale viewer index and the next opening mounted + // the viewer hidden behind it, where tapping a photo seemed to do nothing. useEffect(() => { if (!isOpen) return; const handleKey = (e) => { - if (e.key === 'Escape') { if (isZoomed) resetZoom(); else onClose(); } + if (e.key === 'Escape') { e.stopPropagation(); if (isZoomed) resetZoom(); else onClose(); } else if (e.key === 'ArrowLeft') goToPrevious(); else if (e.key === 'ArrowRight') goToNext(); else if (e.key === '+' || e.key === '=') applyZoom(zoom.scale + 0.5, zoom.x, zoom.y); else if (e.key === '-') applyZoom(zoom.scale - 0.5, zoom.x, zoom.y); else if (e.key === '0') resetZoom(); }; - window.addEventListener('keydown', handleKey); - return () => window.removeEventListener('keydown', handleKey); + window.addEventListener('keydown', handleKey, true); + return () => window.removeEventListener('keydown', handleKey, true); }, [isOpen, onClose, goToPrevious, goToNext, applyZoom, resetZoom, isZoomed, zoom]); const distanceBetween = (touches) => {