Skip to content
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

Merged
merged 7 commits into from
Feb 8, 2025
Merged

❇️ Subject priority score #287

merged 7 commits into from
Feb 8, 2025

Conversation

foysalit
Copy link
Contributor

@foysalit foysalit commented Feb 5, 2025

Depends on bluesky-social/atproto#3495

This PR adds priority score event display and sorting and filtering the queue by priority score.

Screenshot 2025-02-06 at 12 14 11

Priority score in queue

Screenshot 2025-02-06 at 12 14 24

Priority score in quick action panel

Screenshot 2025-02-06 at 12 14 31

Priority score event display

Screenshot 2025-02-06 at 12 20 14

Priority score sorting

@@ -613,7 +621,12 @@ function Form(

{!!subjectStatus && (
<div className="pb-4">
<p>
<p className="flex flex-row items-center">
{!!subjectStatus?.priorityScore && (
Copy link
Contributor

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:

Suggested change
{!!subjectStatus?.priorityScore && (
{subjectStatus?.priorityScore != null && (

Copy link
Contributor Author

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.

Comment on lines +12 to +14
if (!priorityScore) {
return null
}
Copy link
Contributor

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) ?

Suggested change
if (!priorityScore) {
return null
}

Copy link
Contributor Author

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.

@arcalinea arcalinea temporarily deployed to add-priority-score - ozone-staging PR #287 February 6, 2025 21:19 — with Render Destroyed
@foysalit foysalit merged commit 3f205b2 into main Feb 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants