Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Display acount status in the member drawer and profile card#98

Merged
7w1 merged 3 commits into7w1:devfrom
nushea:sable-statuses-good-hopefully-i-swear-to-god
Mar 4, 2026
Merged

Display acount status in the member drawer and profile card#98
7w1 merged 3 commits into7w1:devfrom
nushea:sable-statuses-good-hopefully-i-swear-to-god

Conversation

@nushea
Copy link
Copy Markdown

@nushea nushea commented Mar 3, 2026

Description

This pull request makes it so that within the hero (profile card) and the member drawer you are able to see the presence (online, busy, unavailable), and the status message (a custom message) of a person.

This is how it would display using this code:
image
image

This pr is based on a (1 day) old version of sable

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Comment thread src/app/features/room/MembersDrawer.tsx Outdated
</Text>
{presence?.status && (
/* The Color value should be edited to the theme specific disabled text color */
<Text size="T300" truncate style={{ color: '#888888', fontFamily: font }}>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the color tag here and instead use opacity so we have general theme support?
Something like: style={{ opacity: config.opacity.P300, fontFamily: font }}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated it but in that way i think it looks very white in the default theme, i was wondering if there is a more faded option for it, so it doesn't look like it is completely its own thing iykwim
image

{presence?.status?.length && (
<div className={css.UserHeroStatusContainer}>
<Tooltip style={{ maxWidth: '90%', justifySelf: 'left' }}>
<Text size="T200"> {presence.status} </Text>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this have a max height or is there any limit for statuses? I'm wondering if long statuses might end up covering the message button.

Copy link
Copy Markdown
Author

@nushea nushea Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am genuinely not sure how long a status_msg can be, cant find it in the spec either, commet lets you set seemingly infinitely long statuses (tho it only displays a few dozen characters), so i have made it so it has 2 modes, a collapsed mode where it doesnt cover the message button, an expanded one that does, and within the expanded one just if someone sets a stupidly long message it can scroll, and i think this is the best way around forcing a limit.
but on that note do you know any way to make it look better and more clear it is meant to be clickable?

(default/collapsed)
image
(expanded)
image
(and you can srcroll it if your friend wants to troll you with statuses or w/e)
image

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a little arrow icon, like the one at the + 1 more info? Would cut into the text space a little though. Not sure tbh.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it actually works well
image
(and only shows up if the string is >70char which is a reasonable minimum and how much text normally fits in the string, to avoid it showing up unnecessarily)

so i think this is good now

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for all the work!

@7w1 7w1 merged commit 6c96c10 into 7w1:dev Mar 4, 2026
4 checks passed
@nushea nushea deleted the sable-statuses-good-hopefully-i-swear-to-god branch March 4, 2026 03:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants