Complete @mention system with shared parsing, accessible autocomplete, canonical links, moderated local notifications, durable idempotent swarm delivery, navigable remote notifications, and exact-once bot replies

Hop-State: A_06FPG3MP3DEEGFB3AWBG03G
Hop-Proposal: R_06FPG3KD4J27QKCSNRBMFF0
Hop-Task: T_06FPFT83JWNP9AP1GRH36VR
Hop-Attempt: AT_06FPFT83JZM51ZFSMVPE5QR
This commit is contained in:
2026-07-15 16:13:34 -07:00
committed by Hop
parent a61fbbba12
commit d548d4bd6f
26 changed files with 9511 additions and 219 deletions
+14
View File
@@ -52,4 +52,18 @@ describe('browser notification presentation', () => {
url: '/notifications',
});
});
it('links federated mentions to the source swarm post', () => {
expect(getBrowserNotificationContent({
id: 'notification-remote',
type: 'mention',
actor: { handle: 'alice@remote.example', displayName: 'Alice' },
post: {
id: 'swarm:remote.example:550e8400-e29b-41d4-a716-446655440000',
content: 'Hello @bob@local.example',
},
})).toMatchObject({
url: '/posts/swarm:remote.example:550e8400-e29b-41d4-a716-446655440000',
});
});
});