Changeset b109a29 in Klonkt for src/views/partials/fedi-tabs.ejs


Ignore:
Timestamp:
07/16/2026 08:02:27 PM (8 weeks ago)
Author:
Robin <roboburr@…>
Branches:
main
Children:
010e073
Parents:
87d2787
git-author:
Robin <roboburr@…> (07/16/2026 07:56:26 PM)
git-committer:
Robin <roboburr@…> (07/16/2026 08:02:27 PM)
Message:

Feature: Connect page merges following + followers into one view

/connect combines who you follow (ap_following) and who follows you
(ap_followers) into a single list keyed by actor_uri, each with a direction
badge (following →, follower ←, mutual ↔) and, for accounts we deliver to, a
light 'last delivery' line. Failing/never-reached followers move into a
collapsed 'Unreachable' section at the bottom with the remove action, keeping
the main list clean. The two Following/Followers tabs collapse into one
'Connect' tab; the old routes redirect to /connect so links keep working.
i18n NL/EN/DE. Verified locally: merge/direction/unreachable logic + render.

Co-Authored-By: Claude Opus 4.8 <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/fedi-tabs.ejs

    r87d2787 rb109a29  
    88  <a href="/news" class="fedi-tab<%= _a === 'feed' ? ' is-active' : '' %>"
    99     hx-get="/news?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/news" hx-indicator="#pcms-loading"><%= t('tl.tab_feed') %></a>
    10   <a href="/following" class="fedi-tab<%= _a === 'following' ? ' is-active' : '' %>"
    11      hx-get="/following?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/following" hx-indicator="#pcms-loading"><%= t('tl.tab_following') %></a>
    12   <a href="/followers" class="fedi-tab<%= _a === 'followers' ? ' is-active' : '' %>"
    13      hx-get="/followers?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/followers" hx-indicator="#pcms-loading"><%= t('tl.tab_followers') %></a>
     10  <a href="/connect" class="fedi-tab<%= (_a === 'connect' || _a === 'following' || _a === 'followers') ? ' is-active' : '' %>"
     11     hx-get="/connect?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/connect" hx-indicator="#pcms-loading"><%= t('tl.tab_connect') %></a>
    1412  <a href="/fediverse" class="fedi-tab<%= _a === 'reacties' ? ' is-active' : '' %>"
    1513     hx-get="/fediverse?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/fediverse" hx-indicator="#pcms-loading"><%= t('tl.tab_replies') %></a>
Note: See TracChangeset for help on using the changeset viewer.