Commit Graph

21 Commits

Author SHA1 Message Date
SlimusMinus
140a31982a fixed desktop version 2026-10-23 00:02:44 +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
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
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
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
f75df406ce fixed compress image 2026-10-15 01:29:07 +03:00
SlimusMinus
23e692afe8 add missing AddressAutocomplete and yandexGeo files
They are imported by CreateUpdatePost.jsx and useYandexMap.js but were left
out of d3f4ae0, which broke the Docker build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 00:09:21 +03:00
SlimusMinus
1aeda90da1 added timezone and fix chat 2026-10-11 23:29:27 +03:00
SlimusMinus
6dc61050d9 Add Docker build and deploy pipeline
Some checks failed
deploy-frontend / deploy (push) Failing after 11s
2026-10-07 23:27:38 +03:00
SlimusMinus
bd3f997677 fixed lan and lon on post 2026-10-06 01:24:28 +03:00
SlimusMinus
d94a6782a4 fix bug and errors 2026-10-06 01:00:10 +03:00
SlimusMinus
4e20315998 added advertising 2026-09-23 23:38:54 +03:00
SlimusMinus
204627565f added button back from map and fix post on map 2026-09-08 23:20:27 +03:00
SlimusMinus
053b7b52ad added date on chat 2026-08-13 00:52:56 +03:00
SlimusMinus
66ff0dc5bf fixed image and name chat 2026-08-13 00:37:41 +03:00
SlimusMinus
2b9cb62c72 fixed code v3 2026-08-12 23:28:35 +03:00
SlimusMinus
e45c9326ed fixed code v2 2026-08-12 00:38:04 +03:00
SlimusMinus
7f59ee1f38 fixed code 2026-08-11 00:24:07 +03:00
SlimusMinus
2c7ac9af84 added checkbox rules_accepted in post 2026-07-29 01:24:57 +03:00
SlimusMinus
fffcdaa526 added english language 2026-07-09 00:09:45 +03:00
SlimusMinus
fbdcada3d2 global refactoring 2026-06-02 01:10:56 +03:00