Commit Graph

56 Commits

Author SHA1 Message Date
783dd51e5a Public: fix mobile topic drawer and simplify bottom nav
Ensure topic items remain visible in the mobile sidebar by building and rendering a filtered visible topic tree with non-zero counts. Remove the redundant 'back to section/topic' action from the photo bottom nav and tighten its layout while keeping menu toggle access.
2026-02-21 13:26:02 +03:00
d220c6c84b Admin/Public: add sticky admin sidebar and keyboard navigation 2026-02-21 13:21:50 +03:00
bc85fa1644 Public: improve mobile nav and hide empty nav items
Hide sections and topics with zero photos on public sidebar while keeping both menus expanded by default. Update mobile navigation so menu toggle lives in bottom bars, add contextual page headings for catalog/photo views, and ensure sidebar drawer toggles correctly from catalog and detail screens.
2026-02-21 13:18:41 +03:00
05ebcbfd8b Admin/Public: decouple topic filter from sections
Keep section and topic menus independent on public pages so users can choose either browsing mode directly across the full gallery. Preserve active state highlighting for the current mode, update photo/detail navigation links accordingly, and refine topic edit rows in admin to keep name, sort index, and delete action on one line.
2026-02-21 13:03:27 +03:00
4a9ab2b2ad Admin/Public: tighten topic rows and improve photo detail metadata
In admin topics, align name, sort index, and delete action on one line while keeping autosave updates in place. On public pages, present viewer mode with a divider block, prevent catalog thumbnail cropping by using contain fit, and show section/topic quick links above photo previews for direct navigation.
2026-02-21 12:57:17 +03:00
6b35d93fd6 Public: polish sidebar nav behavior and context labels
Remove redundant public headings, unify section/topic navigation styles, and keep a single active item based on current browsing mode. Fix topic tree visibility with section filtering, add collapsible nav groups, and show photo position with current section/topic context on detail screens.
2026-02-21 12:50:17 +03:00
5234b1fe7a Public: unify sidebar nav and collapsible topic/section groups
Make public sidebar highlight only one active context at a time (section or topic), unify section/topic link styles, and render topics as a clean two-level tree without repeating parent names in child labels. Add collapsible groups for sections and topics and remove the redundant public H1 header.
2026-02-21 12:46:02 +03:00
0c2f0c2737 Admin/Public: refine topics workflow and gallery topic nav
Switch topic editing in admin to autosave-on-change with tree-based controls where parent selection is create-only and delete remains explicit. Add public sidebar navigation by topics with sort-index ordering, preserve topic context in photo navigation/comments, and show stable AI/comment badges on catalog cards.
2026-02-21 12:40:39 +03:00
2d1f37d9eb Admin: switch topics to tree editing layout
Render topics as a two-level tree so editing is clearer and limit updates to name/sort while parent selection stays create-only. Keep topic deletion safe with FK cascades and ensure photo tag links are cleaned automatically when a topic is removed.
2026-02-21 12:29:28 +03:00
f9b949a7bf Admin: allow topic rename/delete and instant photo tagging
Add topic editing and deletion flows in the topics admin section with nesting safeguards for two-level hierarchy. Make photo topic assignment immediate on select change so tags are attached without extra confirmation clicks, while keeping inline detach actions.
2026-02-21 12:22:38 +03:00
3f80f3fbb7 Admin: add hierarchical topics with photo tagging
Introduce a new 'topics' entity with two-level nesting and a many-to-many link to photos. Add topic management in admin and inline AJAX attach/detach controls on photo cards so editors can assign or remove topics without reloading the page.
2026-02-21 12:15:36 +03:00
da426974ac Admin/Public: streamline photo-after editing and sidebar UI
Move 'after photo' upload into the after-preview area with an inline replace action and keep rotations/uploads async so the table stays in place. Clean up autosave helper text noise, remove the redundant back link on photo detail, and loosen sidebar section spacing for a cleaner public layout.
2026-02-21 12:02:02 +03:00
c94dc1e73e Admin/Public: improve comments UX and photo navigation
Split comment users and comment moderation into separate admin sections, and add comment search by photo and user for faster moderation. Rework public photo viewing with full-frame repeated watermarking, in-section prev/next navigation, sticky desktop sidebar, and a mobile bottom nav with section return and photo position.
2026-02-21 11:52:02 +03:00
25aae39bd8 Admin: modal comments and async photo rotation
Open per-photo comments in a modal overlay from the photo table instead of navigating away, and keep deletion inline. Make rotate controls submit via AJAX so preview updates without page reload or scroll jump, while tightening button layout for cleaner action groups.
2026-02-21 11:35:33 +03:00
728050ced9 Admin: clarify photo description and add comment indicators
Rename the photo field label to avoid confusion with user comments and show comment count indicators in photo actions. Let admins open a per-photo comment view from the indicator and remove comments directly from that filtered list.
2026-02-21 11:26:49 +03:00
8dce294249 Admin: add photo rotation controls under previews
Let admins fix wrong image orientation directly in the photo table by rotating both before and after files. Add per-preview left/right 90-degree controls and rotate files on disk so changes apply everywhere immediately.
2026-02-21 11:04:41 +03:00
a0d7e0131d Public: switch to CSS-only image placeholders
Replace JS-driven loading behavior with a pure CSS skeleton background so gallery cards remain fully native links. Drop click interception and deferred JS loaders to keep photo-page navigation immediate while images are still loading.
2026-02-20 19:10:24 +03:00
0eefcf6b04 Public: defer category image fetch and unblock card navigation
Avoid navigation stalls on cold loads by delaying thumbnail requests until cards are near viewport. Stop in-flight page downloads on card click so opening a photo page is immediate even while list images are still loading.
2026-02-20 19:06:18 +03:00
92e606a87e Public: lazy-load category images for faster navigation
Prevent photo-page opens from feeling blocked while a category list is still loading. Defer thumbnail fetches and lower their fetch priority, while keeping detail images high priority for quicker render after navigation.
2026-02-20 19:00:22 +03:00
09dea4a072 Public: show loading spinner for gallery images
Make image loading feedback visible on the public gallery so users see progress on slower connections. Add a lightweight spinner overlay for list/detail photos and clear it automatically once each image finishes or fails.
2026-02-20 18:50:29 +03:00
48bb460749 Admin: split sections/photos workflows in sidebar
Separate section management from photo management to keep the admin navigation clear and focused. Add autosave for section edits, stronger double-confirmation on section removal, and explicit cleanup of before/after files when a section is deleted.
2026-02-20 18:25:33 +03:00
b241c9b9b3 Admin: add section rename and delete actions
Let admins manage section names and ordering from the media sidebar without manual DB edits. Add safe section deletion in admin flow and remove the section storage folder after DB cascade cleanup.
2026-02-20 18:20:03 +03:00
ebca47f3c5 Public: mobile sidebar drawer for inner pages
Keep the sections sidebar visible on the home screen but collapse it on inner pages to save space on phones. Add a menu toggle, overlay close controls, and edge-swipe gestures so navigation stays quickly accessible on touch devices.
2026-02-20 18:14:12 +03:00
Alex Assistant
b2acf44054 UI: align footer author to the right 2026-02-20 15:29:16 +03:00
Alex Assistant
c29eaa897b Public: disable context menu and drag on images 2026-02-20 15:28:29 +03:00
Alex Assistant
f76c869a97 Public: remove subtitle and restore footer author link 2026-02-20 15:27:47 +03:00
Alex Assistant
885dfda729 README: add Timeweb DB setup steps and charset note 2026-02-20 15:19:23 +03:00
Alex Assistant
a8ca2ff592 Fix comment save on hosts without mbstring extension 2026-02-20 15:16:05 +03:00
Alex Assistant
0995989b56 Public badge for restored photos and commenter link retrieval/regeneration 2026-02-20 15:13:46 +03:00
Alex Assistant
9207c739fc Admin: move welcome message editor to dedicated sidebar menu section 2026-02-20 15:09:42 +03:00
Alex Assistant
0e357c0e42 Public: stacked before/after and editable welcome text; admin media/comments mode polish 2026-02-20 15:08:13 +03:00
Alex Assistant
f97064ab8b Fix autosave fetch URL shadowed by input[name=action] 2026-02-20 15:01:38 +03:00
Alex Assistant
2db58562f1 Fix admin autosave endpoint to explicit admin.php with token 2026-02-20 14:57:26 +03:00
Alex Assistant
60c0641608 Fix admin autosave transport: robust AJAX detection and JSON parsing 2026-02-20 14:55:45 +03:00
Alex Assistant
62837855ef Fix autosave reliability and show after preview via non-ajax file upload 2026-02-20 14:53:09 +03:00
Alex Assistant
b923b894e9 Admin: sidebar modes, autosave photo cards, after previews and lightbox 2026-02-20 14:49:02 +03:00
Alex Assistant
eab63dcfa8 Admin UI: sidebar mode switch and fix broken thumbnails 2026-02-20 14:44:27 +03:00
Alex Assistant
e45fd0dcb0 Switch main app to MySQL flow and restore section-first bulk upload UX 2026-02-20 14:39:42 +03:00
Alex Assistant
8a0b5aad55 Add MySQL public gallery, token commenters and watermark for restored photos 2026-02-20 14:20:01 +03:00
Alex Assistant
d8fbe939a9 Add MySQL admin v1: sections and photo upload before/after 2026-02-20 14:16:03 +03:00
Alex Assistant
aa2f064d08 Fix migration runner for MySQL DDL implicit commit 2026-02-20 14:13:59 +03:00
Alex Assistant
883ff30877 Start MySQL implementation: config template, PDO layer and migrations 2026-02-20 14:07:50 +03:00
Alex Assistant
e22476da57 Fix redirect loop: robust HTTPS + non-www rules 2026-02-19 18:00:35 +03:00
Alex Assistant
6b72b57184 Add .htaccess redirects to HTTPS and non-www 2026-02-19 17:59:00 +03:00
Alex Assistant
31efcd44ab Update gallery subtitle text 2026-02-19 17:50:04 +03:00
Alex Assistant
8d93605093 Add favicon and subtle footer author link 2026-02-19 17:46:46 +03:00
Alex Assistant
9635859c2e Update README with sorting, admin flow, covers and cache-busting 2026-02-19 17:42:10 +03:00
Alex Assistant
fa3fb2c77c Add cache-busting version param for CSS/JS assets 2026-02-19 17:38:14 +03:00
Alex Assistant
0bb5b4dcf9 Show category cover thumbnails on public gallery 2026-02-19 17:35:27 +03:00
Alex Assistant
b789085c33 Add sort index auto-cleanup and thumbnails in admin photo list 2026-02-19 17:29:30 +03:00