feat: add clickable activity cards with comment anchor links to profile tab

Add `url` field to profile activity items so post cards link to `/posts/{slug}` and comment cards link to the parent post with a `#comment-{uid}` anchor, matching notification click behavior. Include the shared `_card_link.html` overlay in the template, fix XP bar rendering for missing `xp` key, and add API + e2e tests verifying the link structure and navigation.
This commit is contained in:
2026-07-04 20:24:59 +00:00
parent c79dfd0291
commit 7002b23eeb
11 changed files with 213 additions and 13 deletions
+5 -5
View File
@@ -22,9 +22,9 @@ def test_regenerate_avatar_updates_preview(alice):
def test_regenerate_button_hidden_for_other_user(alice, bob):
page, _ = alice
bob_page, bob_user = bob
page.goto(
f"{BASE_URL}/profile/{bob_user['username']}", wait_until="domcontentloaded"
alice_page, alice_user = alice
bob_page, _ = bob
bob_page.goto(
f"{BASE_URL}/profile/{alice_user['username']}", wait_until="domcontentloaded"
)
expect(page.locator("[data-regenerate-avatar]")).to_have_count(0)
expect(bob_page.locator("[data-regenerate-avatar]")).to_have_count(0)