feat: improve community creation and joining flow

- Add support for joining existing communities via invite codes.
- Refactor createCCN to handle both creating new communities and joining existing ones.
- Fix relay status polling to ensure continuous updates while running.
This commit is contained in:
Danny Morabito 2025-04-14 15:00:38 +02:00
parent 24e1356bbc
commit 740921132a
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 7CC8056A5A04557E
18 changed files with 1205 additions and 99 deletions

View file

@ -8,10 +8,14 @@
"@lit-app/state": "^1.0.0",
"@lit-labs/motion": "^1.0.8",
"@noble/ciphers": "^1.2.1",
"@noble/curves": "^1.8.1",
"@noble/hashes": "^1.3.3",
"@nostr-dev-kit/ndk": "^2.12.2",
"@nostr/tools": "npm:@jsr/nostr__tools",
"@open-wc/lit-helpers": "^0.7.0",
"@scure/base": "^1.2.4",
"@std/encoding": "npm:@jsr/std__encoding",
"iconify-icon": "^2.3.0",
"lit": "^3.2.1",
"markdown-it": "^14.1.0",
},
@ -105,6 +109,8 @@
"@gar/promisify": ["@gar/promisify@1.1.3", "", {}, ""],
"@iconify/types": ["@iconify/types@2.0.0", "", {}, "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg=="],
"@isaacs/cliui": ["@isaacs/cliui@8.0.2", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, ""],
"@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.8", "", { "dependencies": { "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", "@jridgewell/trace-mapping": "^0.3.24" } }, ""],
@ -497,6 +503,8 @@
"humanize-ms": ["humanize-ms@1.2.1", "", { "dependencies": { "ms": "^2.0.0" } }, ""],
"iconify-icon": ["iconify-icon@2.3.0", "", { "dependencies": { "@iconify/types": "^2.0.0" } }, "sha512-C0beI9oTDxQz6voI5CKl7MiJf0Lw4UU8K4G4t6pcUDClLmCvuMOpcvd8MAztQ2SfoH0iv7WHdxBFjekKPFKH2Q=="],
"iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, ""],
"ieee754": ["ieee754@1.2.1", "", {}, ""],