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

✨ Takedown policy association #261

Merged
merged 7 commits into from
Jan 3, 2025
Merged

Conversation

foysalit
Copy link
Contributor

@foysalit foysalit commented Dec 20, 2024

Depends on bluesky-social/atproto#3271

This PR adds a new setting panel for managing a list of policies for takedown action. When taking a subject down moderators can optionally chose a policy from the list to associate with the takedown.

takedown_policy.mov

>
<ActionDurationSelector
action={modEventType}
onChange={(e) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is unrelated to the objective of this PR but wanted to add it in since it's been requested by mods a few times in the past.

@arcalinea arcalinea temporarily deployed to takedown-policy-association - ozone-staging PR #261 January 3, 2025 22:13 — with Render Destroyed
@@ -25,9 +16,10 @@ export const getStaticActions = ({
shortcut: ['w'],
keywords: 'workspace,panel',
perform: () => {
const newParams = new URLSearchParams(searchParams)
const pathname = window.location.pathname
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this has been causing a bunch of flaky test failures for a while now because of how nextjs was keeping cached version of pathname.

@foysalit foysalit merged commit ae2fdb0 into main Jan 3, 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