Skip to content

fix(ui): correct the file counts, the run bar and the folder subtitle - #252

Merged
gnacho merged 1 commit into
mainfrom
fix/247-248-251-ui-polish
Oct 29, 2026
Merged

gnacho merged 1 commit into
mainfrom
fix/247-248-251-ui-polish

Conversation

@gnacho

@gnacho gnacho commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Three defects found while capturing the demo screenshots, all visible in the
folder row of the main window.

Changes

Counted strings (#247). plural() in src/util/i18n.rs picks the singular
or the plural translation, since the catalog is a flat map without plural
rules. Applied to the progress caption, the two delete review subtitles and the
"files disappeared" sentence. Five entries added to po/es.po and the catalog
regenerated with tools/gen-translations.py.

Run bar (#248). The 3 px bar keeps its height but is inset 12 px from the
card corners, with 2 px above it, so the row border and the separator between
rows stay visible while a run is in flight.

Folder subtitle (#251). "Synced in local {folder}" becomes "Local copy of
{folder}". The subtitle joins its parts with " · ", so the segment does not
carry that separator itself, otherwise the result reads
"Local copy of · Documentos · 5 min ago".

Verification

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings and
    cargo test clean: 738 passed, 0 failed, including a new test that covers a
    count of 1 and 2 in both languages.
  • Two screenshots from the built binary in the isolated capture sandbox at
    1440x960: the subtitles read "Copia local de Documentos / Fotos / Videos",
    and during a real sync the bar sits inside the card with the separator still
    visible below it.

Closes #247
Closes #248
Closes #251

Singular form when a count is one, in the progress caption, the delete
review subtitles and the "files disappeared" sentence (closes #247).

The run bar is inset from the card corners and separated from the row
border, which used to disappear under it while a run was in flight
(closes #248).

The folder subtitle describes the remote path as a local copy instead of
"Synced in local <folder>", which reads badly and collided with the
separator the subtitle parts already use (closes #251).
@gnacho
gnacho merged commit abaee6f into main Oct 29, 2026
2 checks passed
@gnacho
gnacho deleted the fix/247-248-251-ui-polish branch October 29, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant