-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
❇️ Subject priority score #287
Conversation
@@ -613,7 +621,12 @@ function Form( | |||
|
|||
{!!subjectStatus && ( | |||
<div className="pb-4"> | |||
<p> | |||
<p className="flex flex-row items-center"> | |||
{!!subjectStatus?.priorityScore && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does 0
means low priority ? If so, it might make sense to distinguish null
here:
{!!subjectStatus?.priorityScore && ( | |
{subjectStatus?.priorityScore != null && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 means either we haven't set a priority or we have intentionally set it to 0. it always defaults to 0 either way and never null and we won't care why
it's 0.
if (!priorityScore) { | ||
return null | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since priorityScore
is not optional, does it make sense to not render when priorityScore
is 0
(low priority) ?
if (!priorityScore) { | |
return null | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't have a use case where 0 priority score needs to be taken into account by mods so a non-positive integer does not need to be rendered.
Depends on bluesky-social/atproto#3495
This PR adds priority score event display and sorting and filtering the queue by priority score.