feat: add optional mood to thoughts with custom moods support
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:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user