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

Advanced event filters #22

Merged
merged 7 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/actions/ModActionPanel/QuickAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ComAtprotoAdminDefs,
ComAtprotoAdminEmitModerationEvent,
ComAtprotoModerationDefs,
} from '@atproto/api'

Check failure on line 8 in app/actions/ModActionPanel/QuickAction.tsx

View workflow job for this annotation

GitHub Actions / Build

Cannot find module '@atproto/api' or its corresponding type declarations.
import { FormEvent, useEffect, useRef, useState } from 'react'
import { ActionPanel } from '@/common/ActionPanel'
import { ButtonPrimary, ButtonSecondary } from '@/common/buttons'
Expand Down Expand Up @@ -300,7 +300,7 @@
labelSubmissions.push(
onSubmit({
subject: { ...subjectInfo, cid: labelCid },
createdBy: client.session.did,

Check failure on line 303 in app/actions/ModActionPanel/QuickAction.tsx

View workflow job for this annotation

GitHub Actions / Build

Property 'did' does not exist on type 'ClientSession'.
subjectBlobCids: formData
.getAll('subjectBlobCids')
.map((cid) => String(cid)),
Expand All @@ -322,7 +322,7 @@
labelSubmissions.push(
onSubmit({
subject: subjectInfo,
createdBy: client.session.did,

Check failure on line 325 in app/actions/ModActionPanel/QuickAction.tsx

View workflow job for this annotation

GitHub Actions / Build

Property 'did' does not exist on type 'ClientSession'.
subjectBlobCids: formData
.getAll('subjectBlobCids')
.map((cid) => String(cid)),
Expand All @@ -338,7 +338,7 @@
}
await onSubmit({
subject: subjectInfo,
createdBy: client.session.did,

Check failure on line 341 in app/actions/ModActionPanel/QuickAction.tsx

View workflow job for this annotation

GitHub Actions / Build

Property 'did' does not exist on type 'ClientSession'.
subjectBlobCids: formData
.getAll('subjectBlobCids')
.map((cid) => String(cid)),
Expand All @@ -349,7 +349,7 @@
if (formData.get('additionalAcknowledgeEvent')) {
await onSubmit({
subject: subjectInfo,
createdBy: client.session.did,

Check failure on line 352 in app/actions/ModActionPanel/QuickAction.tsx

View workflow job for this annotation

GitHub Actions / Build

Property 'did' does not exist on type 'ClientSession'.
subjectBlobCids: formData
.getAll('subjectBlobCids')
.map((cid) => String(cid)),
Expand Down Expand Up @@ -427,7 +427,7 @@
}
}
`}</style>
<div className="flex overflow-y-auto scrollable-container">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make room for the ring around the Configure button in the mod event list header.

<div className="flex overflow-y-auto scrollable-container pt-1">
<form
id={FORM_ID}
onSubmit={onFormSubmit}
Expand Down
2 changes: 1 addition & 1 deletion components/common/FullScreenActionPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function FullScreenActionPanel(props: {
leaveFrom="opacity-100 scale-100"
leaveTo="opacity-0 scale-95"
>
<Dialog.Panel className="max-w-screen-lg w-full sm:w-5/6 h-full md:max-h-3/4 md:my-12 align-bottom bg-white rounded-lg text-left sm:overflow-hidden shadow-xl transform transition-all sm:align-middle flex">
<Dialog.Panel className="max-w-screen-xl w-full sm:w-5/6 h-full md:max-h-3/4 md:my-12 align-bottom bg-white rounded-lg text-left sm:overflow-hidden shadow-xl transform transition-all sm:align-middle flex">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make room for the filter panel's content in the event list

<div className="absolute top-0 right-0 pt-4 pr-4">
<button
type="button"
Expand Down
Loading
Loading