Skip to content

The open-source app everyone uses to manage agents at work

Merge public-gh/master into feature/plugin-runtime-instance-cleanup

Dottaeafb5b8fd9cf
diff --cc packages/db/src/migrations/0029_plugin_tables.sql
index 8ee0d93787,0000000000..8ee0d93787
mode 100644,000000..100644
--- a/packages/db/src/migrations/0029_plugin_tables.sql
+++ b/packages/db/src/migrations/0029_plugin_tables.sql
diff --cc packages/db/src/migrations/meta/_journal.json
index 63c1808782,59741caede..b061a56abd
--- a/packages/db/src/migrations/meta/_journal.json
+++ b/packages/db/src/migrations/meta/_journal.json
@@@ -201,9 -201,9 +201,16 @@@
{
"idx": 28,
"version": "7",
+ "when": 1773432085646,
+ "tag": "0028_harsh_goliath",
+ "breakpoints": true
++ },
++ {
++ "idx": 29,
++ "version": "7",
+ "when": 1773417600000,
- "tag": "0028_plugin_tables",
++ "tag": "0029_plugin_tables",
+ "breakpoints": true
}
]
-}
+}
diff --cc ui/src/pages/IssueDetail.tsx
index 02c5c8dbcd,b96ca7dbf1..53b52a7490
--- a/ui/src/pages/IssueDetail.tsx
+++ b/ui/src/pages/IssueDetail.tsx
@@@ -696,68 -793,39 +811,80 @@@ export function IssueDetail()
/>
</div>
+ <PluginSlotOutlet
+ slotTypes={["toolbarButton", "contextMenuItem"]}
+ entityType="issue"
+ context={{
+ companyId: issue.companyId,
+ projectId: issue.projectId ?? null,
+ entityId: issue.id,
+ entityType: "issue",
+ }}
+ className="flex flex-wrap gap-2"
+ itemClassName="inline-flex"
+ missingBehavior="placeholder"
+ />
+
+ <PluginLauncherOutlet
+ placementZones={["toolbarButton"]}
+ entityType="issue"
+ context={{
+ companyId: issue.companyId,
+ projectId: issue.projectId ?? null,
+ entityId: issue.id,
+ entityType: "issue",
+ }}
+ className="flex flex-wrap gap-2"
+ itemClassName="inline-flex"
+ />
+
+ <PluginSlotOutlet
+ slotTypes={["taskDetailView"]}
+ entityType="issue"
+ context={{
+ companyId: issue.companyId,
+ projectId: issue.projectId ?? null,
+ entityId: issue.id,
+ entityType: "issue",
+ }}
+ className="space-y-3"
+ itemClassName="rounded-lg border border-border p-3"
+ missingBehavior="placeholder"
+ />
+
- <div className="space-y-3">
+ <IssueDocumentsSection
+ issue={issue}
+ canDeleteDocuments={Boolean(session?.user?.id)}
+ mentions={mentionOptions}
+ imageUploadHandler={async (file) => {
+ const attachment = await uploadAttachment.mutateAsync(file);
+ return attachment.contentPath;
+ }}
+ extraActions={!hasAttachments ? attachmentUploadButton : undefined}
+ />
+
+ {hasAttachments ? (
+ <div
+ className={cn(
+ "space-y-3 rounded-lg transition-colors",
+ )}
+ onDragEnter={(evt) => {
+ evt.preventDefault();
+ setAttachmentDragActive(true);
+ }}
+ onDragOver={(evt) => {
+ evt.preventDefault();
+ setAttachmentDragActive(true);
+ }}
+ onDragLeave={(evt) => {
+ if (evt.currentTarget.contains(evt.relatedTarget as Node | null)) return;
+ setAttachmentDragActive(false);
+ }}
+ onDrop={(evt) => void handleAttachmentDrop(evt)}
+ >
<div className="flex items-center justify-between gap-2">
<h3 className="text-sm font-medium text-muted-foreground">Attachments</h3>
- <div className="flex items-center gap-2">
- <input
- ref={fileInputRef}
- type="file"
- accept="image/png,image/jpeg,image/webp,image/gif"
- className="hidden"
- onChange={handleFilePicked}
- />
- <Button
- variant="outline"
- size="sm"
- onClick={() => fileInputRef.current?.click()}
- disabled={uploadAttachment.isPending}
- >
- <Paperclip className="h-3.5 w-3.5 mr-1.5" />
- {uploadAttachment.isPending ? "Uploading..." : "Upload image"}
- </Button>
- </div>
+ {attachmentUploadButton}
</div>
{attachmentError && (