{
@@ -779,10 +776,27 @@ export function LibraryPage() {
return;
}
void beginDropWait().then((kind) => {
- if (kind === "files") uploads.add(files, uploadInto);
+ if (kind !== "files") return;
+ // The current shell only receives the few files WebKit lists. Do not upload that slice.
+ setDropPartial(true);
});
}}
>
+ {dropPartial && (
+
+ {t.dropPartial}
+
+
+ )}
{error && (
{error}
@@ -894,7 +908,14 @@ export function LibraryPage() {
/>
{photoMenu && photoMenuActions.length > 0 && (
- setPhotoMenu(null)} />
+ setPhotoMenu(null)}
+ onColor={(color) => void patch(selection.map((p) => p.id), { colorLabel: color })}
+ onRating={(rating) => void patch(selection.map((p) => p.id), { rating })}
+ />
)}
{removeOpen && isEventScope(state.scope) && (
{
expect(decide("api", "issues", push(["apps/api/x"])).action).toBe("ignore");
});
+ it("deploys when a merge commit lists no files", () => {
+ expect(decide("app", "push", push([])).action).toBe("deploy");
+ });
+
it("deploys when Gitea truncated the commit list", () => {
expect(decide("ml", "push", push(["docs/x.md"], { total_commits: 30 })).action).toBe("deploy");
});
diff --git a/infra/deploy-receiver/src/webhook.ts b/infra/deploy-receiver/src/webhook.ts
index 13f411f..d5ffeaa 100644
--- a/infra/deploy-receiver/src/webhook.ts
+++ b/infra/deploy-receiver/src/webhook.ts
@@ -33,6 +33,8 @@ export function decide(service: Service, event: string | undefined, payload: Pus
return { action: "deploy", sha, reason: "commit list truncated" };
}
const paths = commits.flatMap((c) => [...(c.added ?? []), ...(c.modified ?? []), ...(c.removed ?? [])]);
+ // A merge commit often arrives with an empty file list. Skipping it left the app on an older build.
+ if (paths.length === 0) return { action: "deploy", sha, reason: "push listed no paths" };
return touchesService(service, paths)
? { action: "deploy", sha, reason: "owned paths changed" }
: { action: "ignore", reason: "no owned paths changed" };