feat(publish): releases in git (public tier, stage 2)

A person with an identity and a public profile publishes a studyset with
everything inside it as its next release (ADR 0005, rule 3): the server
reads their synced rows and writes them through the git command as a
commit on main and the annotated tag vN, in a bare repository of the
studyset's own, named by a random public id made at the first publish.

A release is a directory per studyset with a file per card, note, path,
step and PDF (its id, position, tag names and payload as synced, keys
sorted and indented) and the files the content names, without what is
only the author's (a card's report, a PDF's deadline). Publishing is
refused without a licence allowing passing it on in every studyset ("no
derivatives" allowed), with revisions to settle, with files not uploaded
yet, when nothing changed, or for a name that won't do; the name is
fixed from the first release, as is the person's handle.

In the app, Share in a studyset's action row opens the Publish sheet;
publishing syncs first, and settles by itself the revisions that merge
cleanly, listing only real conflicts. The server's image gets git, the
repositories a volume of their own, and the hourly backup a git bundle of
each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MMm7usAo6q9ZZRoPkWjoxi
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-09 22:01:00 +02:00
commit f635b0816a
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -5039,4 +5039,151 @@ class AppLocalizationsDe extends AppLocalizations {
);
return '$_temp0';
}
@override
String get studysetShare => 'Teilen';
@override
String get studysetSharePrivate => 'Teilen: privat';
@override
String get studysetSharePublished => 'Teilen: veröffentlicht';
@override
String get publishTitle => 'Veröffentlichen';
@override
String get publishPrivate => 'Privat · nur du siehst es';
@override
String publishPublished(int version, String date) {
return 'Veröffentlicht · v$version · $date';
}
@override
String get publishIntro =>
'Eine Veröffentlichung ist dieses Lernset mit allem darin, so wie es jetzt ist. Andere können es finden, damit lernen und es kopieren. Jede Veröffentlichung bleibt, wie sie war; spätere Änderungen kommen in die nächste.';
@override
String get publishAnonymous =>
'Melde dich mit GitHub an, um ein öffentliches Profil zu haben und zu veröffentlichen.';
@override
String get publishName => 'Name';
@override
String get publishNameHint => 'japanisch';
@override
String publishLocation(String location) {
return 'Zu finden unter $location';
}
@override
String get publishNameFixed =>
'Fest, seit du zuerst veröffentlicht hast: andere verweisen darauf.';
@override
String get publishLicence => 'Lizenz';
@override
String get publishLicenceNone => 'Keine';
@override
String get publishLicenceOpen => 'Erlaubt das Veröffentlichen.';
@override
String get publishLicenceNoDerivatives =>
'Erlaubt das Veröffentlichen, wie es ist: Lernende behalten ihre Änderungen für sich.';
@override
String get publishLicenceClosed =>
'Erlaubt keine Weitergabe. Wähle unter Bearbeiten eine andere.';
@override
String publishLicenceNotOpen(String titles) {
return 'Die Lizenzen dieser Lernsets erlauben keine Weitergabe: $titles';
}
@override
String get publishNotes => 'Was sich geändert hat';
@override
String get publishNotesHint => 'Neu in dieser Veröffentlichung …';
@override
String get publishReleases => 'Veröffentlichungen';
@override
String publishRelease(int version, String date) {
return 'v$version · $date';
}
@override
String publishButton(int version) {
return 'v$version veröffentlichen';
}
@override
String get publishNoProfile =>
'Eine Veröffentlichung nennt dich mit deinem öffentlichen Profil. Lege zuerst eines an.';
@override
String get publishMakeProfile => 'Öffentliches Profil anlegen';
@override
String get publishConflicts =>
'Diese wurden auf zwei Geräten verschieden geändert. Kläre sie zuerst:';
@override
String get publishConflictsElsewhere =>
'Einige Karteikarten, Notizen oder Schritte wurden auf zwei Geräten verschieden geändert. Synchronisiere, dann versuche es noch einmal.';
@override
String get publishUntitled => 'Ohne Titel';
@override
String get publishFilesMissing =>
'Einige Dateien sind noch nicht auf deiner Instanz angekommen. Versuche es gleich noch einmal.';
@override
String get publishNothingChanged =>
'Seit der letzten Veröffentlichung hat sich nichts geändert.';
@override
String get publishBusy =>
'Dieses Lernset wird schon veröffentlicht. Versuche es gleich noch einmal.';
@override
String get publishSlugInvalid =>
'Kleinbuchstaben, Ziffern und Bindestriche, am Anfang ein Buchstabe oder eine Ziffer.';
@override
String get publishSlugTaken =>
'Ein anderes deiner Lernsets hat diesen Namen.';
@override
String get publishNotesTooLong => 'Höchstens 5.000 Zeichen.';
@override
String publishDone(int version) {
return 'v$version veröffentlicht.';
}
@override
String get publishFailed =>
'Deine Instanz war nicht erreichbar. Nichts wurde veröffentlicht.';
@override
String get publishUnreachable =>
'Das Veröffentlichen ist gerade nicht erreichbar.';
@override
String get publishRetry => 'Erneut versuchen';
@override
String get publishCopyLocation => 'Adresse kopieren';
@override
String get publishLocationCopied => 'Adresse kopiert.';
}