refactor: extract shared mixins and helpers, drop dead abstractions

Introduces shared seams for paginated views, D-pad reorder, media control
routing, async singletons and the device method channel, then points the
open-coded copies at them.

Also removes unused models and duplicated provider/server plumbing, folds
the twice-implemented artifact store in the server, and factors the
repeated Flutter toolchain prologue in CI into a composite action.
This commit is contained in:
edde746
2026-07-26 06:09:48 +02:00
parent 61344f7862
commit 352b88109b
217 changed files with 6813 additions and 8773 deletions
@@ -86,12 +86,11 @@ class _AddPlexAccountScreenState extends State<AddPlexAccountScreen> with AsyncF
// to the profile, remove it again so a cancelled attach doesn't
// leave a global account behind.
if (!registration.existedBefore) {
await removePlexAccountConnectionAndCleanup(
account: connection,
await ProfileConnectionCleanup(
profileConnections: pcRegistry,
connections: connRegistry,
storage: storage,
);
).removePlexAccountConnection(connection);
}
if (mounted) Navigator.of(context).pop(false);
return true;