diff --git a/docs/Beta.md b/docs/Beta.md
index e026013..43445cf 100644
--- a/docs/Beta.md
+++ b/docs/Beta.md
@@ -1,6 +1,6 @@
# Todo for beta version
-- fix opengraph image stuff
+- fix opengraph image stuff (caching issue?)
- site.standard
- move subpages to own lexicon (app.blento.page)
@@ -32,4 +32,6 @@
- when adding images try to add them in a size that best fits aspect ratio
-- onboarding
\ No newline at end of file
+- onboarding
+
+- show alert when user tries to close window with unsaved changes
\ No newline at end of file
diff --git a/docs/CardIdeas.md b/docs/CardIdeas.md
index 2d78bfd..0729c49 100644
--- a/docs/CardIdeas.md
+++ b/docs/CardIdeas.md
@@ -33,9 +33,10 @@
- teal.fm
- tangled.sh
- popfeed.social
-- smoke signal
+- smokesignal.events (https://pdsls.dev/at://did:plc:xbtmt2zjwlrfegqvch7fboei/events.smokesignal.calendar.event/3ltn2qrxf3626)
- statusphere.xyz
- goals.garden
+- flashes.blue (https://pdsls.dev/at://did:plc:aytgljyikzbtgrnac2u4ccft/blue.flashes.actor.portfolio, https://app.flashes.blue/profile/j4ck.xyz)
## programming
diff --git a/docs/Lexicon.md b/docs/Lexicon.md
new file mode 100644
index 0000000..2a36682
--- /dev/null
+++ b/docs/Lexicon.md
@@ -0,0 +1,4 @@
+# Lexicons used by blento.app
+
+- `site.standard.publication`
+- `app.blento.card`
diff --git a/src/lib/helper.ts b/src/lib/helper.ts
index 122a85a..d68086a 100644
--- a/src/lib/helper.ts
+++ b/src/lib/helper.ts
@@ -292,9 +292,12 @@ export function getDescription(data: WebsiteData): string {
return data.publication?.description ?? data.profile.description ?? '';
}
-export function getHideProfile(data: WebsiteData): boolean {
- if (data?.publication?.preferences?.hideProfile === false) return false;
- if (data?.publication?.preferences?.hideProfile === true) return true;
+export function getHideProfileSection(data: WebsiteData): boolean {
+ if (data?.publication?.preferences?.hideProfileSection !== undefined)
+ return data?.publication?.preferences?.hideProfileSection;
+
+ if (data?.publication?.preferences?.hideProfile !== undefined)
+ return data?.publication?.preferences?.hideProfile;
return data.page !== 'blento.self';
}
@@ -449,12 +452,19 @@ export async function savePage(
}
}
+ if (
+ data.publication?.preferences?.hideProfile !== undefined &&
+ data.publication?.preferences?.hideProfileSection === undefined
+ ) {
+ data.publication.preferences.hideProfileSection = data.publication?.preferences?.hideProfile;
+ }
+
if (!originalPublication || originalPublication !== JSON.stringify(data.publication)) {
data.publication ??= {
name: getName(data),
description: getDescription(data),
preferences: {
- hideProfile: getHideProfile(data)
+ hideProfileSection: getHideProfileSection(data)
}
};
diff --git a/src/lib/types.ts b/src/lib/types.ts
index 9280be9..7a5a94a 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -41,7 +41,14 @@ export type WebsiteData = {
description?: string;
icon?: At.Blob;
preferences?: {
+ /**
+ * @deprecated
+ *
+ * use hideProfileSection instead
+ */
hideProfile?: boolean;
+ // use this instead
+ hideProfileSection?: boolean;
};
}
| undefined;
diff --git a/src/lib/website/EditableWebsite.svelte b/src/lib/website/EditableWebsite.svelte
index fd71103..4e966d4 100644
--- a/src/lib/website/EditableWebsite.svelte
+++ b/src/lib/website/EditableWebsite.svelte
@@ -10,7 +10,7 @@
compactItems,
createEmptyCard,
fixCollisions,
- getHideProfile,
+ getHideProfileSection,
getName,
isTyping,
savePage,
@@ -580,14 +580,14 @@
: ''
]}
>
- {#if !getHideProfile(data)}
+ {#if !getHideProfileSection(data)}