Show Taken on Grindr badge #376

Open
codexrunner wants to merge 1 commit from codexrunner/regrind:taken-on-grindr-badge into main
First-time contributor

The API already reports takenOnGrindr on every photo but the app was not showing it.

Adds a small badge over the photo in:

  • Chat bubble
  • Chat drawer's tiles
  • Full-screen viewer
  • Profile pics carousel
  • Settings photo grid

Example:

  • Just now - under a minute old
  • 25 mins - under an hour
  • 3 hrs - under a day
  • Yesterday - one to two days
  • Tuesday - the weekday name, under a week
  • Sep 6 - the date, beyond a week

Read only. Nothing in the upload or save path changes, so a photo's flag cannot be set or cleared by this.

Verified with:

  • Prettier
  • ESLint
  • svelte-check (0 errors, 0 warnings)
  • 1761/1761 unit tests
The API already reports takenOnGrindr on every photo but the app was not showing it. Adds a small badge over the photo in: - Chat bubble - Chat drawer's tiles - Full-screen viewer - Profile pics carousel - Settings photo grid Example: - Just now - under a minute old - 25 mins - under an hour - 3 hrs - under a day - Yesterday - one to two days - Tuesday - the weekday name, under a week - Sep 6 - the date, beyond a week Read only. Nothing in the upload or save path changes, so a photo's flag cannot be set or cleared by this. **Verified with:** - Prettier - ESLint - svelte-check (0 errors, 0 warnings) - 1761/1761 unit tests
Show the Taken on Grindr badge on photos and in the viewer
Some checks are pending
check / check (pull_request) Blocked by required conditions
credits / credits (pull_request) Blocked by required conditions
fee86263e7
Owner

I haven't checked the code yet. I personally don't think there's any point in implementing "Taken on Grindr", neither sending nor rendering it. Grindr doesn't check any provenance for this badge and it's easy to fake. Implementing provenance check on our side would be dumb and delusional because it can be easily compiled out. Sending it upon user's request wouldn't be fair to the official Grindr's client users. And even if the badge was actually verified by Grindr, it still communicates wrong idea to the user. Implementing it in Open Grind is a natural step for consistency and completeness but also a nod towards agreeing with this unsecure system. I think client-side #374 is a more interesting feature.

I'll review the pr itself later, these are just my thoughts on the feature.

I haven't checked the code yet. I personally don't think there's any point in implementing "Taken on Grindr", neither sending nor rendering it. Grindr doesn't check any provenance for this badge and it's easy to fake. Implementing provenance check on our side would be dumb and delusional because it can be easily compiled out. Sending it upon user's request wouldn't be fair to the official Grindr's client users. And even if the badge was actually verified by Grindr, it still communicates wrong idea to the user. Implementing it in Open Grind is a natural step for consistency and completeness but also a nod towards agreeing with this unsecure system. I think client-side #374 is a more interesting feature. I'll review the pr itself later, these are just my thoughts on the feature.
Some checks are pending
check / check (pull_request) Blocked by required conditions
credits / credits (pull_request) Blocked by required conditions
This pull request has changes conflicting with the target branch.
  • src/lib/demo/mock/conversations.ts
  • src/lib/util/photoswipe.ts
  • src/routes/(protected)/(navbar)/profile/[profileId]/ImageCarousel.svelte
  • src/routes/(protected)/(navbar)/profile/[profileId]/ImageCarouselItem.svelte
  • src/routes/(protected)/(navbar)/settings/(subpage)/profile/ProfileForm.svelte
  • src/routes/(protected)/(navbar)/settings/(subpage)/profile/ProfilePictureSlot.svelte
  • src/routes/(protected)/(navbar)/settings/(subpage)/profile/ProfilePicturesUpload.svelte
  • src/routes/(protected)/chat/[conversationId]/message-composer/attachments/media/MediaTile.svelte
  • src/routes/(protected)/chat/[conversationId]/messages/message/ImageMessage.svelte
Some workflows are waiting to be reviewed.
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 'taken-on-grindr-badge:codexrunner-taken-on-grindr-badge'
git switch 'codexrunner-taken-on-grindr-badge'
Sign in to join this conversation.
No description provided.