Skip to content

Commit ed4fdd5

Browse files
authored
Merge pull request #6 from tiagonoronha/develop
Release 1.1.0
2 parents ff0dd30 + b7d5f90 commit ed4fdd5

47 files changed

Lines changed: 1412 additions & 392 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/),
66
and this project adheres to [Semantic Versioning](https://semver.org/).
77

8+
## [1.1.0] - 2026-04-15
9+
10+
### Added
11+
12+
- Light mode support with a theme selector.
13+
- Menu bar sensor pagination with a global shortcut to cycle between pages.
14+
- Auto-return to the first menu bar page after a period of inactivity.
15+
16+
### Changed
17+
18+
- Replaced pill tabs with a vertical sidebar navigation.
19+
- Split the General settings tab into separate Connection and System tabs, with System positioned just before About.
20+
- Redesigned card layout so headers sit outside the card body background.
21+
- Inputs, selects, and the switch off state now use the main background for a cleaner look.
22+
- Refined form field layout and styling.
23+
- Removed the accordion from connection settings for a flatter layout.
24+
- Updated the server URL placeholder and error text to use `http`.
25+
- Updated the token replace button cursor and confirmation message.
26+
- Sensor values now respect the Home Assistant display precision.
27+
- Simplified tray sensor updates for improved performance.
28+
829
## [1.0.2] - 2026-03-19
930

1031
### Changed
@@ -35,6 +56,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
3556

3657
- Initial release.
3758

59+
[1.1.0]: https://github.com/tiagonoronha/peek/compare/v1.0.2...v1.1.0
3860
[1.0.2]: https://github.com/tiagonoronha/peek/compare/v1.0.1...v1.0.2
3961
[1.0.1]: https://github.com/tiagonoronha/peek/compare/v1.0.0...v1.0.1
4062
[1.0.0]: https://github.com/tiagonoronha/peek/releases/tag/v1.0.0

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ A macOS menu bar app for monitoring Home Assistant sensors without opening a bro
1010

1111
## Features
1212

13-
- **Menu bar display** - Show selected sensors directly in the menu bar with customizable format and separators
13+
- **Menu bar display** - Display selected sensors in the menu bar with custom formatting and separators. Group into pages, cycle via a global shortcut, and auto-reset after inactivity
1414
- **Dropdown menu** - Show additional sensors in the dropdown menu
1515
- **Real-time updates** - Live sensor values via WebSocket with automatic reconnection
16+
- **Display precision** - Honors the display precision configured in Home Assistant for each sensor
1617
- **Custom naming** - Override sensor names for a more personalized display
1718
- **Configurable formatting** - Templates for how sensor values appear (e.g., `{name}: {value}`)
1819
- **Drag & drop** - Reorder sensors and move them between menu bar and dropdown
20+
- **Light & dark themes** - Pick a theme or follow the system appearance
1921
- **Auto-update** - Background update checks with one-click install
2022
- **Lightweight** - Built with Tauri 2.0 for a small footprint and native performance
2123

@@ -28,7 +30,7 @@ Requires **macOS 11+** and a Home Assistant instance with a [long-lived access t
2830
## Setup
2931

3032
1. Click the Peek icon in the menu bar and open **Preferences**
31-
2. Enter your Home Assistant URL and access token
33+
2. In the **Connection** tab, enter your Home Assistant URL and access token
3234
3. Go to the **Sensors** tab and add the sensors you want to monitor
3335

3436
## Build from source

package-lock.json

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "peek",
33
"private": true,
4-
"version": "1.0.2",
4+
"version": "1.1.0",
55
"type": "module",
66
"scripts": {
77
"dev": "tauri dev",
@@ -24,6 +24,7 @@
2424
"@tauri-apps/plugin-autostart": "^2",
2525
"@tauri-apps/plugin-dialog": "^2.6.0",
2626
"@tauri-apps/plugin-fs": "^2.4.5",
27+
"@tauri-apps/plugin-global-shortcut": "^2.3.1",
2728
"@tauri-apps/plugin-opener": "^2",
2829
"@tauri-apps/plugin-process": "^2.3.1",
2930
"@tauri-apps/plugin-updater": "^2.10.0",

src-tauri/Cargo.lock

Lines changed: 68 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "peek"
3-
version = "1.0.2"
3+
version = "1.1.0"
44
description = "A macOS menu bar app for monitoring Home Assistant sensors"
55
authors = ["you"]
66
edition = "2021"
@@ -27,6 +27,7 @@ tauri-plugin-fs = "2"
2727
tauri-plugin-autostart = "2"
2828
tauri-plugin-updater = "2"
2929
tauri-plugin-dialog = "2"
30+
tauri-plugin-global-shortcut = "2"
3031

3132
[profile.release]
3233
lto = true

src-tauri/capabilities/default.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
"autostart:allow-disable",
3030
"autostart:allow-is-enabled",
3131
"updater:default",
32-
"dialog:default"
32+
"dialog:default",
33+
"global-shortcut:allow-register",
34+
"global-shortcut:allow-unregister",
35+
"global-shortcut:allow-unregister-all",
36+
"global-shortcut:allow-is-registered"
3337
]
3438
}

src-tauri/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub fn run() {
1818
))
1919
.plugin(tauri_plugin_updater::Builder::new().build())
2020
.plugin(tauri_plugin_dialog::init())
21+
.plugin(tauri_plugin_global_shortcut::Builder::new().build())
2122
.invoke_handler(tauri::generate_handler![log_to_terminal])
2223
.setup(|app| {
2324
// Hide dock icon on macOS — this is a tray-only app

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "Peek",
4-
"version": "1.0.2",
4+
"version": "1.1.0",
55
"identifier": "com.peek",
66
"build": {
77
"beforeDevCommand": "vite",

src/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { Provider } from "@/components/ui/Provider";
1616
import { Spinner } from "@/components/ui/Spinner";
1717
import { Toaster, toast } from "@/components/ui/Toaster";
1818
import { SettingsProvider } from "@/hooks/useSettings";
19+
import { useThemeEffect } from "@/hooks/useThemeEffect";
1920
import { initializeApp } from "@/services/appLifecycle";
2021
import { loadSettings } from "@/services/configStore";
2122
import { createLogger, DEFAULT_SETTINGS, type Settings } from "@/shared";
@@ -31,6 +32,8 @@ function App() {
3132
const [loading, setLoading] = useState(true);
3233
const [activeTabIndex, setActiveTabIndex] = useState(0);
3334

35+
useThemeEffect(settings.theme);
36+
3437
const reloadFromStore = useCallback(async () => {
3538
try {
3639
const saved = await loadSettings();

0 commit comments

Comments
 (0)