mirror of
https://github.com/edu4rdshl/Strata.git
synced 2026-07-17 23:24:46 +00:00
Cut the 0.8.0 release (dependency upgrades + single-instance and error-handling hardening): daemon Cargo.toml/Cargo.lock to 0.8.0, extension metadata.json version to 8, and add the [0.8.0] CHANGELOG entry. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
9.3 KiB
9.3 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
[0.8.0] - 2026-05-26
Changed
- Upgraded daemon dependencies: zbus 4 -> 5, rusqlite 0.31 -> 0.40, dirs 5 -> 6.
Fixed
- Single-instance daemon: the bus name is now requested with
DoNotQueueinstead ofReplaceExisting | AllowReplacement. If the name is already owned the daemon exits cleanly instead of (a) running without owning it (zbus 5 returnsInQueueasOk) or (b) stealing the name and leaving the previous instance running as an orphan (zbus does not terminate a replaced owner). - Real SQLite errors are no longer swallowed as "not found":
upsert_item's dedup lookup andget_thumbnail/get_raw_itemnow distinguish a missing row (Ok(None)) from a genuine error (propagated), viaoptional(). - Daemon supervisor: a guard prevents spawning two daemons when an in-flight name-owner check overlaps a backoff retry, and the exit handler ignores foreign/stale subprocess exits so restart accounting can't be corrupted.
- Panel: clearing history (or a
HistoryClearedsignal) now invalidates the active search snapshot, so scrolling can't render stale rows; the scroll-into-view idle is guarded against a destroyed panel.
Internal
- clippy pedantic/nursery cleanup across the daemon (format args, redundant
clone, pass-by-reference, doc backticks), with
#[allow]+ rationale for the intentional lints (the single-writer lock hold, zbus interfaceasync).
[0.7.0] - 2026-05-26
Fixed
- Theme stylesheet reload no longer recurses.
load_stylesheetitself emits the St theme context'schangedsignal, so reloadinglight.csson everychangedfed back into itself and hit "too much recursion" - flooding the journal and spinning the CPU on screen unlock (which restyles widgets and fireschanged).light.cssis now loaded once and thechangedsubscription is removed entirely. (Dark/light switching is unaffected - it is the panel's class toggle, not this load. A GNOME Shell theme switch no longer auto-re-applies the sheet; that is recoverable by re-enabling.)
Changed
- BREAKING (D-Bus): the service was renamed from
org.gnome.Stratatodev.edu4rdshl.Strata. Theorg.gnome.*namespace is reserved for official GNOME software; Strata is a third-party project, so it now uses the reverse-DNS of its own domain (matching thestrata@edu4rdshl.devUUID). Bus name, object path (/dev/edu4rdshl/Strata), and interface (dev.edu4rdshl.Strata.Manager) all changed. The bundled daemon and extension are updated together; only externalbusctlscripts or non-GNOME front-ends that hard-coded the old name need updating. The GSettings schema (org.gnome.shell.extensions.strata) is unchanged - that namespace is the correct convention for GNOME Shell extension settings.
[0.6.0] - 2026-05-26
Added
- Lazy, full-history search. Search now covers the entire stored history (up
to
max-history) instead of an arbitrary 500-result cap, and renders a page at a time as you scroll instead of building every match at once. Results are snapshotted once and paged from memory, so scrolling never re-queries.
Fixed
- Images other than PNG/JPEG (GIF, WebP, BMP, TIFF, ICO) were silently dropped because the daemon could not decode them. They are now decoded and stored. AVIF and SVG are no longer accepted (not decodable here), rather than accepted-then-dropped.
- Search no longer "blinks" (paints an empty list) between keystrokes; the first page renders in the same frame as the clear.
- Search render race conditions: a fast new query can no longer be blocked by a superseded render, render a previous query's stale results, or leave a pruned item behind as a phantom row on scroll.
ItemAddedpreview length now matches the history/search queries (200 chars), so a just-copied row and the same row after a reload show the same text.- Deterministic ordering for items that share a millisecond timestamp
(
created_at DESC, rowid DESC), so pruning can't evict the wrong one. - Lowering max history now prunes stored items immediately instead of waiting for the next copy.
- Extension lifecycle: the
excluded-appssettings handler and the daemon force-kill timer are now released on disable; the exclusion-path delete is null-guarded. - The daemon requests its bus name with
AllowReplacementfor a clean hand-off on extension reload; the Wayland monitor clears stale offers on clipboard clear.
Changed
- Image rows show a generic "Image" label instead of singling out PNG.
[0.5.0] - 2026-05-26
Added
- Light/dark theme support. A new Theme preference (Automatic / Light /
Dark) controls the panel palette; Automatic follows the system
org.gnome.desktop.interface color-scheme. The dark theme is unchanged. Light styling lives inlight.css, scoped under a.strata-theme-lightclass toggled on the panel root box, loaded into the St theme context by the extension. Switching is a single class toggle with no runtime cost on the ingest/render paths.
Fixed
- The keyboard shortcut now hides the panel when it is already open. The
binding was registered without
Shell.ActionMode.POPUP, so while the panel's modal grab was active the second press was swallowed andtoggle()never ran. - The search placeholder ("Search...") is now legible in the light theme; it previously inherited a light-on-dark Shell color.
Packaging
make packnow bundleslight.css(--extra-source); onlystylesheet.cssis auto-included bygnome-extensions pack.
[0.4.0] - 2026-05-26
Performance
GetHistory/SearchHistorynow truncatecontent_textto a preview (substr, ~200 chars) in SQL instead of returning the full payload. A page of large text items previously serialized up to megabytes of JSON over D-Bus and parsed it on the GJS main loop, only to render a 140-char snippet. Full content is still served on demand byGetItemContent.
[0.3.0] - 2026-05-25
Fixed
_notifyDaemonMissingnow uses the correct ESMMessageTrayimport; the missing-binary desktop notification was previously silently swallowed by acatchblock due to aReferenceErroron the legacyimports.ui.*path.clearItems()no longer double-destroys widgets:destroy_all_children()on the item list is sufficient; the preceding per-widgetdestroy()loop was redundant and could trigger warnings.- Daemon now fails fast with a clear error message when the XDG data directory cannot be determined, instead of silently placing the database in the current working directory.
Performance
make_thumbnailreturn type simplified toResult<Vec<u8>>; the previously returned base64 string was never used at the call site.prune()now collects IDs with a singleORDER BYsubquery, then deletes withDELETE WHERE id IN (...), eliminating a redundant second query.get_raw_itemno longer fetchesthumbnail_blob(up to ~40 KB per row) when only text/binary content is needed for paste-back.- Unnecessary clones of
WriteRequestfields eliminated inwrite_to_clipboard. - Hover hit-testing in the panel replaced: the previous O(n) per-widget
bounds-check loop on every mouse-move is now O(tree-depth) via
event.get_source()+ parent walk, letting Clutter's own hit-test do the work. SetFocusedAppD-Bus call removed. The daemon stored the value but never read it; app exclusion runs entirely in the extension beforeSubmitItemis called. Eliminates one IPC round-trip on every window focus change.GetItemContentnow returns raw bytes (ay) instead of a base64-encoded string (s). Eliminates base64 encode in the daemon and decode in GJS on every paste. Thebase64crate dependency has been removed entirely.
[0.2.0] - 2026-05-25
Fixed
- MIME priority: plain text now preferred over rich text.
When an application (code editors, web browsers, etc.) advertises both a
plain-text and a rich-text (
text/html,text/rtf) variant on the clipboard, Strata now captures the plain-text variant. Previously,text/htmlranked abovetext/plain, causing syntax-highlighted HTML markup to be stored instead of the actual source text when copying from code editors. Rich-text types are still captured when no plain-text alternative is offered. Fix applied to both the Rust daemon (pick_mime) and the GNOME Shell extension (_pickMime) to keep them in sync.
[0.1.0] - 2026-05-24
Added
- Initial release.
- Rust daemon (
strata-daemon) with SQLite/FTS5 storage, Wayland clipboard monitor, D-Bus interface (org.gnome.Strata), and image thumbnail support. - GNOME Shell extension (
strata@edu4rdshl.dev) with popup panel, lazy-loaded pagination, full-text search, image thumbnails, and paste-back. - Preferences window (Adwaita) for history size, size limits, keyboard shortcut, panel position/width, and excluded-app list.
- Daemon lifecycle management: extension detects an existing systemd-managed
daemon and falls back to spawning from
PATH; shows a desktop notification when the binary is not found. contrib/systemd/strata-daemon.servicefor distribution packaging.Makefilewithinstall-daemon,install, andpacktargets.