Add favorite note to profiles #205

Open
peddling638 wants to merge 10 commits from peddling638/open-grind:feat/137-add-notes-to-favorite-profiles into main
First-time contributor

Resolves #137

Resolves https://git.opengrind.org/open-grind/open-grind/issues/137
Author
First-time contributor

CleanShot 2026-07-07 at 11.50.59
Edit modal for the note and phone number

CleanShot 2026-07-07 at 11.50.41
Note truncates if it is too long
CleanShot 2026-07-07 at 11.50.26

When you only have the profile as favorite you will see the icon on top right - this is empty note.

![CleanShot 2026-07-07 at 11.50.59](/attachments/18040146-dac3-437e-bc29-9afee1f59584) Edit modal for the note and phone number ![CleanShot 2026-07-07 at 11.50.41](/attachments/7240e96c-d68e-424f-bf0f-dd26e32a5201) Note truncates if it is too long ![CleanShot 2026-07-07 at 11.50.26](/attachments/112fa618-b766-4757-9629-9e738a50008b) When you only have the profile as favorite you will see the icon on top right - this is empty note.
Owner

I'm thinking of a better design that would fit Open Grind, look around https://www.shadcn-svelte.com/docs/components maybe you'll think of something that's both convinient on mobiles and compact on desktops.

I'm thinking of a better design that would fit Open Grind, look around https://www.shadcn-svelte.com/docs/components maybe you'll think of something that's both convinient on mobiles and compact on desktops.
Author
First-time contributor

CleanShot 2026-07-10 at 13.04.45@2x

Drawer version

![CleanShot 2026-07-10 at 13.04.45@2x](/attachments/32357a7f-77f5-4609-b7e1-e718b34a2a4c) Drawer version
hloth left a comment

Also in compliance with https://git.opengrind.org/open-grind/open-grind/src/branch/main/CONTRIBUTING.md#submitting-your-changes requiremenets, please configure your git to commit with the email activated in your account and enable commit signing using a key added & verified in your git.opengrind.org account

Also in compliance with https://git.opengrind.org/open-grind/open-grind/src/branch/main/CONTRIBUTING.md#submitting-your-changes requiremenets, please configure your git to commit with the email activated in your account and enable commit signing using a key added & verified in your git.opengrind.org account
@ -0,0 +19,4 @@
}: { profile: Profile | null; note: FavoriteNote | null } = $props();
const NOTE_MAX_LENGTH = 250;
const PHONE_MAX_LENGTH = 32;
Owner

Where do 250 and 32 come from?

Where do `250` and `32` come from?
Author
First-time contributor

Actually found out that the phone length is max 20 characters and note max length is visible in the official Grindr app.

Actually found out that the phone length is max 20 characters and note max length is visible in the official Grindr app.
peddling638 marked this conversation as resolved
@ -0,0 +73,4 @@
class="w-full min-w-0 cursor-pointer text-base"
onclick={() => (open = true)}
>
<NoteIcon class="size-4 shrink-0" />
Owner

Let's replace this icon with filled note-pencil icon, this way it can act as both "a note" icon and "edit me" action button.

Let's replace this icon with filled note-pencil icon, this way it can act as both "a note" icon and "edit me" action button.
peddling638 marked this conversation as resolved
hloth added this to the v0.1.0-beta.4 milestone 2026-07-11 21:18:20 +02:00
peddling638 force-pushed feat/137-add-notes-to-favorite-profiles from f332c3a080 to dd243b78fe 2026-07-12 00:52:21 +02:00 Compare
Owner

Don't forget to add & verify your signing key here — https://git.opengrind.org/user/settings/keys
Otherwise your commits show up as "No known key found for this signature in database"

Don't forget to add & verify your signing key here — https://git.opengrind.org/user/settings/keys Otherwise your commits show up as "No known key found for this signature in database"
peddling638 force-pushed feat/137-add-notes-to-favorite-profiles from ff39e8f6e5 to 0550507d5a 2026-07-13 11:13:00 +02:00 Compare
Author
First-time contributor

@hloth wrote in #205 (comment):

Don't forget to add & verify your signing key here — https://git.opengrind.org/user/settings/keys Otherwise your commits show up as "No known key found for this signature in database"

fixed =)

@hloth wrote in https://git.opengrind.org/open-grind/open-grind/pulls/205#issuecomment-1725: > Don't forget to add & verify your signing key here — https://git.opengrind.org/user/settings/keys Otherwise your commits show up as "No known key found for this signature in database" fixed =)
This pull request has changes conflicting with the target branch.
  • src/lib/api/users/favorites.ts
  • src/routes/(protected)/(navbar)/profile/[profileId]/+page.svelte
  • src/routes/(protected)/(navbar)/profile/[profileId]/ImageCarousel.svelte
  • src/routes/(protected)/(navbar)/profile/[profileId]/top-nav/FavoriteProfileToggle.svelte
  • src/routes/(protected)/(navbar)/profile/[profileId]/top-nav/ProfileTopNavBar.svelte
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u feat/137-add-notes-to-favorite-profiles:peddling638-feat/137-add-notes-to-favorite-profiles
git switch peddling638-feat/137-add-notes-to-favorite-profiles
Sign in to join this conversation.
No description provided.