feat: add optional mood to thoughts with custom moods support
Some checks failed
lint / lint (push) Failing after 9m28s
test / unit (push) Successful in 16m8s

Mood is an optional label+emoji string (e.g. "relaxed 😌") on thoughts.
Users can define up to 8 custom moods in profile settings.
Mood federates via AP Note JSON and displays on thought cards.
This commit is contained in:
2026-05-29 15:38:35 +02:00
parent be27fe04e2
commit 442a61bbdb
34 changed files with 294 additions and 42 deletions

View File

@@ -114,7 +114,7 @@ async function FeedPage({
<header className="mb-6">
<h1 className="text-3xl font-bold text-shadow-sm">Your Feed</h1>
</header>
<ThoughtForm />
<ThoughtForm currentUser={me} />
<div className="block lg:hidden space-y-6">{sidebar}</div>

View File

@@ -9,6 +9,7 @@ export const metadata: Metadata = {
import { redirect } from "next/navigation";
import { getMe } from "@/lib/api";
import { EditProfileForm } from "@/components/edit-profile-form";
import { CustomMoodsEditor } from "@/components/custom-moods-editor";
export default async function EditProfilePage() {
const token = (await cookies()).get("auth_token")?.value;
@@ -32,6 +33,7 @@ export default async function EditProfilePage() {
</p>
</div>
<EditProfileForm currentUser={me} token={token} />
<CustomMoodsEditor initial={me.customMoods} />
</div>
);
}