Skip to content

fix(ui): use the SlashIt logo in the sidebar and name the Linux tray - #366

Merged
shingonoide merged 1 commit into
mainfrom
fix/sidebar-brand-tray
Nov 18, 2026
Merged

shingonoide merged 1 commit into
mainfrom
fix/sidebar-brand-tray

Conversation

@shingonoide

Copy link
Copy Markdown
Contributor

Summary

  • Sidebar: show the canonical logo.svg in place of the generic gradient S, and drop the "Task orchestration" subtitle. The collapsed sidebar shows the logo alone with the accessible name SlashIt.
  • Linux tray: the hover name is the StatusNotifierItem Title. libayatana takes it from the GLib application name, which defaulted to the binary name (slashit-ui). The application name is now set to SlashIt before the tray is built.

Changes

  • index.html: one Trunk copy-file directive for logo.svg, so the build serves the same file as the repository root.
  • src/components/sidebar.rs: the header renders the logo image in both states.
  • src-tauri/src/lib.rs: a Linux-only call to g_set_application_name("SlashIt") in the tray setup, declared with extern "C" like the existing declarations in rtprio_guard.rs. No dependency is added.

Root cause (tray)

tauri::tray::TrayIconBuilder::tooltip is ignored by the libappindicator backend, which the default tray-icon features select on Linux. .title() maps to a persistent label, not a hover name. The live item's Title property was slashit-ui, and ToolTip was empty. A scratch probe that uses the same libappindicator calls showed Title = the program name by default and SlashIt after g_set_application_name("SlashIt").

Not changed

  • Binary name, productName, bundle identifier com.barradev.slashit-app, IPC, persistent paths, updater.
  • Program name (g_get_prgname) and therefore the process name.
  • CHANGELOG: deferred until PR chore(release): prepare SlashIt v0.0.4 prerelease #365 lands, to avoid a conflict.

Validation

  • cargo check -p slashit-ui: passes, no warnings.
  • cargo clippy -p slashit-ui -p slashit -- -D warnings: passes.
  • cargo test -p slashit-frontend: 401 and 3 passed.
  • trunk build: succeeds, and logo.svg in the output is byte-identical to the root asset.
  • Browser check of the built frontend, with a scratch stub for window.__TAURI__: expanded sidebar shows the logo and SlashIt, the tagline is absent, no S glyph remains, the logo loads, collapse and expand work, and navigation works. Console showed only the errors from the stubbed backend.
  • Tray: verified with a standalone libappindicator probe on the owner's session (Title changes from the program name to SlashIt). The full application was not run for this PR.

Limits

  • The sidebar was not checked inside the Tauri webview. The acceptance harness cannot run on this machine (no WebKitWebDriver).
  • The tray fix is verified on the libayatana backend only. On a host that uses a different StatusNotifierItem client, the displayed name should still follow Title, but it was not tested there.

The sidebar shows the canonical logo.svg, copied into the frontend build by
Trunk, in place of a generic gradient S, and drops the Task orchestration
subtitle. The collapsed sidebar keeps the logo alone with an accessible name.

On Linux the tray hover name is the StatusNotifierItem Title, which
libayatana takes from the GLib application name. That defaulted to the
binary name (slashit-ui). The application name is now set to SlashIt before
the tray is built. The libappindicator backend ignores tooltips, so the
existing tooltip call is unchanged. Binary, bundle and application
identifiers, IPC and persistent paths are unaffected.
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: BarraDev/slashit
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 6c2da69
  • Layers: Repository YAML (base), Repository UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 7f560ab4-dccc-4d2e-96d6-2a9f97d33731
Commits

Reviewing files that changed from the base of the PR and between 6c2da69 and e55efdc.

Files selected for processing: 3

  • index.html
  • src-tauri/src/lib.rs
  • src/components/sidebar.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shingonoide
shingonoide merged commit f3fde88 into main Nov 18, 2026
17 checks passed
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