cad-editor/src/ui
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 86f5ba7b62 feat: in-app update notice — checks GitHub releases on startup
Adds a one-shot update check that runs on app boot and pops up a small
"Update Available" window when the GitHub releases API reports a newer
tag than this build's `CARGO_PKG_VERSION`.

- `src/update_check.rs` — async wrapper around a blocking `ureq` GET to
  `api.github.com/repos/HakanSeven12/H7CAD/releases/latest`, returns
  `Some(version)` when a newer release exists, `None` otherwise (silent
  on network / parse failure so a missing connection never blocks
  launch).
- `H7CAD::boot` chains a `Task::perform` next to the main-window open
  so the check runs in parallel with first-paint.
- New window plumbed like the other floating panels (page setup, about,
  etc.): `update_notice_window`/`update_notice_version` state, title
  entry, `OsWindowClosed` cleanup, and a `ui::update_notice::view_window`
  modal that shows installed vs. latest version plus "Later" /
  "Open Release Page" buttons. Open routes through `open::that` to the
  releases URL and dismisses the modal.

Dependency: adds `ureq = { version = "2", default-features = false,
features = ["tls"] }` — the smallest blocking HTTP client + TLS combo
that doesn't drag in an async runtime.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 19:55:57 +03:00
..
ribbon chore: remove dead UI helpers and orphan toolbar stubs 2026-05-16 00:04:44 +03:00
about.rs cargo fmt 2026-05-12 10:36:15 +03:00
app_menu.rs Refactor src/main.rs into modular src/app/ structure 2026-03-22 22:44:32 +03:00
command_line.rs feat: right-click context menu + CONSTRUCTIONLINE alias 2026-04-08 00:41:01 +03:00
dimstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
layers.rs chore: remove dead UI helpers and orphan toolbar stubs 2026-05-16 00:04:44 +03:00
layout_manager.rs cargo fmt 2026-05-12 10:36:15 +03:00
mlstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
mod.rs feat: in-app update notice — checks GitHub releases on startup 2026-05-16 19:55:57 +03:00
open_progress.rs feat(io): show loading overlay while opening CAD files 2026-05-13 09:59:07 +03:00
overlay.rs cargo fmt 2026-05-12 10:36:15 +03:00
page_setup.rs cargo fmt 2026-05-12 10:36:15 +03:00
plotstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
properties.rs cargo fmt 2026-05-12 10:36:15 +03:00
scale_popup.rs chore: remove dead UI helpers and orphan toolbar stubs 2026-05-16 00:04:44 +03:00
shortcuts.rs cargo fmt 2026-05-12 10:36:15 +03:00
snap_popup.rs chore: remove dead UI helpers and orphan toolbar stubs 2026-05-16 00:04:44 +03:00
statusbar.rs cargo fmt 2026-05-12 10:36:15 +03:00
tablestyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
textstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
update_notice.rs feat: in-app update notice — checks GitHub releases on startup 2026-05-16 19:55:57 +03:00