diff --git a/HACKING.md b/HACKING.md index 0f52f9e..852a4bd 100644 --- a/HACKING.md +++ b/HACKING.md @@ -33,7 +33,7 @@ You can also test with different permission levels with the following credential - Triage: triage.test/triage-pass - Triage: admin-mod.test/admin-mod-pass -### Working with unpublished changes to the `@atproto/api` package +### Working with unpublished changes to `atproto` In the course of development there may be updates to the atproto client that are not yet published to npm, but you would like to use with Ozone. Here's the workflow for using unpublished changes to the @atproto/api package: @@ -62,23 +62,19 @@ In the course of development there may be updates to the atproto client that are ~/Documents/bluesky/atproto ❯ yarn ``` - -4. Update the package.json file in ozone/ to reference the local build of @atproto/api. - - ```diff - "dependencies": { - - "@atproto/api": "^0.0.3", - + "@atproto/api": "link:../atproto/packages/api/dist", - "@headlessui/react": "^1.7.7", - ``` - -5. Ask yarn to reinstall, creating the link from ozone/ to the local build of @atproto/api. +4. Link local atproto packages by running: ``` ~/Documents/bluesky/ozone - ❯ yarn + ❯ yarn link-atproto + ``` + This automatically patches `next.config.js`, `package.json`, clears the Next.js cache, and re-installs dependencies. If your atproto directory is not at `../atproto`, you can specify a custom path: ``` -6. Take care not to check-in the changes to package.json and yarn.lock that came from the temporary linking. When you're done, you can reset everything with: + ❯ ATPROTO_PATH=../path/to/atproto yarn link-atproto + ``` + +5. When you're done, revert back to the published packages by running: ``` ~/Documents/bluesky/ozone - ❯ git checkout package.json yarn.lock && yarn + ❯ yarn unlink-atproto ``` + Take care not to check-in any changes to `next.config.js`, `package.json`, or `yarn.lock` that came from the temporary linking. diff --git a/app/actions/ModActionPanel/QuickAction.tsx b/app/actions/ModActionPanel/QuickAction.tsx index 94b426a..a1e3f88 100644 --- a/app/actions/ModActionPanel/QuickAction.tsx +++ b/app/actions/ModActionPanel/QuickAction.tsx @@ -280,7 +280,6 @@ function Form( isAuthorTakendown={ !!record?.repo.moderation.subjectStatus?.takendown } - className="border-2 border-dashed border-gray-300" > {!isSubjectDid && record?.repo && (
+ Comment +
++ Loading report... +
+Report not found.
+
+ {!!subjectStatus.priorityScore && (
+
-
+ )} + ++ {/* show a space so this element maintains its height */} + {nsidError ?? '\u00A0'} +
++ Date range cannot exceed {limit} days +
+ )} +
- {displayTitle}
+
- {title ? title : 'Reported user'}
+
{description}
-
+ This is for sharing configs between team members.
+
+ 1. The sharer should click 'Copy Filters' and paste the output
+ to their team member.
+ 2. The team member should click 'Import Filters' and paste the
+ config.
+
+ Subject Types +
++ Collection +
+
+ {queue.collection}
+
+ + Report Types +
++ Created By +
+Assigned
+Reset Filters
+No queues found.
+How a report matches this queue:
+AND
++ Queue not found.{' '} + +
+ )} ++ {displayName ?? (handle ? `@${handle}` : member.did)} +
+ )} ++ @{handle} +
+ )} + {assignedDate && !isNaN(assignedDate.getTime()) && ( ++ {sinceLabel} {formatDistanceToNow(assignedDate, { addSuffix: true })} +
+ )} ++ {noteText} +
+ )} + + +Loading…
+ )} + {!isLoading && !activities?.length && ( +No activity yet
+ )} + {!!activities?.length && ( ++ Updated {new Date(stats.lastUpdated).toLocaleTimeString()} +
++ {group.description} +
+ )} + + {isLoading ? ( ++ No data to show +
++ {comment.slice(0, COMMENT_TRUNCATE_AT).trimEnd()}…{' '} + +
+{title}
++ Loading reports... +
+ > + ) : ( +
+
+
+ Please click {'\"Load More\"'} button to check for more items
+
+ >
+ ) : (
+ 'No reports found'
+ )}
+