#6637·uppy

Track File Library consumer patches and their upstream removal criteria

Author: kvzCreated Sep 29, 2026Updated Sep 29, 2026

Why

Following Mikael’s request for concrete improvement reports, here is the remaining consumer-patch inventory for the Console File Library and our Companion deployment. We have prepared the move from production tarballs to published packages in Content #6161 and API2 #9291.

The goal is to remove patches when supported upstream behavior replaces them, not to require Uppy to adopt every deployment-specific extension. This is a tracking/coordination issue; #6635, #6636 and #6629 remain the individual bug/fix threads. We will follow the standalone manager direction in #6628 instead of building a second file manager in Content.

Inspected September 29: published Core 6.1.0, Dashboard 6.0.0, Companion 7.1.0, Storage 0.1.0, and Uppy main ab80ddb2f. A fix in main is not yet a reason to remove a patch from a consumer pinned to an older npm release.

Reusable fixes and removal criteria

Area Reproduction / missing behavior When the consumer workaround can go
Core: connection feedback #6635: rejected getGrant(), failed fetch, or plain-text HTTP 400/503 leaves the connection view without a warning. Structured UserFacingApiError handling already works. A released Core shows exactly one translated, sanitized connection warning; structured errors and retry still work; request aborts/session probes stay quiet. OAuth cancellation remains distinct from a real connection failure, and local addFiles errors are not relabeled as network errors.
Core: unresolved upload destination #6636, consumer Content #6164: defer docs/ listing, then invoke Upload/drop while the old root is still current. The upload can capture the old prefix. A released provider/manager contract prevents accepting folder-dependent writes before the destination settles. Keep navigation/search/logout and long-operation cancellation usable; do not turn all listing activity into a global busy state. Accepted application upload batches must retain their original destination.
Dashboard: duplicate notices Existing fix #6629. One uppy.info() can render two Informers. A Dashboard release includes the fix; a short-window browser test sees exactly one visible/accessible warning, followed by successful retry. No new duplicate bug issue is needed.
Dashboard: standalone chrome and file drops Main’s PickerPanelContent has the standalone/acceptsFileDrops behavior; published Dashboard 6.0.0 does not. Without it our library regains an “Import from…” header/Cancel action and loses opted-in file drops. Publish the existing behavior, or supply its supported replacement through #6628. Verify ordinary picker behavior, text inputs/dialogs, and teardown too. We can then remove this backport rather than depend on experimental flags indefinitely.
Companion: dynamic OAuth refresh credentials refresh-token.ts reads static providerOptions[providerName], unlike the request’s supported getProviderCredentials() resolution. Static credentials work; dynamically supplied credentials need the same resolution during refresh. A release uses the established credential resolver for refresh, with both static and dynamic-provider tests. Our integration then removes that hunk.
Companion: Unicode native Storage moves The catalog canonicalizes paths to NFC. Moving to cafe\u0301.jpg can succeed but be reported as an unexpected response when the returned NFC path is compared with the unnormalized destination. Normalize the native source/destination consistently (or adopt an equivalent explicit canonical-path contract), and test decomposed/composed filenames and folder moves. Keep native moves identity-preserving; do not fall back to S3 copy/delete.
Companion: useful, sanitized diagnostics We currently preserve mapped/sanitized provider diagnostics for listing/auth failures, while keeping unexpected backend failures at error level with bounded status/code/request IDs. A release preserves these properties. Tests should inject synthetic private sentinels into upstream errors and prove they do not appear in logs/UI, while unexpected errors remain diagnosable. A blanket debug-only downgrade would lose operational visibility.

For styling, Dashboard 6.0.0’s bundled provider CSS predates the current management UI. Content imports the already-published @uppy/core/provider-views/css after Dashboard CSS; we do not carry a CSS fork. A supported manager stylesheet/dependency recipe would let consumers avoid guessing the import order.

What should not automatically become an upstream requirement

  • Our application owns staff/Workspace authorization, grant issuance, its upload modal/queue, and pinning each accepted batch’s destination until storage completes or the batch is cleared. Disabling a toolbar is not a substitute for application drop/admission checks.
  • Our provider-bound OAuth token bridge and associated integration guards are deployment-specific. We will retain them or migrate to an agreed supported extension point; this issue is not a request for a general token-export endpoint. Security-sensitive integration details should be discussed with maintainers separately, not expanded into public reproduction recipes here.
  • We use managed inline JSON configuration and a config-file environment override for standalone Companion. Upstream support would be useful, but a small application-owned launcher using Companion’s supported options API may be the better boundary. Either solution must preserve existing OAuth configuration and fail safely on malformed/conflicting configuration, without logging secrets. Please advise which direction you prefer.
  • The only remaining Content archive is the 18,248-byte private test fixture @uppy-dev/[email protected], not a production dependency. Publishing a mock package solely to achieve “zero tarballs” is not required.

Consumer proof available

  • Connection regression suite: unpatched npm reproduced 3 failures / 4 passes, patched package 7 passes.
  • Content #6164 evidence: 15 component tests and 7 DAM browser flows in each of Chromium and WebKit. The delayed-listing test rejects a drop without signing, then verifies docs/${file.name} in the signed store instructions after navigation settles. It also covers queued/failed batch destination retention and successful refresh.
  • Installed Companion tests and socket regressions exercise the patched published package over HTTP/WebSocket, including config, OAuth, scoped Storage operations and native moves—not just the Uppy source tree.

The exact consumer patches are linked from Content’s vendor README and API2’s Companion documentation.

Proposed follow-through

  • Confirm which reusable items should land independently and which belong in the #6628 manager contract.
  • Link upstream fixes and their published package versions here; retain the existing focused issues/PRs.
  • Upgrade consumers and remove matching hunks one at a time, rerunning the installed-package and browser regressions.
  • Keep only justified application/deployment adapters; document their replacement path instead of asking Uppy to absorb unrelated product policy.

No accelerated redesign/release is assumed. We can keep the small consumer patches until the replacement is published and verified.