Merged
Conversation
…asis-URLs und Entfernen von überflüssigen Slashes
… und Weiterleitung
…tener via Nostr Kind 30491
…enerierung in den Tests
…nd verbessere Auflösungsfunktionen
…bessere die Beschreibung
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Zusammenfassung
Boards können jetzt über kurze, merkbare URLs geteilt werden (
/b/mein-projektstatt langer naddr-Strings). Die Kurzlinks werden dezentral als Nostr Addressable Events (Kind 30491, NIP-33) publiziert — kein externer URL-Shortener-Service nötig.#110
Motivation
Änderungen
Neue Dateien
src/routes/b/[slug]/+page.svelte— Resolver-Seite: Löst Kurzlink auf, leitet zum Board weiter (Loading/Error/NotFound States)src/routes/b/[slug]/+page.ts— SvelteKit Load-Funktion (prerender = false)docs/FEATURE/SHORTLINK.md— Vollständige Feature-Dokumentation (Architektur, API, Tests, Troubleshooting)Geänderte Dateien
src/lib/utils/nostrEvents.ts— 5 neue Funktionen:slugifyBoardName(),createShortlinkEvent(),resolveShortlink(),resolveShortlinkBySlug(),EVENT_KINDS.SHORTLINK = 30491src/lib/stores/kanbanStore.svelte.ts—publishShortlink(slug)Methodesrc/lib/components/board/ShareDialog.svelte— Kurzlink-Tab mit Auto-Publish UX (Copy/Open/QR publizieren automatisch)src/lib/utils/nostrEvents.spec.ts— 26 neue Unit-Tests (Slug-Generierung, Event-Erstellung, Resolve-Funktionen mit NDK-Mocking)Dokumentation
CHANGELOG.md,docs/CHANGELOG/2026-Q1.md,README.md,docs/_INDEX.mdaktualisiertNostr Event-Struktur (Kind 30491)
{ "kind": 30491, "tags": [ ["d", "mein-projekt"], ["r", "naddr1qqpkucttqy28wumn8ghj7..."], ["a", "30301:<pubkey>:<boardId>"], ["title", "Mein Projekt"] ], "content": "naddr1qqpkucttqy28wumn8ghj7..." }