Skip to content

v2.18.0

Choose a tag to compare

@Arelius-D Arelius-D released this 02 Sep 15:00
· 23 commits to main since this release

Added

  • Import summary popover: the moment an import finishes, a popover on the footer's import glyph lists every file with its outcome: imported, or skipped with the reason on hover (unsupported file type, empty, unreadable; skipped files were previously counted but never shown). From the same popover the whole batch can be moved to any live folder or into a folder created on the spot, for the case where the right destination was noticed one drop too late. It obeys the same rule as every menu: the next click anywhere else dismisses it, and a fully successful import fades on its own after 8 seconds unless the pointer is over it (reading is not dismissing), so the user who was already standing in the right folder pays nothing. Each row carries its outcome glyph: authentic Iconsax lin-tick-circle for imported, lin-slash for skipped, a circle family kept distinct from the app's square control glyphs. When anything was skipped, a lin-refresh-2 "Choose files again…" action reopens the file chooser for a fresh pick.

  • In-app server panel: clicking the footer's cloud badge opens a floating panel anchored on it, a context-menu family member like every other panel (no backdrop, dismissed by the next click anywhere else), showing the server's live request log: the same metadata-only lines docker logs shows, held in a 300-line in-memory ring on the server and served at /api/log, polled every 2 seconds while open (the poll excludes itself from the log it reads). Self-hosters can now answer "did my write land, when, and what did the server say" without shelling into the host. The manual sync is a Force sync control in the panel's top corner, wearing lin-cloud-change, and leaves the panel open so the write it forces appears in the log being watched: as a flush it is nearly obsolete (typing debounces, structural operations save instantly, lock and unload drain, Ctrl+S remains), but it stays as the only retry lever after a failed write, since the design has no automatic retry. Mounting the Docker socket to read the real log was rejected for the same reason it always has been.

Fixed

  • Ciphertext could leak into the tag library and multiply: a vault write that fired while the in-memory vault still held ciphertext, in the window between deriving the key and finishing decryption on unlock, encrypted already-encrypted strings a second time. Notes recover on the next save (they are rebuilt from plaintext every time), but the tag library is a union that never forgets, so ENC:… "tags" accumulated, each unlock adding a layer. The vault now carries an explicit plaintext invariant: saveStore refuses, loudly, unless decryption has completed since the last time ciphertext entered memory, and on every entry any remaining ENC:-prefixed tag remnants are purged from the library and from notes and the repair saved.
  • Emptying the trash now closes the trash panel: an emptied panel had nothing left to show or act on, yet stayed open until the user clicked elsewhere.
  • No horizontal scrollbar in the trash panel: a long folder or note name widened the panel's rows and, with only vertical overflow declared, forced a horizontal bar; the panel now clips sideways exactly as the sidebar tree does.
  • Icon and label never disagree on a state: four rules straddled the stylesheet's two state models (content rows brighten to --text-primary on hover/active; controls take --accent) and painted an icon one colour and its label another. The trash row's glyph went accent while its text went primary; the view tabs used the row model on hover and the control model when active; the folder caret stayed muted while its row brightened; the import button's glyph went accent while importing and its label did not. Each now follows its own family: trash glyph and text together, view-tab hover in accent like its active state and the pills beside it, caret inheriting its row's colour once the row is hovered or active, importing label matching its glyph. Verified from computed colours with the theme's colour transitions settled; identical in all eight themes, since every theme block sets tokens only.
  • The import button no longer breaches the footer card at the narrowest sidebar: the comfort cluster plus the labelled import button need 14.25rem of card width, and at the sidebar's 15rem floor the card offers 13.5rem, so the button pushed 0.75rem into the card's border. The footer is now a size container and the import button sheds its text label below the fitting width, becoming icon-only exactly like the Lock button that never had the problem; the label returns as soon as there is room.
  • Comfort-row glyphs no longer drift when the sidebar is resized: the footer's top row laid its buttons directly on space-between, so dragging the divider redistributed the new width between every glyph, while the actions row below (two clusters with fixed gaps inside) held still. The comfort buttons now sit in a left cluster mirroring the actions row's shape: resizing stretches only the void between the cluster and the import corner.
  • Mutations render first, the vault write follows: every structural operation (delete, restore, rename, move, tag, pin, create) re-encrypted the entire vault, uploaded it whole, waited for the server to fsync, and only then redrew the tree. Deleting a handful of folders in quick succession left them all on screen until their round-trips returned, and the concurrent whole-vault uploads throttled each other (measured: three simultaneous 440 KB writes stretching to 30-43 s on a slow link). The tree now redraws from memory in the same frame as the click, and writes go through a coalescer: one in flight, at most one queued, so a burst of twenty operations costs two vault writes carrying the end state instead of twenty racing ones. The cloud badge remains the truth of persistence, exactly as it already was for typing; locking, hiding the tab and leaving the page drain any write still flying before proceeding, and the leave-warning now covers in-flight writes, not only the editor debounce.
  • Import no longer reports success when the vault write failed: the batch save's outcome was swallowed, so the glyph could announce "Imported 3 Notes" while the sync badge showed the write had failed and the notes existed only in memory. The save now reports its result; a failed write shows an error state instead of a success label, and the red sync badge carries the failure as it always has.