Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ repomix-output.xml
repomix-output.*

.github_token

test-artifacts/
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -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...
74 changes: 58 additions & 16 deletions landing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,12 @@
<symbol id="i-refresh" viewBox="0 0 24 24"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></symbol>
<symbol id="i-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/></symbol>
<symbol id="i-moon" viewBox="0 0 24 24"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9z"/></symbol>
<symbol id="i-copy" viewBox="0 0 24 24"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></symbol>
<symbol id="i-list" viewBox="0 0 24 24"><path d="M3 6h.01"/><path d="M3 12h.01"/><path d="M3 18h.01"/><path d="M8 6h13"/><path d="M8 12h13"/><path d="M8 18h13"/></symbol>
<symbol id="i-clipboard" viewBox="0 0 24 24"><rect width="8" height="4" x="8" y="2" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/><path d="m9 14 2 2 4-4"/></symbol>
<symbol id="i-undo" viewBox="0 0 24 24"><path d="M9 14 4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H11"/></symbol>
<symbol id="i-wifi-off" viewBox="0 0 24 24"><path d="M12 20h.01"/><path d="M8.5 16.43a5 5 0 0 1 7 0"/><path d="M5 12.86a10 10 0 0 1 5.17-2.69"/><path d="M19 12.86a10 10 0 0 0-2-1.52"/><path d="M2 8.82a15 15 0 0 1 4.18-2.64"/><path d="M22 8.82a15 15 0 0 0-11.29-3.76"/><path d="m2 2 20 20"/></symbol>
<symbol id="i-languages" viewBox="0 0 24 24"><path d="m5 8 6 6"/><path d="m4 14 6-6 2-3"/><path d="M2 5h12"/><path d="M7 2h1"/><path d="m22 22-5-10-5 10"/><path d="M14 18h6"/></symbol>
</svg>

<header class="header" id="top">
Expand Down Expand Up @@ -569,45 +575,75 @@ <h2 data-i18n="features.title">Просто. Подредено. <span class="se
<article class="card big reveal">
<span class="ico"><svg class="i"><use href="#i-search"/></svg></span>
<h3 data-i18n="f1.t">Търсиш дори вътре в кутиите</h3>
<p data-i18n="f1.d">Напиши „чорапи“ и ще видиш кутията, в която са, дори да се казва „Зимни дрехи“. Не е нужно да помниш точното име.</p>
<p data-i18n="f1.d">Напиши „чорапи“ и ще видиш кутията, в която са, дори да се казва „Зимни дрехи“. Кутията ти казва и коя вещ в нея съвпада. Не е нужно да помниш точното име.</p>
<div class="shot"><img data-shot="search" src="assets/screens/bg-search.webp" alt="" width="720" height="1558" loading="lazy"></div>
</article>
<article class="card big warm reveal">
<span class="ico kraft"><svg class="i"><use href="#i-camera"/></svg></span>
<h3 data-i18n="f2.t">Снимка вместо дълги списъци</h3>
<p data-i18n="f2.d">Снимаш направо с телефона или избираш от галерията. Една снимка казва повече от дълго описание.</p>
<p data-i18n="f2.d">Снимаш направо с телефона или избираш от галерията. Всяка кутия и вещ може да има няколко снимки, а всяка снимка се отваря на цял екран и се увеличава с пръсти.</p>
<div class="shot"><img data-shot="box" src="assets/screens/bg-box.webp" alt="" width="720" height="1558" loading="lazy"></div>
</article>
<article class="card small reveal">
<span class="ico kraft"><svg class="i"><use href="#i-pin"/></svg></span>
<h3 data-i18n="f3.t">Знаеш къде стои кутията</h3>
<p data-i18n="f3.d">Мазе, таван, гардероб, гараж. Записваш мястото веднъж и повече не го търсиш.</p>
<p data-i18n="f3.d">Мазе, таван, гардероб, гараж. Записваш мястото веднъж и повече не го търсиш. Местата, които вече ползваш, ти се предлагат, докато пишеш.</p>
</article>
<article class="card small reveal">
<span class="ico"><svg class="i"><use href="#i-qr"/></svg></span>
<h3 data-i18n="f4.t">Етикет с код на кутията</h3>
<p data-i18n="f4.d">Разпечатваш етикет и го залепяш. Насочваш камерата на телефона към него и кутията се отваря в приложението.</p>
<p data-i18n="f4.d">От Настройки разпечатваш по един етикет за всяка кутия и го залепяш. Насочваш камерата на телефона към него и кутията се отваря на екрана.</p>
</article>
<article class="card small reveal">
<span class="ico"><svg class="i"><use href="#i-tag"/></svg></span>
<span class="ico kraft"><svg class="i"><use href="#i-tag"/></svg></span>
<h3 data-i18n="f5.t">Подреждаш по теми</h3>
<p data-i18n="f5.d">„храна“, „празници“, „ремонт“. С едно докосване виждаш само това, което ти трябва.</p>
<p data-i18n="f5.d">Слагаш на кутии и вещи етикети с думи като „храна“, „празници“, „ремонт“. Избираш един от тях и виждаш само това, което ти трябва.</p>
</article>
<article class="card small reveal">
<span class="ico"><svg class="i"><use href="#i-copy"/></svg></span>
<h3 data-i18n="f9.t">Без двойни записи</h3>
<p data-i18n="f9.d">Докато пишеш името на нова кутия или вещ, приложението ти показва подобните, които вече имаш, дори ако се различават с буква-две. Докосваш една и тя се отваря.</p>
</article>
<article class="card small reveal">
<span class="ico kraft"><svg class="i"><use href="#i-list"/></svg></span>
<h3 data-i18n="f10.t">Всички вещи на едно място</h3>
<p data-i18n="f10.d">Разделът „Вещи“ показва всичко от всички кутии и в коя кутия е всяка вещ. Можеш да избереш няколко наведнъж и да ги преместиш в друга кутия.</p>
</article>
<article class="card small reveal">
<span class="ico"><svg class="i"><use href="#i-clipboard"/></svg></span>
<h3 data-i18n="f11.t">Подсказва какво липсва</h3>
<p data-i18n="f11.d">„Преглед на инвентара“ в Настройки събира вещите без кутия или без етикети, кутиите без място, празните кутии и всичко без снимка. Докосваш и поправяш.</p>
</article>
<article class="card small reveal">
<span class="ico kraft"><svg class="i"><use href="#i-cloud"/></svg></span>
<h3 data-i18n="f6.t">Нищо не се губи</h3>
<p data-i18n="f6.d">Всичко се пази в облака. Смениш ли телефона, влизаш със същия имейл и всичко е там.</p>
<p data-i18n="f6.d">Всичко се пази в облака. Смениш ли телефона, влизаш със същия имейл и всичко е там. Можеш и да изтеглиш всичко, заедно със снимките, като резервно копие в един файл.</p>
</article>
<article class="card small reveal">
<span class="ico"><svg class="i"><use href="#i-undo"/></svg></span>
<h3 data-i18n="f12.t">Размисли ли? Отмени.</h3>
<p data-i18n="f12.d">Изтриеш ли кутия или вещ, или извадиш вещ от кутията ѝ, за няколко секунди можеш да натиснеш „Отмени“ в съобщението и всичко се връща.</p>
</article>
<article class="card small reveal">
<span class="ico kraft"><svg class="i"><use href="#i-wifi-off"/></svg></span>
<h3 data-i18n="f13.t">Работи и в мазето</h3>
<p data-i18n="f13.d">Слаб сигнал или никакъв? След първото влизане приложението се отваря и без интернет, а промените ти се записват, щом връзката се върне.</p>
</article>
<article class="card small reveal">
<span class="ico"><svg class="i"><use href="#i-lock"/></svg></span>
<h3 data-i18n="f7.t">Само за твоите очи</h3>
<p data-i18n="f7.d">Никой друг не вижда твоите кутии и снимки. Всеки профил има свои отделни неща.</p>
<h3 data-i18n="f7.t">Твоите неща са си твои</h3>
<p data-i18n="f7.d">Никой друг потребител не вижда твоите кутии и снимки. Всеки профил има свои отделни неща.</p>
</article>
<article class="card small reveal">
<span class="ico kraft"><svg class="i"><use href="#i-refresh"/></svg></span>
<h3 data-i18n="f8.t">Обновява се само</h3>
<p data-i18n="f8.d">Новите подобрения идват сами. Не трябва да инсталираш нищо отново.</p>
</article>
<article class="card small reveal">
<span class="ico"><svg class="i"><use href="#i-languages"/></svg></span>
<h3 data-i18n="f14.t">На български и английски</h3>
<p data-i18n="f14.d">В Настройки избираш езика на приложението и светла или тъмна тема.</p>
</article>
</div>
</div>
</section>
Expand Down Expand Up @@ -808,14 +844,20 @@ <h2 data-i18n="band.title">Хайде да подредим <span class="serif">
'features.eyebrow': 'Features',
'features.title': 'Simple. Tidy. <span class="serif">Always at hand.</span>',
'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 <span class="serif">in two minutes.</span>', '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.',
Expand Down
12 changes: 8 additions & 4 deletions src/components/FullscreenImageModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
Loading