feat(forum): klik w wątek przechodzi do najnowszego posta
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Link z listy tematów (forum/index, dashboard, strona główna) prowadzi
teraz do kotwicy #reply-latest — wstawionej w topic.html tuż przed
ostatnim widocznym replyem. scroll-margin-top:90px żeby sticky nav
nie zasłaniał. Brak zmian w backendzie (anchor HTML, zero round-trip).

Admin panele (forum_reports, forum_analytics, forum.html, forum_deleted)
zostawiam — tam moderator ogląda temat od góry.

Topic bez replies (sam początkowy post) zachowuje się bez zmian
(anchor nie istnieje → scroll na górę).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-04-14 18:03:40 +02:00
parent 46b8219e4f
commit 425f38d0fd
4 changed files with 4 additions and 3 deletions

View File

@ -1058,7 +1058,7 @@
<div class="card-body" style="padding: 0;"> <div class="card-body" style="padding: 0;">
{% if recent_forum_topics %} {% if recent_forum_topics %}
{% for topic in recent_forum_topics %} {% for topic in recent_forum_topics %}
<a href="{{ url_for('forum_topic', topic_id=topic.id) }}" class="conversation-item"> <a href="{{ url_for('forum_topic', topic_id=topic.id) }}#reply-latest" class="conversation-item">
<div> <div>
<div class="conversation-title">{{ topic.title[:45] }}{% if topic.title|length > 45 %}...{% endif %}</div> <div class="conversation-title">{{ topic.title[:45] }}{% if topic.title|length > 45 %}...{% endif %}</div>
<div class="conversation-meta"> <div class="conversation-meta">

View File

@ -371,7 +371,7 @@
{% for topic in topics %} {% for topic in topics %}
<article class="topic-card {% if topic.is_pinned %}pinned{% endif %} {% if topic.is_locked %}locked{% endif %}"> <article class="topic-card {% if topic.is_pinned %}pinned{% endif %} {% if topic.is_locked %}locked{% endif %}">
<div class="topic-main"> <div class="topic-main">
<a href="{{ url_for('forum_topic', topic_id=topic.id) }}" class="topic-title"> <a href="{{ url_for('forum_topic', topic_id=topic.id) }}#reply-latest" class="topic-title">
{% if topic.is_pinned %} {% if topic.is_pinned %}
<span class="topic-badge badge-pinned">Przypięty</span> <span class="topic-badge badge-pinned">Przypięty</span>
{% endif %} {% endif %}

View File

@ -1189,6 +1189,7 @@
{% if visible_replies %} {% if visible_replies %}
<div class="replies-list"> <div class="replies-list">
{% for reply in visible_replies %} {% for reply in visible_replies %}
{% if loop.last %}<div id="reply-latest" style="scroll-margin-top:90px"></div>{% endif %}
<article class="reply-card {% if reply.is_deleted %}deleted{% endif %}" id="reply-{{ reply.id }}"> <article class="reply-card {% if reply.is_deleted %}deleted{% endif %}" id="reply-{{ reply.id }}">
<div class="reply-header"> <div class="reply-header">
<div class="reply-author"> <div class="reply-author">

View File

@ -1289,7 +1289,7 @@
<h2>📋 Nowe na portalu</h2> <h2>📋 Nowe na portalu</h2>
<div class="new-on-portal-grid"> <div class="new-on-portal-grid">
{% for item in latest_forum_topics %} {% for item in latest_forum_topics %}
<a href="{{ url_for('forum.forum_topic', topic_id=item.topic.id) }}" class="new-card"> <a href="{{ url_for('forum.forum_topic', topic_id=item.topic.id) }}#reply-latest" class="new-card">
<span class="new-card-badge forum">💬 Forum</span> <span class="new-card-badge forum">💬 Forum</span>
<div class="new-card-title">{{ item.topic.title }}</div> <div class="new-card-title">{{ item.topic.title }}</div>
<div class="new-card-meta"> <div class="new-card-meta">