PictoPy icon indicating copy to clipboard operation
PictoPy copied to clipboard

fix: date-based memories are misclassified as location memories

Open ajithhraj opened this issue 8 months ago • 3 comments

What happened? Date-only memories are created with center_lat = 0 and center_lon = 0 in the backend, but the frontend checks center_lat == null || center_lon == null to determine whether a memory is date-based.

As a result, date-based memories can be treated as location memories.

Why this matters

  • incorrect badge shown on memory cards
  • incorrect title formatting for date-based memories
  • incorrect location/date counts and filtering in the Memories page

Relevant code

  • backend/app/utils/memory_clustering.py
  • frontend/src/components/Memories/MemoryCard.tsx
  • frontend/src/components/Memories/MemoryDetail.tsx
  • frontend/src/components/Memories/MemoriesPage.tsx

Expected behavior Date-based memories should be consistently identified either by:

  • returning null for center_lat / center_lon from the backend, or
  • using the explicit memory type field in the frontend instead of inferring from coordinates.

ajithhraj avatar Mar 17 '26 07:03 ajithhraj

šŸ‘‹ Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)

github-actions[bot] avatar Mar 17 '26 07:03 github-actions[bot]

Hello šŸ‘‹ I am interested in working on this issue. I have basic knowledge of Python and I’m eager to learn and contribute. I will try to provide a clean and well-documented solution. Please assign this issue to me if possible. Thank you 😊

JITENDRAGAHERWAR03 avatar Mar 30 '26 03:03 JITENDRAGAHERWAR03

@rohan-pandeyy Can I please work on this issue? @JITENDRAGAHERWAR03 Are you still working on this one?

VanshajPoonia avatar Jun 27 '26 18:06 VanshajPoonia