feat: Right now indicator in Grid #242

Closed
KinkyMonk wants to merge 1 commit from KinkyMonk/open-grind:gridrightnow into main
Contributor
  • Updated grid to display "Right now" indicators (🏠 | 💧)
  • Updated grid to display the ProfileStatusIndicator and the RightNowIndicator even if the profile has no name and age

image image

- Updated grid to display "Right now" indicators (🏠 | 💧) - Updated grid to display the ProfileStatusIndicator and the RightNowIndicator even if the profile has no name and age ![image](/attachments/d2aaacc5-f1c2-46fc-862a-fde614e7ca96) ![image](/attachments/2c57d345-5dd7-4189-8f37-24b53dbe72f5)
image.png
766 KiB
image.png
772 KiB
KinkyMonk changed title from feat: Right now indicator in Grid to WIP: feat: Right now indicator in Grid 2026-07-18 13:50:56 +02:00
KinkyMonk changed title from WIP: feat: Right now indicator in Grid to feat: Right now indicator in Grid 2026-07-18 13:51:02 +02:00
hloth left a comment

Need tests

Need tests
@ -19,6 +21,7 @@
hadRecentChat = false,
href = null,
class: className,
rightNow = null,
Owner

null !== "NOT_ACTIVE" is always true so every consumer that omits the prop now renders the badge unconditionally. Main replaced that guard with {#if !anonymous} and has a test pinning it (ProfileMiniCard.svelte.test.ts:48).

`null !== "NOT_ACTIVE"` is always true so every consumer that omits the prop now renders the badge unconditionally. Main replaced that guard with `{#if !anonymous}` and has a test pinning it (ProfileMiniCard.svelte.test.ts:48).
@ -66,2 +70,3 @@
{/if}
{#if displayName !== null || age !== null}
{#if displayName !== null || age !== null || isVisiting || rightNow !== "NOT_ACTIVE"}
{console.log(age)}
Owner

Delete

Delete
@ -69,3 +74,3 @@
<Badge
variant="outline"
class="max-w-full min-w-0 shrink gap-0 bg-popover/20 backdrop-blur-2xl"
class="flex max-w-full min-w-0 shrink justify-between gap-0 gap-1 bg-popover/20 backdrop-blur-2xl"
Owner

gap-0 gap-1 contradicting classes

`gap-0 gap-1` contradicting classes
@ -72,2 +76,3 @@
class="flex max-w-full min-w-0 shrink justify-between gap-0 gap-1 bg-popover/20 backdrop-blur-2xl"
>
<ProfileStatusIndicator {onlineUntil} {isVisiting} class="me-1" />
<ProfileStatusIndicator {onlineUntil} {isVisiting} />
Owner

Why remove class="me-1"?

Why remove `class="me-1"`?
@ -78,3 +85,1 @@
{#if displayName !== null && age !== null}
,&nbsp;
{/if}
Owner

Why remove ,&nbsp;?

Why remove `,&nbsp;`?
@ -0,0 +13,4 @@
</script>
{#if rightNow === "HOSTING" || rightNow === "NOT_HOSTING"}
<div class={["flex shrink-0 text-fuchsia-600", className]}>
Owner

No title, aria-label, or sr-only text

No `title`, `aria-label`, or `sr-only` text
@ -8,3 +9,3 @@
displayName: z.string().nullable().optional(),
distanceMeters: z.int().nonnegative().optional(),
rightNow: z.string(),
rightNow: rightNowStatusSchema,
Owner

Breaks src/lib/demo/mock/grid.ts:148,155

Breaks src/lib/demo/mock/grid.ts:148,155
Owner

Closing since all my 7 comments are unanswered. Will do this soon myself as part of the work on Right Now feature.

Closing since all my 7 comments are unanswered. Will do this soon myself as part of the work on Right Now feature.
hloth closed this pull request 2026-11-01 22:44:49 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Depends on
#236 (feat #43): Right Now feed
open-grind/open-grind
Reference
open-grind/open-grind!242
No description provided.