Commit Graph

269 Commits

Author SHA1 Message Date
SlimusMinus
133becd255 Merge pull request #127 from SlimusMinus/feat-guest_guide
All checks were successful
deploy-frontend / deploy (push) Successful in 51s
Add first-visit tip and how-to guide for guests
2026-10-29 22:26:08 +03:00
SlimusMinus
df91e7e129 Add first-visit tip and how-to guide for guests
- guests in the feed see a "New here?" tip with a waving hand: swipe up to
  dismiss on mobile (top), close button on desktop (bottom right); shown
  once, remembered in localStorage
- GuideModal: six short steps (feed and map, map pins, posting, chat with
  photos/video, phone reveal, marking as returned) plus safety tips;
  guests get a sign-in button
- "How it works" item in the mobile menu and the desktop sidebar
- ru/en texts, tests, README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 22:25:15 +03:00
SlimusMinus
025ba2d637 Merge pull request #126 from SlimusMinus/docs-chat_media
All checks were successful
deploy-frontend / deploy (push) Successful in 51s
Document chat media, phone reveal and desktop layout in README
2026-10-29 21:47:19 +03:00
SlimusMinus
94af58b542 Document chat media, phone reveal and desktop layout in README
- chat: post info in header and list, photo and video attachments,
  viewer, /chats/new draft, new chat endpoints and WebSocket updates
- phone reveal via proof-of-work, phoneVisible consent, closedAt
- desktop layout components, new hooks, utils and styles
- fix outdated notes: compressImage, chat creation endpoint, backend branches

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 21:46:27 +03:00
SlimusMinus
427827a32b Merge pull request #125 from SlimusMinus/feat-chat_video
All checks were successful
deploy-frontend / deploy (push) Successful in 55s
Send and play videos in chats
2026-10-28 23:15:38 +03:00
SlimusMinus
b94ef2918c Send and play videos in chats
- the attach button accepts one video per message (MP4, MOV, WebM, 3GP);
  type, size (100 MB) and duration (60 s) are checked before upload
- the video is uploaded straight to storage with a progress indicator,
  then confirmed; the message shows "processing" until the server pushes
  the ready (or failed) version over WebSocket
- player with poster and duration in bubbles; fresh links when they expire
- chat list preview shows "Video" for video-only messages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 23:00:18 +03:00
SlimusMinus
0e3cac62a4 Merge pull request #124 from SlimusMinus/feat-chat_photos
All checks were successful
deploy-frontend / deploy (push) Successful in 56s
Send and view photos in chats
2026-10-28 22:29:41 +03:00
SlimusMinus
b7b30575a2 Send and view photos in chats
- paperclip button and clipboard paste in the chat input, previews with
  remove, up to 10 photos per message (sent via REST multipart)
- photos in message bubbles with reserved size, fullscreen viewer
  (arrows, swipe, Esc), fresh link when a presigned URL expires
- chat list preview shows "Photo" for photo-only messages
- keep the feed pinned to the bottom when the preview strip appears

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:26:44 +03:00
SlimusMinus
0380bc8985 Merge pull request #123 from SlimusMinus/feat-chat_post_info
All checks were successful
deploy-frontend / deploy (push) Successful in 56s
Show which listing each chat is about
2026-10-28 21:20:41 +03:00
SlimusMinus
33bd002f98 Show which listing each chat is about
The chat list and header show the listing's type, city and closed/deleted
status; the header info button opens the full listing in PostDetailModal
with a "show on map" action. Deleted or unpublished listings are marked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 21:17:58 +03:00
SlimusMinus
3811c5a133 Merge pull request #122 from SlimusMinus/fix-show_phone_number
All checks were successful
deploy-frontend / deploy (push) Successful in 55s
fixed show phone number
2026-10-27 22:54:20 +03:00
SlimusMinus
4b7db41a97 fixed show phone number 2026-10-27 22:52:10 +03:00
SlimusMinus
113355c0ef Merge pull request #121 from SlimusMinus/feat-profile_photo_dragdrop
All checks were successful
deploy-frontend / deploy (push) Successful in 47s
Desktop: drag and drop profile photo; share drop-zone hook with post …
2026-10-26 23:29:58 +03:00
SlimusMinus
16b886081b Desktop: drag and drop profile photo; share drop-zone hook with post form
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 23:27:40 +03:00
SlimusMinus
abd6f83535 Merge pull request #120 from SlimusMinus/feat-profile_hide_email
Hide email field in profile edit modal
2026-10-26 23:22:31 +03:00
SlimusMinus
a2706944bd Hide email field in profile edit modal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 23:21:57 +03:00
SlimusMinus
532b5b45f3 Merge pull request #119 from SlimusMinus/feat-post_phone_from_profile
Prefill post phone from user profile
2026-10-26 23:13:27 +03:00
SlimusMinus
bb8f3263f8 Prefill post phone from user profile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 23:01:47 +03:00
SlimusMinus
a8a0292535 Merge pull request #118 from SlimusMinus/feat-desktop_photo_dragdrop
Desktop: drag and drop photos into the post form
2026-10-26 22:53:43 +03:00
SlimusMinus
c0aaed7d28 Desktop: drag and drop photos into the post form
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 22:51:53 +03:00
SlimusMinus
a657bd0762 Merge pull request #117 from SlimusMinus/feat-map_reward_button
All checks were successful
deploy-frontend / deploy (push) Successful in 49s
Show reward button on photo in posts opened from the map
2026-10-26 22:41:50 +03:00
SlimusMinus
3eec48d263 Show reward button on photo in posts opened from the map
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 22:38:32 +03:00
SlimusMinus
fc3e5be236 Merge pull request #116 from SlimusMinus/fix-desktop_post_modal_backdrop
Desktop: close post form only via the cross, not on backdrop click
2026-10-26 22:27:35 +03:00
SlimusMinus
83af2dda12 Desktop: close post form only via the cross, not on backdrop click
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 22:21:57 +03:00
SlimusMinus
833b735b4a Merge pull request #115 from SlimusMinus/feat-desktop_logo_feed
All checks were successful
deploy-frontend / deploy (push) Successful in 54s
Desktop sidebar: logo opens /feed, add About item linking to start page
2026-10-26 22:04:39 +03:00
SlimusMinus
ed4684c0ed Desktop sidebar: logo opens /feed, add About item linking to start page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 22:01:35 +03:00
SlimusMinus
d95167d3f3 Merge pull request #114 from SlimusMinus/fix-landing_cyrillic_font
Replace Fraunces with Literata in landing headings for Cyrillic support
2026-10-26 18:42:46 +03:00
SlimusMinus
ff59ce8ca6 Replace Fraunces with Literata in landing headings for Cyrillic support
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 18:40:39 +03:00
SlimusMinus
7ca4c99218 Merge pull request #113 from SlimusMinus/fix-found_hide_reward
Hide reward for FOUND posts in feed card and post form
2026-10-26 18:36:59 +03:00
SlimusMinus
04a5c2e66c Hide reward for FOUND posts in feed card and post form
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 18:33:19 +03:00
SlimusMinus
645005a5d0 Merge pull request #112 from SlimusMinus/desktop-redesign
All checks were successful
deploy-frontend / deploy (push) Successful in 2m2s
fixed desktop version
2026-10-23 00:05:40 +03:00
SlimusMinus
140a31982a fixed desktop version 2026-10-23 00:02:44 +03:00
SlimusMinus
83ae74636b Merge pull request #111 from SlimusMinus/fix_email
All checks were successful
deploy-frontend / deploy (push) Successful in 43s
fixed email
2026-10-21 23:08:54 +03:00
SlimusMinus
45220b9bda fixed email 2026-10-21 23:06:34 +03:00
SlimusMinus
e36165b5b1 Merge pull request #110 from SlimusMinus/fix-map_marker_images
All checks were successful
deploy-frontend / deploy (push) Successful in 45s
Fix map marker photos: escapeCssUrl no longer encodes the letter "s"
2026-10-21 22:54:46 +03:00
SlimusMinus
bfc9a1bd1d Fix map marker photos: escapeCssUrl no longer encodes the letter "s"
The character class /['"()\s<>]/ matched a backslash and the letter "s"
instead of whitespace, so every "s" in a marker image URL became %73
(https:// -> http%73://). The colored circles still rendered, but the
background-image URL was broken. Use \\s (backslash + whitespace).

Add tests: escapeCssUrl keeps a presigned URL intact and still encodes
backslash/whitespace; MapView puts the original imageUrl into the marker
template.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 22:51:36 +03:00
SlimusMinus
f25d034cad Merge pull request #109 from SlimusMinus/ci-github_actions
All checks were successful
deploy-frontend / deploy (push) Successful in 1m59s
Add GitHub Actions CI: lint, typecheck, tests and build on PRs to master
2026-10-21 22:32:49 +03:00
SlimusMinus
5cd2fe70a4 Add GitHub Actions CI: lint, typecheck, tests and build on PRs to master
Runs on every pull request to master and on push to master (Node 22,
npm ci, CI=true). The gitea deploy workflow is unchanged. README
describes the check and recommends making it required for master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 22:27:35 +03:00
SlimusMinus
e1d539a9d5 Merge pull request #108 from SlimusMinus/fix-posts_api_stage2
All checks were successful
deploy-frontend / deploy (push) Successful in 44s
Posts API stage 2: one post at /posts/{id}, no legacy user-posts fall…
2026-10-21 00:10:12 +03:00
SlimusMinus
ec713f3da1 Posts API stage 2: one post at /posts/{id}, no legacy user-posts fallback
- Post detail and map focus load GET /api/v1/posts/{id}
- My posts use only GET /api/v1/users/{id}/posts
- README: requires the stage 2 backend (deploy backend first)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 00:05:20 +03:00
SlimusMinus
d09c2c71ce Merge pull request #107 from SlimusMinus/fix-fonts_loading
All checks were successful
deploy-frontend / deploy (push) Successful in 44s
Load Google Fonts and Yandex Maps without blocking app start
2026-10-20 23:46:20 +03:00
SlimusMinus
2af5f4acb9 Load Google Fonts and Yandex Maps without blocking app start
The fonts were pulled by @import inside the main CSS bundle; the deferred app
bundle waited for that stylesheet, so a slow fonts.googleapis.com kept the page
blank for 20-30 s. Fonts now load from index.html as a print stylesheet switched
on by onload (text renders with a fallback font meanwhile, display=swap).

The Maps API script was defer, so the app bundle (deferred after it) could not
run until the Maps API downloaded. It is async now; map code already waits for
window.ymaps via whenYmapsReady.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 23:44:50 +03:00
SlimusMinus
d53174a1cf Merge pull request #106 from SlimusMinus/add-chat_errors
All checks were successful
deploy-frontend / deploy (push) Successful in 45s
added chat error
2026-10-20 23:26:33 +03:00
SlimusMinus
86442b8c93 added chat error 2026-10-20 23:25:26 +03:00
SlimusMinus
ba919c015e Merge pull request #105 from SlimusMinus/fix-front_review
All checks were successful
deploy-frontend / deploy (push) Successful in 2m0s
Fix front review
2026-10-20 22:56:28 +03:00
SlimusMinus
8618db6a88 Reviews: readable submit errors (400 text, 429)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 11:56:58 +03:00
SlimusMinus
a029254cf0 Tests for auth refresh, ad viewability and URL safety; nginx, Dockerfile, README
- Jest: single-flight refresh, session expiry vs transient errors, token save on login change,
  logout revoke, IAB viewability, safe URLs, HTML escaping, password policy, ad session id
- test:ci with explicit testMatch (dot-directories in worktree paths hid all tests)
- nginx: gzip, nosniff/Referrer-Policy/X-Frame-Options, no-cache for index.html
- Dockerfile: npm ci, REACT_APP_WS_ERROR_QUEUE build arg
- README: new backend contracts, flags, compatibility notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 11:56:39 +03:00
SlimusMinus
804018d2ce Campaign stats in admin, user posts via new route, safer ad creation
- Admin: campaign stats panel (impressions, clicks, CTR per campaign and ad) with date range
- My posts: GET /api/v1/users/{id}/posts with paging, fallback to the legacy route
- Ad creation: retry after a failed video upload reuses the created ad; show backend 400 text
- Fullscreen ad form: only absolute http(s) target URLs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 11:53:08 +03:00
SlimusMinus
db37befb8d Support new backend contracts: single-flight refresh, ad impression tokens, error handling
- apiFetch: proactive refresh, cross-tab single-flight via Web Locks, no logout on transient errors
- AuthContext: save tokens returned on own login change, revoke refresh on logout, sync tabs
- Ads: X-Session-Id, impressionToken in impression/click, IAB viewability, safe http(s) targetUrl
- STOMP: refresh before CONNECT, stop reconnect loop on dead session, /user/queue/errors behind flag
- Auth form: password 8 chars / 72 bytes; 429/413 messages via describeApiError
- My posts with auth + moderation badges; post form step validation and field limits
- Map: escape user text in Yandex hint/template

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 02:03:42 +03:00
SlimusMinus
67de963d6d Merge pull request #104 from SlimusMinus/change-main_icon
All checks were successful
deploy-frontend / deploy (push) Successful in 43s
changed main icon
2026-10-19 01:43:10 +03:00