Skip to content

Commit

Permalink
save user ID with url to ensure that same website can be saved by users
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhravya committed Apr 11, 2024
1 parent 9220d5f commit efe6c94
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
2 changes: 1 addition & 1 deletion apps/cf-ai-backend/src/routes/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function POST(request: Request, store: CloudflareVectorizeStore) {
},
],
{
ids: [`${body.url}`],
ids: [`${body.url}-${body.user}`],
},
);

Expand Down
3 changes: 1 addition & 2 deletions apps/web/src/components/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ export default function Main({ sidebarOpen }: { sidebarOpen: boolean }) {
)}
>
<h1 className="text-rgray-11 mt-auto w-full text-center text-3xl font-bold tracking-tight md:mt-0">
Never forget anything. You are now{" "}
<span className="text-[#C9AC3E]">Smort</span>er.
Ask your second brain
</h1>

<Textarea2
Expand Down
26 changes: 8 additions & 18 deletions apps/web/src/components/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,24 +77,16 @@ export default function Sidebar({
<>
<div className="relative hidden h-screen max-h-screen w-max flex-col items-center text-sm font-light md:flex">
<div className="bg-rgray-3 border-r-rgray-6 relative z-[50] flex h-full w-full flex-col items-center justify-center border-r px-2 py-5 ">
<MenuItem
item={{
label: "Smort",
icon: (
<Image
className="rounded-md"
src="/icons/logo_without_bg.png"
alt="Smort logo"
width={50}
height={50}
/>
),
labelDisplay: <WordMark />,
}}
selectedItem={selectedItem}
setSelectedItem={setSelectedItem}
<Image
className="mb-4 rounded-md"
src="/icons/logo_bw_without_bg.png"
alt="Smort logo"
width={50}
height={50}
/>

<div className="bg-rgray-6 mb-8 h-[1px] w-full" />

<MenuItem
item={{
label: "Memories",
Expand All @@ -104,9 +96,7 @@ export default function Sidebar({
selectedItem={selectedItem}
setSelectedItem={setSelectedItem}
/>

<div className="mt-auto" />

<MenuItem
item={{
label: "Trash",
Expand Down

0 comments on commit efe6c94

Please sign in to comment.