fix(app): Reorder among older items, export and text import that hold up

- Reorder: rows from before an order existed all share one position, and
  one moved among them landed at their end; the run it goes into now
  gets positions of its own (placeAmong), for notes, files, paths,
  steps and sub-studysets. Rows whose deletion can still be undone count
  for nothing, as the list leaves them out, and a dropped row takes its
  place at once instead of snapping back until the order is read again.
- Export: two studysets inside each other (moved so on two devices
  offline) no longer make it run forever; links to files whose names
  hold #, % or brackets work; PDFs, images and sounds go into the zip
  without being compressed again; any error says the export failed.
- Text import: a real CSV reader (quoted fields over several lines, a
  back over several quoted fields, a stray quote spoiling only its own
  line), the separator guessed from the text (semicolons from German
  spreadsheets), and files in UTF-16 or Windows-1252 read as meant.
- A tab whose notes, paths or files couldn't be read says so rather than
  "No … yet"; an Anki import from the Library that fails leaves no empty
  studyset behind.

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 13:02:32 +02:00
commit 084af278b5
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -1633,7 +1633,7 @@ abstract class AppLocalizations {
/// No description provided for @cardTextImportDescription.
///
/// In en, this message translates to:
/// **'One card per line: its front, a separator, then its back. Each line is split at its first separator; lines without one are left out.'**
/// **'One card per line: its front, a separator, then its back. Each line is split at its first separator; lines without one are left out. A field in double quotes, as spreadsheets write them, may hold separators and line breaks.'**
String get cardTextImportDescription;
/// No description provided for @cardTextImportHint.
@ -1657,7 +1657,7 @@ abstract class AppLocalizations {
/// No description provided for @cardTextImportUnreadable.
///
/// In en, this message translates to:
/// **'This file isn\'t text in UTF-8.'**
/// **'This file doesn\'t hold text.'**
String get cardTextImportUnreadable;
/// No description provided for @cardTextImportSeparator.
@ -2650,6 +2650,24 @@ abstract class AppLocalizations {
/// **'Couldn\'t read the tags.'**
String get tagsReadFailed;
/// No description provided for @notesReadFailed.
///
/// In en, this message translates to:
/// **'Couldn\'t read the notes.'**
String get notesReadFailed;
/// No description provided for @pathsReadFailed.
///
/// In en, this message translates to:
/// **'Couldn\'t read the learning paths.'**
String get pathsReadFailed;
/// No description provided for @filesReadFailed.
///
/// In en, this message translates to:
/// **'Couldn\'t read the files.'**
String get filesReadFailed;
/// No description provided for @tagPickerTitle.
///
/// In en, this message translates to: