Compare commits

..
Author SHA1 Message Date
fecoandClaude Opus 5.5 ad9702a82e Merge main: the forum (community module), Cloudflare Turnstile on e-mail sign-up, password eye button
CI / test (push) Successful in 3m7s
CI / build (push) Successful in 11m56s
CI / deploy (push) Successful in 1m0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-26 17:27:51 +00:00
fecoandClaude Opus 5.5 670a6f0584 Merge main: new prices, forecast in Egy elemzés, free person slots (30)
CI / test (push) Successful in 2m39s
CI / build (push) Successful in 9m49s
CI / deploy (push) Successful in 41s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-24 18:38:54 +00:00
fecoandClaude Opus 5.5 86f61c215a Merge main: Christmas gifts, timed gift e-mails, public gift pages
CI / test (push) Successful in 2m30s
CI / build (push) Successful in 7m52s
CI / deploy (push) Successful in 41s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-24 17:08:44 +00:00
fecoandClaude Opus 5.5 dff8f692b0 Merge main: new app header (marks, Felfedezés dropdown, the Moon today), package cards text
CI / test (push) Successful in 2m26s
CI / build (push) Successful in 8m39s
CI / deploy (push) Successful in 50s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-24 09:21:17 +00:00
fecoandClaude Opus 5.5 29731e32f3 Merge main: feedback (ratings, messages, NPS), contact page, footer on every page, Docker cache fix
CI / test (push) Successful in 2m32s
CI / build (push) Successful in 7m48s
CI / deploy (push) Successful in 42s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-24 07:50:49 +00:00
fecoandClaude Opus 5.5 f989c14f74 Merge main: gift packages with printable gift card, withdrawal refund and storno
CI / test (push) Successful in 2m24s
CI / build (push) Successful in 8m23s
CI / deploy (push) Successful in 45s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-23 21:31:28 +00:00
fecoandClaude Opus 5.5 dcabf0a36e Merge main: moon and retrograde calendars, today in the sky card
CI / test (push) Successful in 2m0s
CI / build (push) Successful in 6m41s
CI / deploy (push) Successful in 42s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-23 17:25:11 +00:00
fecoandClaude Opus 5.5 8c65d45907 Merge main: admin user totals (users, buyers) and short unit marks
CI / test (push) Successful in 1m59s
CI / build (push) Successful in 6m18s
CI / deploy (push) Successful in 38s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-23 13:07:13 +00:00
fecoandClaude Opus 5.5 4768d2de02 Merge main: question chat panel, gift e-mails, admin dialog fixes, question guard
CI / test (push) Successful in 2m2s
CI / build (push) Successful in 6m36s
CI / deploy (push) Successful in 45s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-23 11:39:51 +00:00
fecoandClaude Opus 5.5 321d43f369 Merge main: admin user dialog and paging, creators edit famous people, error log paging and deletion, no waitlist, invitation gift, home page for logged-in users
CI / test (push) Successful in 1m58s
CI / build (push) Successful in 7m44s
CI / deploy (push) Successful in 46s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-23 10:18:24 +00:00
feco 018ccf76a0 Merge main: hamburger menu, famous people in the menus, portrait page cache
CI / test (push) Successful in 1m55s
CI / build (push) Successful in 5m59s
CI / deploy (push) Successful in 44s
2026-11-22 17:16:02 +00:00
feco 2b856a798e Merge main: famous people, share image glyphs, CI on main runs tests only
CI / test (push) Successful in 1m57s
CI / build (push) Successful in 7m18s
CI / deploy (push) Successful in 45s
2026-11-22 16:43:44 +00:00
fecoandClaude Opus 5.5 47bbe2f348 Merge main into prod: one-card reading text, reading in progress stays on the table
CI / test (push) Successful in 1m44s
CI / build (push) Successful in 2m21s
CI / deploy (push) Successful in 48s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-22 11:33:27 +00:00
fecoandClaude Opus 5.5 f6fc2e46ac Merge main into prod: one-card tarot readings, header row on phones
CI / test (push) Successful in 1m47s
CI / build (push) Successful in 1m7s
CI / deploy (push) Successful in 45s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-22 11:07:34 +00:00
fecoandClaude Opus 5.5 2ca065894d Merge main into prod: Hungarian error messages, visible input focus
CI / test (push) Successful in 1m49s
CI / build (push) Successful in 54s
CI / deploy (push) Successful in 42s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-22 10:36:31 +00:00
fecoandClaude Opus 5.5 9331573890 Merge main into prod: password login, free birth chart, sign pages, legal pages, Telegram notices
CI / test (push) Successful in 1m43s
CI / build (push) Successful in 25s
CI / deploy (push) Successful in 37s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-22 09:53:45 +00:00
feco 85aa3fc5b1 Merge main: optional Beszel monitoring agent
CI / test (push) Successful in 1m31s
CI / build (push) Successful in 33s
CI / deploy (push) Successful in 34s
2026-11-21 10:16:21 +00:00
feco cf4d419e52 Merge main into prod: Hungarian birth date and time fields
CI / test (push) Successful in 1m36s
CI / build (push) Successful in 21s
CI / deploy (push) Successful in 37s
2026-11-20 21:34:50 +00:00
feco 810de0cb24 Merge main into prod: review fixes
CI / test (push) Successful in 1m38s
CI / build (push) Successful in 2m6s
CI / deploy (push) Successful in 52s
2026-11-20 20:43:51 +00:00
feco e68f7407f3 Merge main into prod: Sign in with Apple
CI / build (push) Successful in 24s
CI / deploy (push) Successful in 43s
CI / test (push) Successful in 1m34s
2026-11-20 19:42:27 +00:00
feco ad436f786c Merge main into prod: log review fixes, graceful worker stop
CI / deploy (push) Successful in 42s
CI / test (push) Successful in 1m32s
CI / build (push) Successful in 24s
2026-11-20 19:09:37 +00:00
feco a2649fddeb Merge main into prod: account menu, persistent logs, softer copy
CI / test (push) Successful in 1m33s
CI / build (push) Successful in 25s
CI / deploy (push) Successful in 1m20s
2026-11-20 17:51:25 +00:00
feco f69f76a05a Merge main into prod: tarot on the home page, footer and description
CI / build (push) Successful in 23s
CI / deploy (push) Successful in 1m0s
CI / test (push) Successful in 1m31s
2026-11-20 17:11:18 +00:00
feco 1a75dec59a Merge main into prod: tarot topics, Párkapcsolat example tab
CI / test (push) Successful in 1m29s
CI / build (push) Successful in 22s
CI / deploy (push) Successful in 40s
2026-11-20 16:25:13 +00:00
sagifer 663ceaca16 Merge pull request 'Tarot example: the draw played as an animation, and a love reading' (#31) from main into prod
CI / build (push) Successful in 1m35s
CI / deploy (push) Successful in 52s
CI / test (push) Successful in 1m29s
Reviewed-on: #31
2026-11-20 16:54:03 +01:00
feco 22d2484cab Merge main into prod: tarot readings, ÁSZF consent off until the opening
CI / test (push) Successful in 1m34s
CI / build (push) Successful in 23s
CI / deploy (push) Successful in 39s
2026-11-20 14:54:53 +00:00
sagifer 1af7415add Merge pull request 'ÁSZF: terms page, consent on every purchase, confirmation e-mail' (#30) from main into prod
CI / test (push) Successful in 1m30s
CI / build (push) Successful in 2m8s
CI / deploy (push) Successful in 48s
Reviewed-on: #30
2026-11-20 13:17:15 +01:00
fecoandClaude Opus 5.5 71177f749c Merge main into prod: invoice test payments, admins use units
CI / test (push) Successful in 1m26s
CI / build (push) Successful in 22s
CI / deploy (push) Successful in 52s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-20 10:59:17 +00:00
sagifer bbfa5b28c3 Merge pull request 'Invoice every payment again, test payments included' (#29) from main into prod
CI / test (push) Successful in 1m29s
CI / build (push) Successful in 1m50s
CI / deploy (push) Successful in 55s
Reviewed-on: #29
2026-11-20 11:09:30 +01:00
fecoandClaude Opus 5.5 ba11eda64c Merge main into prod: invoice fixes
CI / test (push) Successful in 1m28s
CI / build (push) Successful in 19s
CI / deploy (push) Successful in 34s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-20 08:56:08 +00:00
fecoandClaude Opus 5.5 174ec31351 Merge main into prod: migration fix (site down)
CI / test (push) Successful in 1m28s
CI / build (push) Successful in 21s
CI / deploy (push) Successful in 33s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-20 08:18:56 +00:00
fecoandClaude Opus 5.5 27ecdf386e Merge main into prod
CI / test (push) Successful in 1m29s
CI / build (push) Successful in 2m2s
CI / deploy (push) Failing after 34s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-20 08:05:38 +00:00
sagifer 5e633b959d Merge pull request 'Main' (#28) from main into prod
CI / test (push) Successful in 1m29s
CI / build (push) Successful in 2m29s
CI / deploy (push) Successful in 50s
Reviewed-on: #28
2026-11-20 08:01:11 +01:00
sagifer a4df094191 Merge pull request 'Sitemap for the public pages, linked from robots.txt' (#27) from main into prod
CI / test (push) Successful in 1m18s
CI / build (push) Successful in 21s
CI / deploy (push) Successful in 37s
Reviewed-on: #27
2026-11-20 03:15:22 +01:00
sagifer 15c88fc6be Merge pull request 'Form fields: room in text areas, our own select chevron' (#26) from main into prod
CI / test (push) Successful in 1m21s
CI / build (push) Successful in 22s
CI / deploy (push) Successful in 36s
Reviewed-on: #26
2026-11-19 21:38:23 +01:00
sagifer ddca7acbd4 Merge pull request 'Chart page: a balanced layout around the wheel' (#25) from main into prod
CI / test (push) Successful in 1m18s
CI / build (push) Successful in 20s
CI / deploy (push) Successful in 38s
Reviewed-on: #25
2026-11-19 19:36:31 +01:00
sagifer fd655952b6 Merge pull request 'The logo mark next to the wordmark' (#24) from main into prod
CI / test (push) Successful in 1m19s
CI / build (push) Successful in 22s
CI / deploy (push) Successful in 37s
Reviewed-on: #24
2026-11-19 18:41:57 +01:00
feco b672b1cefa Merge main into prod: favicon and footer logos
CI / test (push) Successful in 1m19s
CI / build (push) Successful in 20s
CI / deploy (push) Successful in 38s
2026-11-19 15:37:37 +00:00
sagifer f2953dd18f Merge pull request 'Main' (#23) from main into prod
CI / test (push) Successful in 1m15s
CI / build (push) Successful in 24s
CI / deploy (push) Successful in 37s
Reviewed-on: #23
2026-11-19 14:31:47 +01:00
feco 0c4274d87b Merge main into prod: home page AI note
CI / test (push) Successful in 1m22s
CI / build (push) Successful in 20s
CI / deploy (push) Successful in 37s
2026-11-19 12:09:01 +00:00
sagifer 4a2a84b36f Merge pull request 'Logging out (and deleting the account) leads to the home page' (#22) from main into prod
CI / test (push) Successful in 1m19s
CI / build (push) Successful in 1m36s
CI / deploy (push) Successful in 37s
Reviewed-on: #22
2026-11-19 13:05:05 +01:00
sagifer 3944c6a4b0 Merge pull request 'Main' (#21) from main into prod
CI / test (push) Successful in 1m15s
CI / build (push) Successful in 22s
CI / deploy (push) Successful in 37s
Reviewed-on: #21
2026-11-19 12:54:15 +01:00
sagifer a352e359c4 Merge pull request 'Main' (#20) from main into prod
CI / test (push) Successful in 1m23s
CI / build (push) Successful in 22s
CI / deploy (push) Successful in 36s
Reviewed-on: #20
2026-11-19 12:29:51 +01:00
sagifer d9ca806d50 Merge pull request 'a' (#19) from main into prod
CI / test (push) Successful in 1m11s
CI / build (push) Successful in 20s
CI / deploy (push) Successful in 38s
Reviewed-on: #19
2026-11-19 10:35:29 +01:00
sagifer f037522052 Merge pull request 'Sharing a chart with its short summary, with link previews' (#18) from main into prod
CI / test (push) Successful in 1m9s
CI / build (push) Successful in 21s
CI / deploy (push) Successful in 41s
Reviewed-on: #18
2026-11-19 09:11:59 +01:00
sagifer e476117c77 Merge pull request 'Main' (#17) from main into prod
CI / test (push) Successful in 1m9s
CI / build (push) Successful in 56s
CI / deploy (push) Successful in 34s
Reviewed-on: #17
2026-11-19 08:13:18 +01:00
sagifer d758f5bf12 Merge pull request 'Frontend: justified generated text, mobile layout without sideways scrolling' (#16) from main into prod
CI / test (push) Successful in 1m7s
CI / build (push) Successful in 21s
CI / deploy (push) Successful in 51s
Reviewed-on: #16
2026-11-19 07:15:09 +01:00
fecoandClaude Opus 5.5 8b2c4310ba Merge main into prod: restart running generations, error log, retry notice, questions on relationship analyses
CI / test (push) Successful in 1m7s
CI / build (push) Successful in 19s
CI / deploy (push) Successful in 52s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-18 21:51:39 +00:00
fecoandClaude Opus 5.5 1c24b9a23f Merge main into prod: model functions (analyses, answers, summary), Opus 5.5 default and fallback
CI / test (push) Successful in 1m0s
CI / build (push) Successful in 19s
CI / deploy (push) Successful in 53s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-18 21:14:13 +00:00
fecoandClaude Opus 5.5 86758cf848 Merge main into prod: worker room and time for reasoning models
CI / test (push) Successful in 1m0s
CI / build (push) Successful in 20s
CI / deploy (push) Successful in 35s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-18 19:52:02 +00:00
sagifer 39d75eddbd Merge pull request 'Main' (#15) from main into prod
CI / test (push) Successful in 1m3s
CI / build (push) Successful in 21s
CI / deploy (push) Successful in 44s
Reviewed-on: #15
2026-11-18 20:02:23 +01:00
sagifer f4ee40f45d Merge pull request 'Hungarian prompts in Hungarian, model choice per analysis kind, admin regenerate' (#14) from main into prod
CI / test (push) Successful in 58s
CI / build (push) Successful in 15s
CI / deploy (push) Successful in 39s
Reviewed-on: #14
2026-11-18 18:48:09 +01:00
sagifer 422078545e Merge pull request 'Quincunx in the default aspects, sign-based moon phases, backend recalculate command' (#13) from main into prod
CI / test (push) Successful in 57s
CI / build (push) Successful in 23s
CI / deploy (push) Successful in 39s
Reviewed-on: #13
2026-11-18 13:20:31 +01:00
sagifer 2a7cb467cf Merge pull request 'Main' (#12) from main into prod
CI / test (push) Successful in 55s
CI / build (push) Successful in 13s
CI / deploy (push) Successful in 36s
Reviewed-on: #12
2026-11-18 12:41:13 +01:00
sagifer c20ab45c9d Merge pull request 'Yearly forecast: solar return, transits, progressions, profection, eclipses' (#11) from main into prod
CI / test (push) Successful in 58s
CI / build (push) Successful in 43s
CI / deploy (push) Successful in 50s
Reviewed-on: #11
2026-11-18 09:45:53 +01:00
sagifer cf625abff2 Merge pull request 'Main' (#10) from main into prod
CI / test (push) Successful in 51s
CI / build (push) Successful in 12s
CI / deploy (push) Successful in 40s
Reviewed-on: #10
2026-11-18 07:35:17 +01:00
sagifer 85977cb7af Merge pull request 'Header shows the user's package and what is left of it' (#9) from main into prod
CI / test (push) Successful in 50s
CI / build (push) Successful in 13s
CI / deploy (push) Successful in 38s
Reviewed-on: #9
2026-11-17 21:05:49 +01:00
sagifer 2032837aad Merge pull request 'Main' (#7) from main into prod
CI / test (push) Successful in 57s
CI / build (push) Successful in 1m20s
CI / deploy (push) Successful in 42s
Reviewed-on: #7
2026-11-17 19:58:35 +01:00
sagifer a097cf4311 Merge pull request 'Main' (#6) from main into prod
CI / test (push) Successful in 45s
CI / build (push) Successful in 13s
CI / deploy (push) Successful in 41s
Reviewed-on: #6
2026-11-17 17:45:40 +01:00
sagifer bf7fb937d2 Merge pull request 'Worker tests: set the chart kind (charts_primary_is_own)' (#5) from main into prod
CI / test (push) Successful in 44s
CI / build (push) Successful in 13s
CI / deploy (push) Successful in 38s
Reviewed-on: #5
2026-11-17 13:25:02 +01:00
sagifer a8ce5490c8 Merge pull request 'Main' (#4) from main into prod
CI / test (push) Failing after 43s
CI / build (push) Skipped
CI / deploy (push) Skipped
Reviewed-on: #4
2026-11-17 13:15:24 +01:00
sagifer b0b0347b04 Merge pull request 'Main' (#3) from main into prod
CI / test (push) Successful in 39s
CI / build (push) Successful in 39s
CI / deploy (push) Successful in 42s
Reviewed-on: #3
2026-11-17 11:24:13 +01:00
sagifer a75712a60a Merge pull request 'Aspect grid: the usual triangular matrix, values in collapsible details' (#2) from main into prod
CI / test (push) Successful in 40s
CI / build (push) Successful in 13s
CI / deploy (push) Successful in 44s
Reviewed-on: #2
2026-11-17 10:51:21 +01:00
sagifer e08b6121a2 Merge pull request 'Main' (#1) from main into prod
CI / test (push) Successful in 39s
CI / build (push) Successful in 13s
CI / deploy (push) Successful in 38s
Reviewed-on: #1
2026-11-17 08:04:09 +01:00
16 changed files with 76 additions and 244 deletions
+4 -4
View File
@@ -157,7 +157,7 @@ Jelölés: ami mellett **(javaslat)** áll, azt még nem hagytuk jóvá, a több
- **Napi „Mai égbolt” szál:** a worker reggel 5 órától nyitja meg az „Égbolt és képletek” témában, a backend nyilvános égboltjából (a Hold jegye és fázisa, jegyváltás, retrográd bolygók, a következő holdfázis), kötött magyar mondatokkal, AI nélkül. Egy napig ki van tűzve; a szerzője „Sorsfonalak”. - **Napi „Mai égbolt” szál:** a worker reggel 5 órától nyitja meg az „Égbolt és képletek” témában, a backend nyilvános égboltjából (a Hold jegye és fázisa, jegyváltás, retrográd bolygók, a következő holdfázis), kötött magyar mondatokkal, AI nélkül. Egy napig ki van tűzve; a szerzője „Sorsfonalak”.
- **Önkéntes kísérők** (a Kereső rangtól; eredetileg „meghallgató”, a felhasználó átnevezte): „Kísérő” jelvény; a fórum főoldalán, a saját kártyájukon látják, hány meghallgatást kérő szál vár válaszra; e-mail, ha egy szál két órája vár (ha kérik, legfeljebb hatóránként egy). - **Önkéntes kísérők** (a Kereső rangtól; eredetileg „meghallgató”, a felhasználó átnevezte): „Kísérő” jelvény; a fórum főoldalán, a saját kártyájukon látják, hány meghallgatást kérő szál vár válaszra; e-mail, ha egy szál két órája vár (ha kérik, legfeljebb hatóránként egy).
- **Említés:** „@Holdfény” (szóközös álnévvel is). Az említett tag követni kezdi a szálat, élőben és (ha kéri) e-mailben is értesül. Gépelés közben ajánló segít, az említés link a profilra. - **Említés:** „@Holdfény” (szóközös álnévvel is). Az említett tag követni kezdi a szálat, élőben és (ha kéri) e-mailben is értesül. Gépelés közben ajánló segít, az említés link a profilra.
- **Saját avatar** bárkinek (eredetileg a Kereső rangtól; 2026-11-26 óta minden tag): 256×256-os JPEG lesz belőle, a kép rejtett adatai (EXIF) nélkül, a backenddel közös tárolóban (`crates/object-storage`, `forum-avatars/`). A moderátor visszaállíthatja a kezdő avatart. A fiók törlésekor a kép is törlődik. - **Saját avatar** a Kereső rangtól: 256×256-os JPEG lesz belőle, a kép rejtett adatai (EXIF) nélkül, a backenddel közös tárolóban (`crates/object-storage`, `forum-avatars/`). A moderátor visszaállíthatja a kezdő avatart. A fiók törlésekor a kép is törlődik.
- **„Támogató” jelvény:** csak vásárlóknak, és csak ha bekapcsolják. Rangot nem ad. - **„Támogató” jelvény:** csak vásárlóknak, és csak ha bekapcsolják. Rangot nem ad.
- **Zárt témák:** az admin a Moderálás → Témák fülön hoz létre és szerkeszt témát. A zárt témába a tag pár szóval jelentkezik, egy moderátor jóváhagyja vagy elutasítja, és később el is távolíthatja. Az elutasított jelentkezés azonnal törlődik (a moderálási naplóban marad nyoma). - **Zárt témák:** az admin a Moderálás → Témák fülön hoz létre és szerkeszt témát. A zárt témába a tag pár szóval jelentkezik, egy moderátor jóváhagyja vagy elutasítja, és később el is távolíthatja. Az elutasított jelentkezés azonnal törlődik (a moderálási naplóban marad nyoma).
- **Csak tagoknak szóló témák:** a téma oldalán és a szál morzsamenüjében belépve is látszik, hogy kívülről és a keresőkből nem olvasható. - **Csak tagoknak szóló témák:** a téma oldalán és a szál morzsamenüjében belépve is látszik, hogy kívülről és a keresőkből nem olvasható.
@@ -272,14 +272,14 @@ Rangnevek (javaslat): *Vándor → Kereső → Fonó → Csillagfonó → Sorsfo
A rang egyben **jogosultsági szint** is: ettől függ, ki küldhet privát üzenetkérést, ki tölthet fel saját avatart, ki tehet be linket, és ki használhatja a ⌄ jelet. A rang egyben **jogosultsági szint** is: ettől függ, ki küldhet privát üzenetkérést, ki tölthet fel saját avatart, ki tehet be linket, és ki használhatja a ⌄ jelet.
**A kezdő (Vándor) is nyithat szálat és hozzászólhat**, mert lehet, hogy épp segítségre van szüksége. A hozzászólásai nem várnak moderátori jóváhagyásra. ~~Privát üzenetet viszont nem kezdeményezhet.~~ **2026-11-26 óta privát beszélgetést is kérhet az első naptól** (a felhasználó döntése; később korlátozható, a `messages.rs` `may_request` függvényében). **A kezdő (Vándor) is nyithat szálat és hozzászólhat**, mert lehet, hogy épp segítségre van szüksége. A hozzászólásai nem várnak moderátori jóváhagyásra. **Privát üzenetet viszont nem kezdeményezhet.** Ha valaki más kérést küld neki, azt elfogadhatja. (az elfogadás javaslat)
A **rang automatikus, a szerepkör kiosztott:** admin, moderátor, témamoderátor, kísérő, támogató. A **rang automatikus, a szerepkör kiosztott:** admin, moderátor, témamoderátor, kísérő, támogató.
### Vásárlás és rang ### Vásárlás és rang
**A csomagvásárlás nem ad rangot.** A rang bizalmat jelent, ezért pénzért nem járhat, és a csalóknak is megérné egy olcsó csomagért hamarabb privát üzenetet írni. Helyette: **A csomagvásárlás nem ad rangot.** A rang bizalmat jelent, ezért pénzért nem járhat, és a csalóknak is megérné egy olcsó csomagért hamarabb privát üzenetet írni. Helyette:
- **Feloldja a kezdő korlátokat** (napi hozzászólásszám, a szavazat beszámítása), mert aki fizetett, az szinte biztosan valódi ember. (Privát üzenetkéréshez 2026-11-26 óta nem kell rang.) - **Feloldja a kezdő korlátokat** (napi hozzászólásszám, a szavazat beszámítása), mert aki fizetett, az szinte biztosan valódi ember. Privát üzenetkéréshez továbbra is rang kell.
- **„Támogató” jelvény,** amit a tag maga dönt el, hogy kiteszi-e. Alapból rejtve. - **„Támogató” jelvény,** amit a tag maga dönt el, hogy kiteszi-e. Alapból rejtve.
## Profil és álnév ## Profil és álnév
@@ -299,7 +299,7 @@ A **rang automatikus, a szerepkör kiosztott:** admin, moderátor, témamoderát
- Egyelőre **egy** avatarja van mindenkinek. - Egyelőre **egy** avatarja van mindenkinek.
- **Kezdő készlet:** néhány tucat generált kép. SVG-ben, a márka színeivel (holdfázisok, csillagképek, növények, szimbólumok), így tárolni sem kell őket. (az SVG javaslat) - **Kezdő készlet:** néhány tucat generált kép. SVG-ben, a márka színeivel (holdfázisok, csillagképek, növények, szimbólumok), így tárolni sem kell őket. (az SVG javaslat)
- **Saját kép:** a DO Spacesbe kerül, a meglévő `services/backend/src/storage.rs` mintájára (privát tároló, a szolgáltatás adja ki, a Cloudflare tartja gyorsítótárban). 2026-11-26 óta bárki feltölthet (az álnév első mentése után); a moderátor egy kattintással visszaállíthatja. Feltöltéskor csak az első képkocka marad meg, animált avatar nincs. (javaslat) - **Saját kép:** a DO Spacesbe kerül, a meglévő `services/backend/src/storage.rs` mintájára (privát tároló, a szolgáltatás adja ki, a Cloudflare tartja gyorsítótárban). Csak egy rang fölött tölthető fel, a moderátor egy kattintással visszaállíthatja. Feltöltéskor csak az első képkocka marad meg, animált avatar nincs. (javaslat)
## Média ## Média
+6 -1
View File
@@ -1,4 +1,5 @@
//! Own avatars: any member may upload a picture instead of a starter avatar. It is cut to a square, made small (256 pixels), stripped //! Own avatars: a member from the Kereső rank may upload a picture instead of
//! a starter avatar. It is cut to a square, made small (256 pixels), stripped
//! of its metadata (EXIF: camera, place) and kept in the object storage; the //! of its metadata (EXIF: camera, place) and kept in the object storage; the
//! forum serves it. A moderator can put the starter avatar back. //! forum serves it. A moderator can put the starter avatar back.
@@ -16,6 +17,7 @@ use image::metadata::Orientation;
use image::{DynamicImage, ImageDecoder, ImageFormat, ImageReader, Limits}; use image::{DynamicImage, ImageDecoder, ImageFormat, ImageReader, Limits};
use serde_json::{Value, json}; use serde_json::{Value, json};
use sha2::{Digest, Sha256}; use sha2::{Digest, Sha256};
use time::OffsetDateTime;
use uuid::Uuid; use uuid::Uuid;
use super::St; use super::St;
@@ -95,6 +97,9 @@ pub async fn forget(state: &crate::AppState, avatar: &str) {
/// `PUT /v1/forum/me/avatar`: the picture's bytes as the body. /// `PUT /v1/forum/me/avatar`: the picture's bytes as the body.
pub async fn upload(State(state): St, viewer: Viewer, body: Bytes) -> ApiResult<Json<Value>> { pub async fn upload(State(state): St, viewer: Viewer, body: Bytes) -> ApiResult<Json<Value>> {
let member = viewer.require_writer()?.clone(); let member = viewer.require_writer()?.clone();
if member.rank(OffsetDateTime::now_utc()).is_newcomer() && !viewer.is_moderator() {
return Err(ApiError::Forbidden("Saját képet a Kereső rangtól tölthetsz fel.".into()));
}
let Some(storage) = &state.storage else { let Some(storage) = &state.storage else {
return Err(ApiError::Forbidden("A képfeltöltés most nem érhető el.".into())); return Err(ApiError::Forbidden("A képfeltöltés most nem érhető el.".into()));
}; };
-37
View File
@@ -152,16 +152,6 @@ pub async fn home(state: St, viewer: Viewer) -> ApiResult<Json<Value>> {
.fetch_all(&state.db) .fetch_all(&state.db)
.await?; .await?;
// Pinned threads (the daily sky too) stand above the topics.
let pinned: Vec<CardRow> = sqlx::query_as(&format!(
"{} AND th.pinned AND tp.archived_at IS NULL ORDER BY th.last_post_at DESC LIMIT 5",
card_sql(&viewer)
))
.bind(me)
.bind(since)
.fetch_all(&state.db)
.await?;
let hot: Vec<CardRow> = sqlx::query_as(&format!( let hot: Vec<CardRow> = sqlx::query_as(&format!(
"WITH recent AS (SELECT thread_id, count(*) AS n FROM forum.posts \ "WITH recent AS (SELECT thread_id, count(*) AS n FROM forum.posts \
WHERE created_at > now() - interval '24 hours' AND deleted_at IS NULL AND NOT is_opening \ WHERE created_at > now() - interval '24 hours' AND deleted_at IS NULL AND NOT is_opening \
@@ -205,7 +195,6 @@ pub async fn home(state: St, viewer: Viewer) -> ApiResult<Json<Value>> {
"online": online, "online": online,
"topics": topics, "topics": topics,
"unanswered": cards_json(&state.db, unanswered).await?, "unanswered": cards_json(&state.db, unanswered).await?,
"pinned": cards_json(&state.db, pinned).await?,
"hot": cards_json(&state.db, hot).await?, "hot": cards_json(&state.db, hot).await?,
}))) })))
} }
@@ -329,32 +318,6 @@ pub async fn topic(
}))) })))
} }
/// "Legutóbbi szálak" on the front page: the threads of every topic the
/// viewer may read (not the archived ones), the latest activity first.
const LATEST_PAGE: i64 = 20;
pub async fn latest(
State(state): St,
viewer: Viewer,
WithRejection(Query(q), _): WithRejection<Query<PageQuery>, ApiError>,
) -> ApiResult<Json<Value>> {
let page = q.page.unwrap_or(1).clamp(1, 10_000);
let (me, since) = card_params(&viewer);
let rows: Vec<CardRow> = sqlx::query_as(&format!(
"{} AND tp.archived_at IS NULL ORDER BY th.last_post_at DESC LIMIT $3 OFFSET $4",
card_sql(&viewer)
))
.bind(me)
.bind(since)
.bind(LATEST_PAGE + 1)
.bind((page - 1) * LATEST_PAGE)
.fetch_all(&state.db)
.await?;
let has_more = rows.len() as i64 > LATEST_PAGE;
let rows = rows.into_iter().take(LATEST_PAGE as usize).collect();
Ok(Json(json!({ "threads": cards_json(&state.db, rows).await?, "page": page, "has_more": has_more })))
}
/// The threads the member follows, the latest activity first, with what is unread. /// The threads the member follows, the latest activity first, with what is unread.
pub async fn followed(State(state): St, viewer: Viewer) -> ApiResult<Json<Value>> { pub async fn followed(State(state): St, viewer: Viewer) -> ApiResult<Json<Value>> {
viewer.require_member()?; viewer.require_member()?;
+2 -2
View File
@@ -61,9 +61,9 @@ pub async fn me(State(state): St, viewer: Viewer) -> ApiResult<Json<Value>> {
}, },
"listener": m.listener, "listener": m.listener,
"supporter_badge": m.supporter_badge, "supporter_badge": m.supporter_badge,
// From the Kereső rank: volunteering as a companion. An own picture: anyone. // From the Kereső rank: volunteering as a listener, an own picture.
"can_listen": viewer.is_moderator() || !rank.is_newcomer(), "can_listen": viewer.is_moderator() || !rank.is_newcomer(),
"can_upload_avatar": true, "can_upload_avatar": viewer.is_moderator() || !rank.is_newcomer(),
}) })
}); });
let buyer = super::has_purchase(&state.db, user.id).await?; let buyer = super::has_purchase(&state.db, user.id).await?;
+6 -6
View File
@@ -82,11 +82,10 @@ fn pair(a: Uuid, b: Uuid) -> (Uuid, Uuid) {
if a < b { (a, b) } else { (b, a) } if a < b { (a, b) } else { (b, a) }
} }
/// Whether a member may start conversations: any member for now, from the /// Whether a member may start conversations: from the Kereső rank and after
/// first day (the user decided on 2026-11-26; a newcomers' limit, such as the /// writing in public (moderators always).
/// Kereső rank, may come back later here). fn may_request(viewer: &Viewer, member: &Member) -> bool {
fn may_request(_viewer: &Viewer, _member: &Member) -> bool { viewer.is_moderator() || (!member.rank(OffsetDateTime::now_utc()).is_newcomer() && member.post_count > 0)
true
} }
/// The viewer's relation to another member, for the profile page. /// The viewer's relation to another member, for the profile page.
@@ -144,7 +143,8 @@ pub async fn request(
let me = viewer.require_writer()?; let me = viewer.require_writer()?;
if !may_request(&viewer, me) { if !may_request(&viewer, me) {
return Err(ApiError::Forbidden( return Err(ApiError::Forbidden(
"Most nem kezdeményezhetsz beszélgetést. A neked küldött kéréseket elfogadhatod.".into(), "Beszélgetést a Kereső rangtól kezdeményezhetsz, ha már írtál a fórumba. A neked küldött kéréseket addig is elfogadhatod."
.into(),
)); ));
} }
let other: Uuid = sqlx::query_scalar("SELECT user_id FROM forum.members WHERE nickname_key = $1") let other: Uuid = sqlx::query_scalar("SELECT user_id FROM forum.members WHERE nickname_key = $1")
+2 -10
View File
@@ -52,7 +52,6 @@ pub fn router(state: Arc<AppState>) -> Router {
.route("/v1/forum/topics/{slug}/join", post(topics::join).delete(topics::leave)) .route("/v1/forum/topics/{slug}/join", post(topics::join).delete(topics::leave))
.route("/v1/forum/mod/topic-requests", get(topics::requests).post(topics::decide)) .route("/v1/forum/mod/topic-requests", get(topics::requests).post(topics::decide))
.route("/v1/forum/followed", get(home::followed)) .route("/v1/forum/followed", get(home::followed))
.route("/v1/forum/latest", get(home::latest))
.route("/v1/forum/replies", get(replies::list)) .route("/v1/forum/replies", get(replies::list))
.route("/v1/forum/search", get(search::search)) .route("/v1/forum/search", get(search::search))
.route("/v1/forum/share-card/{slug}", get(attachments::preview)) .route("/v1/forum/share-card/{slug}", get(attachments::preview))
@@ -156,9 +155,6 @@ pub struct CardRow {
pub unread: Option<i64>, pub unread: Option<i64>,
/// The site's own thread (the daily sky). /// The site's own thread (the daily sky).
pub system: bool, pub system: bool,
pub topic_visibility: String,
/// The opening post's text (for the excerpt on the card).
pub opening: Option<String>,
} }
/// `SELECT` of [`CardRow`]s over the threads the viewer may read; `$1` is /// `SELECT` of [`CardRow`]s over the threads the viewer may read; `$1` is
@@ -181,9 +177,7 @@ pub fn card_sql(viewer: &Viewer) -> String {
AND p.created_at > $2::timestamptz AND {} \ AND p.created_at > $2::timestamptz AND {} \
AND p.id > COALESCE((SELECT r.last_post_id FROM forum.reads r \ AND p.id > COALESCE((SELECT r.last_post_id FROM forum.reads r \
WHERE r.user_id = $1 AND r.thread_id = th.id), 0)) END AS unread, \ WHERE r.user_id = $1 AND r.thread_id = th.id), 0)) END AS unread, \
th.system, tp.visibility AS topic_visibility, \ th.system \
(SELECT p.body FROM forum.posts p WHERE p.thread_id = th.id AND p.is_opening \
AND p.deleted_at IS NULL LIMIT 1) AS opening \
FROM forum.threads th JOIN forum.topics tp ON tp.id = th.topic_id \ FROM forum.threads th JOIN forum.topics tp ON tp.id = th.topic_id \
WHERE th.deleted_at IS NULL AND ({}) AND {}", WHERE th.deleted_at IS NULL AND ({}) AND {}",
not_muted("p.author_id"), not_muted("p.author_id"),
@@ -210,10 +204,8 @@ pub async fn cards_json(db: &PgPool, rows: Vec<CardRow>) -> Result<Vec<Value>, s
"slug": crate::text::slug(&r.title), "slug": crate::text::slug(&r.title),
"title": r.title, "title": r.title,
"intent": r.intent, "intent": r.intent,
"topic": { "slug": r.topic_slug, "name": r.topic_name, "visibility": r.topic_visibility }, "topic": { "slug": r.topic_slug, "name": r.topic_name },
"author": r.author_id.and_then(|id| people.get(&id).cloned()), "author": r.author_id.and_then(|id| people.get(&id).cloned()),
// The start of the opening post, as much as a card shows.
"excerpt": r.opening.as_deref().map(|b| crate::text::excerpt(b, 280)),
"created_at": rfc3339(r.created_at), "created_at": rfc3339(r.created_at),
"last_post_at": rfc3339(r.last_post_at), "last_post_at": rfc3339(r.last_post_at),
"reply_count": r.reply_count, "reply_count": r.reply_count,
+10 -1
View File
@@ -98,7 +98,7 @@ pub async fn list(
"id": r.id, "id": r.id,
"thread": { "id": r.thread_id, "title": r.title, "slug": crate::text::slug(&r.title) }, "thread": { "id": r.thread_id, "title": r.title, "slug": crate::text::slug(&r.title) },
"author": r.author_id.and_then(|a| authors.get(&a).cloned()), "author": r.author_id.and_then(|a| authors.get(&a).cloned()),
"excerpt": crate::text::excerpt(&r.body, 160), "excerpt": excerpt(&r.body),
"created_at": rfc3339(r.created_at), "created_at": rfc3339(r.created_at),
"kind": r.kind, "kind": r.kind,
"unread": r.unread, "unread": r.unread,
@@ -124,3 +124,12 @@ pub async fn read_all(State(state): St, viewer: Viewer) -> ApiResult<StatusCode>
.await?; .await?;
Ok(StatusCode::NO_CONTENT) Ok(StatusCode::NO_CONTENT)
} }
/// The start of a post, on one line.
fn excerpt(body: &str) -> String {
let line = body.split_whitespace().collect::<Vec<_>>().join(" ");
match line.char_indices().nth(160) {
Some((at, _)) => format!("{}…", line[..at].trim_end()),
None => line,
}
}
+7 -40
View File
@@ -642,7 +642,13 @@ async fn private_messages_start_with_a_request(pool: PgPool) {
async move { app.call("POST", "/v1/forum/conversations", Some(&user), body).await } async move { app.call("POST", "/v1/forum/conversations", Some(&user), body).await }
}; };
// Any member may start one from the first day (a newcomers' limit may come later). // A newcomer may not start one; a seasoned member who wrote in public may.
let (status, _) = request(&anna, "Holdfény", "Szia, olvastam a hozzászólásodat.").await;
assert_eq!(status, StatusCode::FORBIDDEN);
let profile = app.get("/v1/forum/members/Holdfény", Some(&anna)).await;
assert_eq!(profile["relation"]["can_request"], false);
app.thread(&anna, "torzsasztal", "Sziasztok").await;
app.season(&anna, 5, 10).await;
assert_eq!(app.get("/v1/forum/members/Holdfény", Some(&anna)).await["relation"]["can_request"], true); assert_eq!(app.get("/v1/forum/members/Holdfény", Some(&anna)).await["relation"]["can_request"], true);
assert_eq!(request(&anna, "Holdfény", "Nézd: www.pelda.hu").await.0, StatusCode::BAD_REQUEST); assert_eq!(request(&anna, "Holdfény", "Nézd: www.pelda.hu").await.0, StatusCode::BAD_REQUEST);
assert_eq!(request(&anna, "Csendesvíz", "Szia, én vagyok.").await.0, StatusCode::BAD_REQUEST); assert_eq!(request(&anna, "Csendesvíz", "Szia, én vagyok.").await.0, StatusCode::BAD_REQUEST);
@@ -1397,42 +1403,3 @@ async fn youtube_links_get_a_preview(pool: PgPool) {
assert_eq!(shown["posts"][1]["links"][0]["title"], "Telihold meditáció"); assert_eq!(shown["posts"][1]["links"][0]["title"], "Telihold meditáció");
assert!(shown["posts"][0]["links"].is_null()); assert!(shown["posts"][0]["links"].is_null());
} }
#[sqlx::test(migrator = "db::MIGRATOR")]
async fn any_member_may_upload_an_avatar(pool: PgPool) {
let app = TestApp::new(pool);
let anna = app.member("anna@example.com", "Csendesvíz", &["user"]).await;
// A newcomer (Vándor) is offered it too; without storage the upload says it is not available.
assert_eq!(app.get("/v1/forum/me", Some(&anna)).await["member"]["can_upload_avatar"], true);
let (status, body) = app.call("PUT", "/v1/forum/me/avatar", Some(&anna), Value::Null).await;
assert_eq!(status, StatusCode::FORBIDDEN);
assert!(body.to_string().contains("nem érhető el"), "{body}");
}
#[sqlx::test(migrator = "db::MIGRATOR")]
async fn latest_threads_with_their_beginning(pool: PgPool) {
let app = TestApp::new(pool);
let anna = app.member("anna@example.com", "Csendesvíz", &["user"]).await;
let public = app.thread(&anna, "torzsasztal", "Téli levesek").await;
let members = app.thread(&anna, "ami-a-szivemen-van", "Nehéz napok").await;
app.reply(&anna, public, "Még egy gondolat.", None).await;
let ids =
|v: Value| -> Vec<i64> { v["threads"].as_array().unwrap().iter().map(|t| t["id"].as_i64().unwrap()).collect() };
// Members see every topic they may read, the latest activity first; visitors the public ones.
assert_eq!(ids(app.get("/v1/forum/latest", Some(&anna)).await), vec![public, members]);
let visitor = app.get("/v1/forum/latest", None).await;
assert_eq!(ids(visitor.clone()), vec![public]);
assert_eq!(visitor["has_more"], false);
// The card carries the start of the opening post and the topic's visibility.
let card = &visitor["threads"][0];
assert!(card["excerpt"].as_str().unwrap().len() > 3, "{card}");
assert_eq!(card["topic"]["visibility"], "public");
// A pinned thread stands above the topics on the front page.
let admin = app.member("admin@example.com", "Gondnok", &["admin"]).await;
let (status, _) =
app.call("PATCH", &format!("/v1/forum/threads/{public}"), Some(&admin), json!({ "pinned": true })).await;
assert_eq!(status, StatusCode::NO_CONTENT);
let home = app.get("/v1/forum/home", None).await;
assert_eq!(home["pinned"][0]["id"], public);
}
-14
View File
@@ -142,20 +142,6 @@ pub fn default_avatar(key: &str) -> String {
format!("{}-{}", AVATAR_GLYPHS[n % AVATAR_GLYPHS.len()], AVATAR_COLOURS[(n / 7) % AVATAR_COLOURS.len()]) format!("{}-{}", AVATAR_GLYPHS[n % AVATAR_GLYPHS.len()], AVATAR_COLOURS[(n / 7) % AVATAR_COLOURS.len()])
} }
/// The start of a text on one line, at most `max` characters (cut at a word, with "…").
pub fn excerpt(body: &str, max: usize) -> String {
let line = body.split_whitespace().collect::<Vec<_>>().join(" ");
if line.chars().count() <= max {
return line;
}
let cut: String = line.chars().take(max).collect();
let cut = match cut.rfind(' ') {
Some(at) if at > max / 2 => &cut[..at],
_ => &cut[..],
};
format!("{}…", cut.trim_end_matches([',', ';', ':', '–', '-', ' ']))
}
/// The readable part of a thread's address: `nem-tudom-elengedni-anyukam-hazat`. /// The readable part of a thread's address: `nem-tudom-elengedni-anyukam-hazat`.
pub fn slug(title: &str) -> String { pub fn slug(title: &str) -> String {
let ascii = deunicode::deunicode(title).to_lowercase(); let ascii = deunicode::deunicode(title).to_lowercase();
+2 -2
View File
@@ -154,7 +154,7 @@ export default async function TermsPage() {
felismerjenek; nem lehet sértő vagy megtévesztő, és nem utánozhat más tagot, moderátort vagy a felismerjenek; nem lehet sértő vagy megtévesztő, és nem utánozhat más tagot, moderátort vagy a
Sorsfonalakat. A valódi neved, az e-mail-címed és a születési adataid a fórumon nem jelennek meg; a Sorsfonalakat. A valódi neved, az e-mail-címed és a születési adataid a fórumon nem jelennek meg; a
képletedből csak annyi látszik, amennyit a fórumprofilodban megosztasz, fokok nélkül. képletedből csak annyi látszik, amennyit a fórumprofilodban megosztasz, fokok nélkül.
Saját képet is feltölthetsz avatarnak: csak olyat, amelyhez jogod van, és amelyen más nem A Kereső rangtól saját képet is feltölthetsz avatarnak: csak olyat, amelyhez jogod van, és amelyen más nem
ismerhető fel a hozzájárulása nélkül; a moderátorok a nem odaillő képet eltávolíthatják. ismerhető fel a hozzájárulása nélkül; a moderátorok a nem odaillő képet eltávolíthatják.
</p> </p>
@@ -196,7 +196,7 @@ export default async function TermsPage() {
<h3>8.4. Privát üzenetek</h3> <h3>8.4. Privát üzenetek</h3>
<p> <p>
Privát beszélgetést egy rövid bemutatkozást tartalmazó kéréssel lehet kezdeményezni. A Privát beszélgetést a Kereső rangtól, egy rövid bemutatkozást tartalmazó kéréssel lehet kezdeményezni. A
címzett elfogadhatja, elutasíthatja (erről a küldő nem kap értesítést), vagy letilthatja a küldőt. A privát címzett elfogadhatja, elutasíthatja (erről a küldő nem kap értesítést), vagy letilthatja a küldőt. A privát
üzeneteket a moderátorok nem olvassák. Ha valaki egy üzenetet jelent, a moderátorok a jelentett üzenetet és üzeneteket a moderátorok nem olvassák. Ha valaki egy üzenetet jelent, a moderátorok a jelentett üzenetet és
az előtte lévő néhány üzenetet látják, hogy dönteni tudjanak. az előtte lévő néhány üzenetet látják, hogy dönteni tudjanak.
@@ -157,9 +157,6 @@ export function ProfileForm({ me, back }: { me: ForumMe; back: string | null })
)} )}
</div> </div>
{!avatar && <span className="hint">Ha nem választasz, az álneved alapján kapsz egyet.</span>} {!avatar && <span className="hint">Ha nem választasz, az álneved alapján kapsz egyet.</span>}
{!member && (
<span className="hint">Saját képet az álneved első mentése után tölthetsz fel, itt, ezen az oldalon.</span>
)}
{member?.can_upload_avatar && ( {member?.can_upload_avatar && (
<div className="fprof-upload"> <div className="fprof-upload">
{uploaded && <Avatar avatar={avatar} size={56} />} {uploaded && <Avatar avatar={avatar} size={56} />}
-19
View File
@@ -786,22 +786,3 @@ a.fh-online-item:hover { color: var(--gold); }
display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
padding: 10px 12px 10px 18px; border-top: 1px solid var(--line); background: var(--f-tint); padding: 10px 12px 10px 18px; border-top: 1px solid var(--line); background: var(--f-tint);
} }
/* --- thread cards with the start of the opening post --- */
.ft-row { align-items: flex-start; }
.ft-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--ink-2); }
.ft-topic { display: inline-flex; align-items: center; gap: 5px; }
.ft-topic .topic-icon { width: 14px; height: 14px; }
.ft-lock { width: 11px; height: 11px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.ft-row .ft-excerpt { font-size: 14.5px; line-height: 1.5; -webkit-line-clamp: 3; }
.ft-meta { flex-wrap: wrap; font-size: 13px; }
.ft-who { color: var(--ink); font-weight: 500; }
.ft-m-new { margin-left: auto; }
.ft-side { display: none; }
@media (min-width: 760px) {
.ft-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 0 24px; padding: 16px 20px; align-items: center; }
.ft-row .ft-excerpt { font-size: 15px; -webkit-line-clamp: 2; }
.ft-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: 15px; color: var(--ink); }
.ft-side .hint { font-size: 13px; }
.ft-side strong { font-weight: 600; }
}
+3 -39
View File
@@ -8,7 +8,7 @@ import { TopicIcon } from "@/components/forum/TopicIcon";
import { ThreadList, WaitingCard } from "@/components/forum/ThreadList"; import { ThreadList, WaitingCard } from "@/components/forum/ThreadList";
import { MoonPhaseIcon } from "@/components/MoonChip"; import { MoonPhaseIcon } from "@/components/MoonChip";
import { MOON_PHASES, SIGNS } from "@/lib/astro"; import { MOON_PHASES, SIGNS } from "@/lib/astro";
import { type ForumHome, type ThreadCard, ago, memberHref } from "@/lib/forum"; import { type ForumHome, ago, memberHref } from "@/lib/forum";
import { forumGet } from "@/lib/forumServer"; import { forumGet } from "@/lib/forumServer";
import { loadSky } from "@/lib/sky"; import { loadSky } from "@/lib/sky";
import { MOON_IN_SIGN, SIGN_IN, withArticle } from "@/lib/skyText"; import { MOON_IN_SIGN, SIGN_IN, withArticle } from "@/lib/skyText";
@@ -61,16 +61,10 @@ function SkyCard({ sky }: { sky: SkyNow }) {
); );
} }
export default async function ForumHomePage({ searchParams }: { searchParams: Promise<{ oldal?: string }> }) { export default async function ForumHomePage() {
const page = Math.max(1, Number((await searchParams).oldal) || 1); const [home, sky] = await Promise.all([forumGet<ForumHome>("/v1/forum/home"), loadSky()]);
const [home, sky, latest] = await Promise.all([
forumGet<ForumHome>("/v1/forum/home"),
loadSky(),
forumGet<{ threads: ThreadCard[]; has_more: boolean }>(`/v1/forum/latest?page=${page}`),
]);
if (!home.ok) notFound(); if (!home.ok) notFound();
const { viewer, replies, waiting, topics, unanswered, hot } = home.data; const { viewer, replies, waiting, topics, unanswered, hot } = home.data;
const pinned = home.data.pinned ?? [];
return ( return (
<div className="fh fh-home"> <div className="fh fh-home">
@@ -141,17 +135,6 @@ export default async function ForumHomePage({ searchParams }: { searchParams: Pr
</section> </section>
)} )}
{pinned.length > 0 && (
<section className="fh-section o-6" aria-labelledby="fh-pinned">
<div className="fh-section-head">
<h2 id="fh-pinned">Kitűzve</h2>
</div>
<div className="fh-card fh-flush">
<ThreadList threads={pinned} />
</div>
</section>
)}
<section className="fh-section o-6" aria-labelledby="fh-topics"> <section className="fh-section o-6" aria-labelledby="fh-topics">
<div className="fh-section-head"> <div className="fh-section-head">
<h2 id="fh-topics">Témák</h2> <h2 id="fh-topics">Témák</h2>
@@ -251,25 +234,6 @@ export default async function ForumHomePage({ searchParams }: { searchParams: Pr
</details> </details>
)} )}
</section> </section>
{latest.ok && (latest.data.threads.length > 0 || page > 1) && (
<section className="fh-section o-6" id="legutobbi" aria-labelledby="fh-latest">
<div className="fh-section-head">
<h2 id="fh-latest">Legutóbbi szálak</h2>
<span className="hint">a legfrissebb beszélgetések elöl</span>
</div>
<div className="fh-card fh-flush">
<ThreadList threads={latest.data.threads} />
</div>
{(page > 1 || latest.data.has_more) && (
<nav className="forum-pager" aria-label="Lapozás">
{page > 1 ? <Link href={`/forum?oldal=${page - 1}#legutobbi`}>‹ Újabbak</Link> : <span />}
<span className="hint">{page}. oldal</span>
{latest.data.has_more ? <Link href={`/forum?oldal=${page + 1}#legutobbi`}>Régebbiek ›</Link> : <span />}
</nav>
)}
</section>
)}
</div> </div>
<aside className="fh-col fh-col-side" aria-label="Oldalsáv"> <aside className="fh-col fh-col-side" aria-label="Oldalsáv">
@@ -41,7 +41,7 @@ export function RequestPanel({ nickname, relation }: { nickname: string; relatio
if (relation.state === "blocked_by_me") if (relation.state === "blocked_by_me")
return <p className="hint">Letiltottad. A tiltást az üzeneteidnél oldhatod fel.</p>; return <p className="hint">Letiltottad. A tiltást az üzeneteidnél oldhatod fel.</p>;
if (!relation.eligible) { if (!relation.eligible) {
return <p className="hint">Most nem kezdeményezhetsz beszélgetést.</p>; return <p className="hint">Beszélgetést a Kereső rangtól kezdeményezhetsz, ha már írtál a fórumba.</p>;
} }
if (!relation.can_request) return null; if (!relation.can_request) return null;
@@ -3,7 +3,6 @@ import Link from "next/link";
import { INTENTS, type ThreadCard, ago, threadHref } from "@/lib/forum"; import { INTENTS, type ThreadCard, ago, threadHref } from "@/lib/forum";
import { Avatar } from "./Avatar"; import { Avatar } from "./Avatar";
import { TopicIcon } from "./TopicIcon";
export function IntentTag({ intent, long = false }: { intent: ThreadCard["intent"]; long?: boolean }) { export function IntentTag({ intent, long = false }: { intent: ThreadCard["intent"]; long?: boolean }) {
if (!intent) return null; if (!intent) return null;
@@ -11,80 +10,53 @@ export function IntentTag({ intent, long = false }: { intent: ThreadCard["intent
return <span className={`ft-intent ft-intent-${intent}`}>{text}</span>; return <span className={`ft-intent ft-intent-${intent}`}>{text}</span>;
} }
function UnreadPill({ n, onlyNew = false }: { n: number | null; onlyNew?: boolean }) { function UnreadPill({ n }: { n: number | null }) {
if (n === null) return null; if (n === null) return null;
if (n === 0) return onlyNew ? null : <span className="ft-read">olvasva</span>; if (n === 0) return <span className="ft-read">olvasva</span>;
return <span className="ft-new">{n > 99 ? "99+" : n} új</span>; return <span className="ft-new">{n > 99 ? "99+" : n} új</span>;
} }
/** /** Threads in a list: title, topic, replies, the starter, what is new. */
* Threads in a list. Each card: the topic (with a lock for members-only and
* restricted ones), pinned and the wish, the title, the start of the opening
* post (two lines on a computer, three on a phone), the starter; replies,
* the last activity and what is new on the right on a computer, in the
* bottom line on a phone.
*/
export function ThreadList({ threads, showTopic = true }: { threads: ThreadCard[]; showTopic?: boolean }) { export function ThreadList({ threads, showTopic = true }: { threads: ThreadCard[]; showTopic?: boolean }) {
return ( return (
<ul className="ft-list"> <ul className="ft-list">
{threads.map((t) => { {threads.map((t) => (
const closed = t.topic.visibility !== undefined && t.topic.visibility !== "public"; <li key={t.id}>
const tags = showTopic || t.pinned || t.locked || t.intent; <Link href={threadHref(t)} className="ft-row">
return ( <span className="ft-main">
<li key={t.id}> <span className="ft-title">
<Link href={threadHref(t)} className="ft-row"> {t.pinned && <span className="ft-pin">Kitűzve</span>}
<span className="ft-main"> {t.locked && <span className="ft-pin">Lezárva</span>}
{tags && ( {t.title}
<span className="ft-tags"> </span>
{showTopic && ( <span className="ft-meta">
<span className="ft-topic"> {t.author && <Avatar avatar={t.author.avatar} size={20} online={t.author.online} />}
<TopicIcon slug={t.topic.slug} /> <span>
{t.topic.name} {t.system ? "Sorsfonalak" : (t.author?.nickname ?? "Törölt tag")}
{closed && ( {showTopic && ` · ${t.topic.name}`}
<svg viewBox="0 0 24 24" className="ft-lock" role="img" aria-label="Nem nyilvános téma">
<rect x="5" y="11" width="14" height="9" rx="2" />
<path d="M8 11V8a4 4 0 0 1 8 0v3" />
</svg>
)}
</span>
)}
{t.pinned && <span className="ft-pin">Kitűzve</span>}
{t.locked && <span className="ft-pin">Lezárva</span>}
<IntentTag intent={t.intent} />
</span>
)}
<span className="ft-title">{t.title}</span>
{t.excerpt && <span className="ft-excerpt">{t.excerpt}</span>}
<span className="ft-meta">
{t.author && <Avatar avatar={t.author.avatar} size={20} online={t.author.online} />}
<span className="ft-who">{t.system ? "Sorsfonalak" : (t.author?.nickname ?? "Törölt tag")}</span>
<span className="ft-m-narrow"> <span className="ft-m-narrow">
{" "}
· {t.reply_count} válasz ·{" "} · {t.reply_count} válasz ·{" "}
<time suppressHydrationWarning dateTime={t.last_post_at}> <time suppressHydrationWarning dateTime={t.last_post_at}>
{ago(t.last_post_at)} {ago(t.last_post_at)}
</time> </time>
</span> </span>
<span className="ft-m-narrow ft-m-new">
<UnreadPill n={t.unread} onlyNew />
</span>
</span> </span>
</span> </span>
<span className="ft-side"> </span>
<span> <span className="ft-col ft-col-replies">
<strong>{t.reply_count}</strong> válasz <strong>{t.reply_count}</strong> válasz
</span> {t.participants > 1 && <span className="hint">{t.participants} résztvevő</span>}
<span className="hint"> </span>
utoljára{" "} <span className="ft-col ft-col-last">
<time suppressHydrationWarning dateTime={t.last_post_at}> <time suppressHydrationWarning dateTime={t.last_post_at}>
{ago(t.last_post_at)} {ago(t.last_post_at)}
</time> </time>
</span> </span>
<UnreadPill n={t.unread} /> <UnreadPill n={t.unread} />
</span> </Link>
</Link> </li>
</li> ))}
);
})}
</ul> </ul>
); );
} }
+1 -5
View File
@@ -61,10 +61,8 @@ export interface ThreadCard {
slug: string; slug: string;
title: string; title: string;
intent: "listen" | "advice" | null; intent: "listen" | "advice" | null;
topic: TopicRef & { visibility?: string }; topic: TopicRef;
author: ForumAuthor | null; author: ForumAuthor | null;
/** The start of the opening post (as much as a card shows). */
excerpt?: string | null;
created_at: string; created_at: string;
last_post_at: string; last_post_at: string;
reply_count: number; reply_count: number;
@@ -88,8 +86,6 @@ export interface ForumHome {
topics: ForumTopic[]; topics: ForumTopic[];
unanswered: ThreadCard[]; unanswered: ThreadCard[];
hot: ThreadCard[]; hot: ThreadCard[];
/** Pinned threads, above the topics. */
pinned?: ThreadCard[];
} }
export interface TopicPage { export interface TopicPage {