Skip to content

Telegram restore: per-app list with app names - #18

Open
ash-iir wants to merge 1 commit into
VD171:mainfrom
ash-iir:telegram-restore-ui
Open

ash-iir wants to merge 1 commit into
VD171:mainfrom
ash-iir:telegram-restore-ui

Conversation

@ash-iir

@ash-iir ash-iir commented Nov 19, 2026 •

Copy link
Copy Markdown

What

Redesigns the Restore from Telegram dialog and shows app names for every Telegram backup.

Before, each Telegram backup was one row showing only the bare package name, and long package names ran under the Delete / Pull buttons, so rows overlapped and several backups of the same app looked identical.

Now the list is grouped per app:

  • one card per app, collapsed by default: icon, app name and package, plus the backup count and newest date
  • an app that is no longer installed keeps its name with a small "Not installed" badge. The name comes from the upload's caption metadata (see below), else from a local backup of the app, else the package
  • tapping a card opens one line per backup: date (parsed from the <pkg>__<ts>_<vc>.vdb.tar name), size, version code, a Latest badge, and its own Delete / Pull
  • the actions wrap under the date on narrow screens instead of overlapping
  • the most recently backed-up app comes first, newest backup first inside each card
  • native <details> / <summary>, so keyboard, screen reader and RTL work as in the other collapsible groups
  • a search box appears once there are 6+ apps and matches the app name or the package (reuses search_apps / ui_job_no_match)
Before After (collapsed) After (opened) After (RTL)

Checklist

  • The project banner header is present on every new/changed source file.
  • Code and comments are in English; no em/en-dashes.
  • If a UI label changed, all lang/<code>.json and README.<code>.md were updated. (three new strings, ui_tg_n_backups, ui_tg_latest and ui_tg_not_installed, in en.js, en.json and every <code>.json; no README text changes)
  • No real feature (SELinux/uid-gid/modes preservation, etc.) was weakened.
  • Commits are signed off (git commit -s).
  • Tested on a rooted device/emulator (note which). Not tested on a rooted device or emulator. (An earlier version of this line said the dialog was tested on a rooted device; that was wrong.) The dialog was checked with the tools/screenshots harness mocks (fictional backups and mocked telegram-list output, 412x915, en + ar), which is also where the screenshots come from.

App name in the caption

The archive name only carries the package, so before this the list could not name an app that is not installed. The name now travels in the Telegram caption instead of the file name, which keeps the <pkg>__<ts>_<vc>.vdb.tar format (and its parsing in telegram-pull) untouched and avoids making long names longer.

Either PR can be merged first. An mtproto-store build without that PR ignores the environment variable, and the UI simply has no meta.label to read, so it falls back as before. Older uploads keep working; new uploads get the name once both are in.

@ash-iir
ash-iir force-pushed the telegram-restore-ui branch 2 times, most recently from a34ed1a to bfd98b8 Compare November 19, 2026 10:53
Group the Telegram backups per app: one collapsed card per app with the icon, app name, package, backup count and newest date; tapping it opens one line per backup with its date, size, version and its own Pull / Delete. The actions wrap on narrow screens, the most recently backed-up app comes first, and a search box (app name or package) appears once the list is long.

Uploads now pass the app label to mtproto-store in MTPROTO_STORE_LABEL, which stores it in the caption metadata that telegram-list already returns, so an app that is no longer installed still shows its name, with a small Not installed badge. The file name format is unchanged. Older mtproto-store builds ignore the variable; the list then falls back to the label of a local backup, else the package.

Three new strings (ui_tg_n_backups, ui_tg_latest, ui_tg_not_installed) in every language; the search reuses search_apps and ui_job_no_match.

Signed-off-by: ash-iir <254348575+ash-iir@users.noreply.github.com>
@ash-iir
ash-iir force-pushed the telegram-restore-ui branch from bfd98b8 to 32b1895 Compare November 19, 2026 11:04
@ash-iir ash-iir changed the title Redesign the Restore from Telegram dialog Telegram restore: per-app list with app names Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant