Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

minor UX improvement

Daniel11152caf6d4b
diff --git a/components/InputSelect/CollectionSelection.tsx b/components/InputSelect/CollectionSelection.tsx
index 238b8f0e..d7307a03 100644
--- a/components/InputSelect/CollectionSelection.tsx
+++ b/components/InputSelect/CollectionSelection.tsx
@@ -45,6 +45,7 @@ export default function CollectionSelection({ onChange, defaultValue }: Props) {
return (
<Select
isClearable
+ placeholder="Unnamed Collection"
onChange={onChange}
options={options}
styles={styles}
diff --git a/components/Modal/Link/AddOrEditLink.tsx b/components/Modal/Link/AddOrEditLink.tsx
index d1450ef0..ceecdc62 100644
--- a/components/Modal/Link/AddOrEditLink.tsx
+++ b/components/Modal/Link/AddOrEditLink.tsx
@@ -155,10 +155,7 @@ export default function AddOrEditLink({
) : null}
<div>
- <p className="text-sm text-sky-500 mb-2">
- Collection
- <RequiredBadge />
- </p>
+ <p className="text-sm text-sky-500 mb-2">Collection</p>
<CollectionSelection
onChange={setCollection}
// defaultValue={{
diff --git a/lib/api/controllers/links/postLink.ts b/lib/api/controllers/links/postLink.ts
index ed04a899..2991235b 100644
--- a/lib/api/controllers/links/postLink.ts
+++ b/lib/api/controllers/links/postLink.ts
@@ -15,7 +15,7 @@ export default async function postLink(
if (!link.name) {
return { response: "Please enter a valid name for the link.", status: 400 };
} else if (!link.collection.name) {
- link.collection.name = "Other";
+ link.collection.name = "Unnamed Collection";
}
if (link.collection.id) {