Compare commits

...
12 Commits
Author SHA1 Message Date
dependabot[bot] 90f667e551 deps: Bump Ical.Net from 5.2.3 to 5.2.4 (#76)
---
updated-dependencies:
- dependency-name: Ical.Net
  dependency-version: 5.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-10 06:01:26 +00:00
dependabot[bot] 0cf7d45b89 deps: Bump Markdig from 1.5.1 to 1.6.0 (#77)
---
updated-dependencies:
- dependency-name: Markdig
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-10 12:53:02 +07:00
dependabot[bot] 2700e1ffea deps: Bump the build-tooling group with 2 updates (#75)
Bumps dotnet-sonarscanner from 12.0.0 to 12.1.0
Bumps Meziantou.Analyzer from 3.0.318 to 3.0.321

---
updated-dependencies:
- dependency-name: dotnet-sonarscanner
  dependency-version: 12.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: build-tooling
- dependency-name: Meziantou.Analyzer
  dependency-version: 3.0.321
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: build-tooling
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-09 22:49:42 +00:00
dependabot[bot] eb079f601a Merge pull request #74 from poli0981/dependabot/github_actions/actions-469a5665a3
ci: Bump the actions group with 4 updates
2026-11-10 05:45:14 +07:00
poli0981 cf268cec7a Merge pull request #70 from poli0981/docs/legal-1.2
docs: legal documents 1.2
2026-11-03 20:02:53 +07:00
poli0981 d765eabb99 Merge remote-tracking branch 'origin/main' into docs/legal-1.2 2026-11-03 19:04:20 +07:00
poli0981 12591e256f Merge pull request #73 from poli0981/release/0.3.0-alpha.1
chore: release 0.3.0-alpha.1
2026-11-03 19:03:26 +07:00
poli0981andClaude Opus 5.5 28b4416cf5 chore: release 0.3.0-alpha.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 18:58:23 +07:00
poli0981 589857b61f Merge pull request #72 from poli0981/chore/stocks-module-tests
test: the Stocks module goes down the ladder and comes back
2026-11-03 18:57:49 +07:00
poli0981andClaude Opus 5.5 8fadbf05e4 test: the Stocks module goes down the ladder and comes back
Hosts OdStocksModule as the other built-in modules are: shown, hidden,
suspended, hibernated, shown again with a new view and closed; and
before the host initializes it, it creates no view and has none to
activate or rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 18:53:02 +07:00
poli0981 f0573f7e67 Merge pull request #69 from poli0981/docs/p3-exit
docs: what P3 delivered
2026-11-03 18:50:32 +07:00
poli0981andClaude Opus 5.5 2b1f691e5f docs: legal documents 1.2
PRIVACY spells out what Open-Meteo and Twelve Data receive, says that
requests OmniDeck makes itself name the app and its version in their
User-Agent, and that media snapshots in Pictures\OmniDeck stay when the
app is uninstalled. EULA no longer describes libVLC as coming in a later
version. THIRD-PARTY-NOTICES drops the planned ScottPlot row, which P3's
own charts replaced, and renumbers the sections after it. DISCLAIMER only
moves to 1.2 with the others: the documents share one version.

OdLegal.Version is 1.2, so everyone acknowledges the documents once more
at their next start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:55:49 +07:00
20 changed files with 80 additions and 39 deletions

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@
"rollForward": false
},
"dotnet-sonarscanner": {
"version": "12.0.0",
"version": "12.1.0",
"commands": [
"dotnet-sonarscanner"
],
@@ -24,4 +24,4 @@
"rollForward": false
}
}
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ body:
id: version
attributes:
label: OmniDeck version
placeholder: "0.2.0 (1a2b3c4) — shown in Settings → About"
placeholder: "0.3.0-alpha.1 (1a2b3c4) — shown in Settings → About"
validations:
required: true
- type: input
+2 -2
View File
@@ -34,7 +34,7 @@ jobs:
with:
persist-credentials: false
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
- uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
global-json-file: global.json
@@ -106,7 +106,7 @@ jobs:
with:
persist-credentials: false
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
- uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
global-json-file: global.json
+3 -3
View File
@@ -49,12 +49,12 @@ jobs:
persist-credentials: false
- if: matrix.language == 'csharp'
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
global-json-file: global.json
- name: Initialize CodeQL
uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
@@ -66,6 +66,6 @@ jobs:
run: dotnet build OmniDeck.slnx -c Release -p:RunAnalyzers=false
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
category: "/language:${{ matrix.language }}"
+1 -1
View File
@@ -41,7 +41,7 @@ jobs:
fetch-depth: 0 # the main-ancestry check below needs history
persist-credentials: false
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
- uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
global-json-file: global.json
+1 -1
View File
@@ -40,6 +40,6 @@ jobs:
path: results.sarif
retention-days: 5
- uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
- uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
sarif_file: results.sarif
+1 -1
View File
@@ -63,7 +63,7 @@ jobs:
fetch-depth: 0 # full history: SonarCloud uses blame to tell new code from old
persist-credentials: false
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
- uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
global-json-file: global.json
+9 -1
View File
@@ -6,6 +6,13 @@ All notable changes to OmniDeck are documented here. The format follows
## [Unreleased]
## [0.3.0-alpha.1] — 2026-11-03
First P3 alpha, with all of phase P3 in it: Stocks with your own Twelve Data key, alarms in Timer,
charts drawn by OmniDeck itself, the finished Dynamic and Comfort layouts, an accessibility pass for
screen readers, the keyboard and large text, and OmniDeck in Vietnamese and Japanese. 0.3.0 follows
once this alpha has been tried out.
### Added
- Vietnamese (Tiếng Việt) and Japanese (日本語): Settings → General → Language, or the first-run setup.
- Settings → About: Get pre-release versions. Without a choice of yours it follows the version you run, so the
@@ -323,7 +330,8 @@ user-facing features yet: the window only shows the version.
- Supported platform narrowed to Windows 11 (24H2 or later), x64.
- App data moves to `%LocalAppData%\OmniDeck.Data`, outside Velopack's install folder.
[Unreleased]: https://github.com/poli0981/OmniDeck/compare/v0.2.0...HEAD
[Unreleased]: https://github.com/poli0981/OmniDeck/compare/v0.3.0-alpha.1...HEAD
[0.3.0-alpha.1]: https://github.com/poli0981/OmniDeck/compare/v0.2.0...v0.3.0-alpha.1
[0.2.0]: https://github.com/poli0981/OmniDeck/compare/v0.2.0-alpha.4...v0.2.0
[0.2.0-alpha.4]: https://github.com/poli0981/OmniDeck/compare/v0.2.0-alpha.3...v0.2.0-alpha.4
[0.2.0-alpha.3]: https://github.com/poli0981/OmniDeck/compare/v0.2.0-alpha.2...v0.2.0-alpha.3
+1 -1
View File
@@ -7,7 +7,7 @@
**OmniDeck** — ứng dụng desktop **Windows 11** (24H2+, x64) gom các mini-app native (đồng hồ, hẹn giờ, máy tính, thời tiết, lịch, chứng khoán, media player) và các web app tuyển chọn (Spotify, Discord, YouTube, Google…, chạy trên WebView2) vào một cửa sổ, với **RAM governor** tự suspend/hibernate module.
- Open-source **GPL-3.0**; cài & cập nhật bằng **Velopack** (per-user, không admin).
- Trạng thái: **alpha** — P0–P2 xong (0.2.0, 03/11/2026); P3 xong phần code (các PR #58–#69), Legal 1.2 ở #70, 0.3.0 ra sau đợt dogfood; lịch và các mốc ở `docs/ROADMAP.md`.
- Trạng thái: **alpha** — P0–P2 xong (0.2.0, 03/11/2026); P3 đã merge (#58–#69) và ra 0.3.0-alpha.1 (03/11/2026) để dogfood; Legal 1.2 ở #70 (người dùng merge trước tag v0.3.0), 0.3.0 ra sau đợt dogfood; lịch và các mốc ở `docs/ROADMAP.md`.
## 2. Luật vàng (KHÔNG được vi phạm)
+2 -2
View File
@@ -47,7 +47,7 @@
<RepositoryUrl>https://github.com/poli0981/OmniDeck</RepositoryUrl>
<PackageProjectUrl>https://github.com/poli0981/OmniDeck</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<Version>0.2.0</Version>
<Version>0.3.0-alpha.1</Version>
</PropertyGroup>
<!-- Build-time analyzers (warnings are errors). They live here rather than in each .csproj:
@@ -63,7 +63,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Meziantou.Analyzer" Version="3.0.318">
<PackageReference Include="Meziantou.Analyzer" Version="3.0.321">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
+1 -1
View File
@@ -13,7 +13,7 @@ OmniDeck combines a set of lightweight native mini-apps (weather, calculator, st
It is built on WPF (.NET 10 LTS) and **WebView2**, which reuses the Edge runtime that ships with Windows 11 instead of bundling a browser engine. That is what keeps the installer small while still running full web apps.
**Project status: alpha.** 0.2.0, the end of phase P2, runs the curated web apps beside the clock, timer, calculator, weather, calendar and media player, with pop-out windows and an in-app bug report. Stocks, the polished Dynamic and Comfort presets, and the Vietnamese and Japanese translations come in P3; the 0.9 public beta is planned for December 2026 and v1.0 for the end of January 2027 ([roadmap](docs/ROADMAP.md)). Until then, expect missing features and changes between versions.
**Project status: alpha.** 0.3.0-alpha.1 (phase P3) adds Stocks with your own Twelve Data key, alarms, charts, the polished Dynamic and Comfort presets, an accessibility pass, and the Vietnamese and Japanese translations to 0.2.0's curated web apps, clock, timer, calculator, weather, calendar and media player. 0.3.0 follows once the alpha has been tried out; the 0.9 public beta is planned for December 2026 and v1.0 for the end of January 2027 ([roadmap](docs/ROADMAP.md)). Until then, expect missing features and changes between versions.
## Planned features (v1.0)
+1 -1
View File
@@ -68,7 +68,7 @@ Stocks module (Twelve Data with the user's own key, which spike #7 left as the o
**Exit (0.3.0):** feature-complete against SPEC v1 scope.
As delivered: twelve work packages, written while 0.2.0 was being dogfooded and opened as draft pull requests (#58–#69) that merge in order once 0.2.0 is tagged:
As delivered: twelve work packages, written while 0.2.0 was being dogfooded and opened as draft pull requests (#58–#69) that merged in order once 0.2.0 was tagged, and came out together as `0.3.0-alpha.1` on 3 November 2026:
- **Charts** drawn by OmniDeck itself rather than ScottPlot: candlesticks with volume, a line over bars, sparklines; each is one control screen readers read (a summary, then the values under the cursor as the arrow keys move it). Weather got its 48-hour chart from them.
- **Stocks** on Twelve Data with the user's own key, kept with DPAPI: a watchlist that refreshes only while on screen and within the key's credits, and a listing's details from one month to five years, as a chart or a table.
+1 -1
View File
@@ -1,6 +1,6 @@
# OmniDeck — Disclaimer
Version 1.1 — effective from the first release after 0.0.1-alpha.1. Changes since 1.0: the Stooq stock data service is no longer used, and Messenger is no longer in the web app catalog.
Version 1.2 — effective from 0.3.0. No changes since 1.1; the legal documents share one version number.
## Pre-release software
+2 -2
View File
@@ -1,6 +1,6 @@
# OmniDeck — End User License Agreement (EULA)
Version 1.1 — effective from the first release after 0.0.1-alpha.1. Changes since 1.0: the Stooq stock data service is no longer used, and Messenger is no longer in the web app catalog.
Version 1.2 — effective from 0.3.0. Changes since 1.1: libVLC, bundled since the 0.2.0 pre-releases, is no longer described as coming in a later version.
By installing or using OmniDeck ("the Software"), you acknowledge the terms below. If you do not agree with them, do not install or use the Software.
@@ -10,7 +10,7 @@ The Software is free software licensed under the **GNU General Public License v3
## 2. Third-party components and services
The Software bundles third-party components (such as the .NET runtime, WPF-UI, Velopack and, in later versions, libVLC) that are governed by their own licenses, listed in THIRD-PARTY-NOTICES.md. It relies on the Microsoft Edge WebView2 Runtime that ships with Windows 11; the runtime is not bundled with the Software and is governed by Microsoft's license terms. The Software also loads third-party **web applications and data services** (e.g., Spotify, Discord, Google services, Open-Meteo, Twelve Data). Your use of those services is governed solely by their own terms of service and privacy policies; you are responsible for complying with them. OmniDeck is not affiliated with, endorsed by, or sponsored by any of these providers, and their trademarks belong to their respective owners.
The Software bundles third-party components (such as the .NET runtime, WPF-UI, Velopack and libVLC) that are governed by their own licenses, listed in THIRD-PARTY-NOTICES.md. It relies on the Microsoft Edge WebView2 Runtime that ships with Windows 11; the runtime is not bundled with the Software and is governed by Microsoft's license terms. The Software also loads third-party **web applications and data services** (e.g., Spotify, Discord, Google services, Open-Meteo, Twelve Data). Your use of those services is governed solely by their own terms of service and privacy policies; you are responsible for complying with them. OmniDeck is not affiliated with, endorsed by, or sponsored by any of these providers, and their trademarks belong to their respective owners.
## 3. Your responsibilities
+8 -4
View File
@@ -1,6 +1,6 @@
# OmniDeck — Privacy Policy
Version 1.1 — effective from the first release after 0.0.1-alpha.1. Changes since 1.0: the Stooq stock data service is no longer used, and Messenger is no longer in the web app catalog.
Version 1.2 — effective from 0.3.0. Changes since 1.1: what Open-Meteo and Twelve Data receive is spelled out, requests OmniDeck makes itself name the app and its version, and media snapshots, saved in your Pictures folder, are not removed with the app.
**Short version: OmniDeck collects nothing.** There is no telemetry, no analytics, no account, no crash auto-upload, and no server operated by the OmniDeck project that receives your data.
@@ -14,18 +14,22 @@ All of the following stays in `%LocalAppData%\OmniDeck.Data` (the data root) and
- Logs (7-day rolling) and any bug-report zips you generate.
- Your optional Twelve Data API key, encrypted with Windows DPAPI.
The app itself is installed separately, in `%LocalAppData%\OmniDeck`. Uninstalling OmniDeck removes both folders. To reset the app without uninstalling it, delete the data root (Settings → Data → open data folder).
Snapshots you take in the media player are saved as pictures in `Pictures\OmniDeck`, outside the data root.
The app itself is installed separately, in `%LocalAppData%\OmniDeck`. Uninstalling OmniDeck removes both folders, but not the snapshots in `Pictures\OmniDeck`: those are yours to keep or delete, like any picture. To reset the app without uninstalling it, delete the data root (Settings → Data → open data folder).
## 2. Network connections the app makes
OmniDeck only talks to the internet for the features you use:
- **Open-Meteo** — weather forecasts and geocoding for your saved locations.
- **Twelve Data**, only after you enter your own API key: stock quotes, price history and symbol search for the stocks module.
- **Open-Meteo** — weather forecasts and geocoding for your saved locations. It receives the place names you search for, with the UI language for the results, and the coordinates of your saved places, rounded to four decimal places (about 10 m), with the units you chose. No key or identifier is sent.
- **Twelve Data**, only after you enter your own API key: stock quotes, price history and symbol search for the stocks module. It receives your key (in a request header, never in a web address), the symbols on your watchlist and the text you search for, and can link them to your Twelve Data account.
- **GitHub** — update checks/downloads (Velopack) and the daily web-app catalog refresh; opening a pre-filled bug-report issue happens in your browser and only if you choose to.
- **Microsoft Edge WebView2 Runtime** — the Microsoft component that renders the web apps may contact Microsoft services on its own, for example Microsoft Defender SmartScreen reputation checks for the pages you visit and the runtime's own updates and diagnostic data. That traffic is governed by Microsoft's privacy statement and your Windows diagnostic-data settings; OmniDeck does not enable any additional reporting.
- **The third-party web apps you open** (Spotify, Discord, Google services, Facebook, etc.) — these connections go directly from your device to those providers. Their handling of your data is governed by **their** privacy policies, not this one. OmniDeck does not inject analytics into, read the contents of, or proxy these sessions.
Requests OmniDeck makes itself — to Open-Meteo, to Twelve Data and for the web-app catalog — name the app and its version in their User-Agent header (for example `OmniDeck/0.3.0`), as these services ask of apps; they carry nothing else about you or your device.
## 3. Bug reports
Bug reporting is manual and transparent: the app shows you the pre-filled issue text, scrubs query strings/cookies/token-shaped values from captured console output and logs, and writes the log zip locally for you to review and attach yourself. Nothing is uploaded automatically.
+6 -12
View File
@@ -2,7 +2,7 @@
OmniDeck is licensed under GPL-3.0. This file lists the third-party components OmniDeck builds include, with their licenses, and ships in the app's `legal` folder. The self-contained .NET runtime's own license and third-party notices ship next to it, in `legal\Microsoft.NETCore.App\` and `legal\Microsoft.WindowsDesktop.App\`.
**Maintenance note:** verify this file against the shipped packages at every release (`dotnet list src/OmniDeck.App package --include-transitive` plus a license check) — it is authoritative only when it matches what ships. When a planned component (§2) lands, move it to §1 and add its license text to §6.
**Maintenance note:** verify this file against the shipped packages at every release (`dotnet list src/OmniDeck.App package --include-transitive` plus a license check) — it is authoritative only when it matches what ships. A newly bundled component goes in §1, with its license text in §5.
## 1. Bundled in current builds
@@ -24,24 +24,18 @@ OmniDeck is licensed under GPL-3.0. This file lists the third-party components O
| SQLite (the `e_sqlite3` native library) | bundled with SQLitePCLRaw 2.1.13 | public domain | local database engine |
| Ical.Net | 5.2.3 | MIT | calendar repeats and .ics import/export |
| NodaTime (with the IANA time zone database, public domain) | 3.2.2 | Apache-2.0 | time zones for Ical.Net |
| Microsoft.Web.WebView2 (Core, WPF and WinForms bindings, WebView2Loader) | 1.0.4314.35 | BSD-3-Clause | web app engine bindings; the WebView2 Runtime itself is not bundled (§3) |
| Microsoft.Web.WebView2 (Core, WPF and WinForms bindings, WebView2Loader) | 1.0.4314.35 | BSD-3-Clause | web app engine bindings; the WebView2 Runtime itself is not bundled (§2) |
| LibVLCSharp + LibVLCSharp.WPF | 3.10.2 | LGPL-2.1-or-later | media player bindings |
| libVLC (`VideoLAN.LibVLC.Windows`: libvlc, libvlccore and the plugins in `libvlc\win-x64`) | 3.0.24 | LGPL-2.1-or-later core and most plugins; some plugins GPL-2.0-or-later | media engine |
libVLC note: OmniDeck redistributes the libVLC 3.0.24 binaries unmodified, as separate files in `libvlc\win-x64` that can be replaced, with the plugin folders listed in docs/SPEC.md §3.6. Source for that exact version is available from VideoLAN (https://download.videolan.org/pub/videolan/vlc/3.0.24/) and LibVLCSharp's from https://code.videolan.org/videolan/LibVLCSharp. The combination is distributed under GPL-3.0 terms, compatible with the LGPL-2.1+ and GPL-2.0+ components.
## 2. Planned components (bundled from the version that introduces them)
| Component | License | Role | Phase |
|---|---|---|---|
| ScottPlot.WPF (+ SkiaSharp, OpenTK) | MIT | stock charts | P3 |
## 3. Not bundled
## 2. Not bundled
- **Microsoft Edge WebView2 Runtime** — ships with Windows 11 and is updated by Microsoft under Microsoft's license terms; OmniDeck does not redistribute it.
- **Development-time tools** (used to build and check OmniDeck, never distributed): Roslynator (Apache-2.0), Meziantou.Analyzer (MIT), ReferenceTrimmer (MIT), XamlStyler (Apache-2.0), xUnit (Apache-2.0), coverlet (MIT), Microsoft.NET.Test.Sdk (MIT), Microsoft.Extensions.TimeProvider.Testing (MIT), Velopack CLI `vpk` (MIT), SonarScanner for .NET (LGPL-3.0), SonarAnalyzer.CSharp (SONAR Source-Available License v1.0).
## 4. Data services (not bundled; accessed at runtime)
## 3. Data services (not bundled; accessed at runtime)
| Service | Terms | Use |
|---|---|---|
@@ -49,11 +43,11 @@ libVLC note: OmniDeck redistributes the libVLC 3.0.24 binaries unmodified, as se
| Twelve Data | user's own API key under Twelve Data's terms | stock quotes, price history and symbol search (only with the user's key) |
| GitHub | GitHub Terms of Service | releases, catalog refresh, issues |
## 5. Third-party web applications
## 4. Third-party web applications
Web apps in the catalog (Spotify, Discord, YouTube, Gmail, Google Calendar, Google Drive, Google Maps, Facebook) are loaded from their providers' own servers and are not components of OmniDeck. All associated trademarks belong to their respective owners; see DISCLAIMER.md.
## 6. License texts
## 5. License texts
### MIT License
+1 -1
View File
@@ -35,7 +35,7 @@
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.2" />
<PackageReference Include="H.NotifyIcon.Wpf" Version="2.4.1" />
<PackageReference Include="Markdig" Version="1.5.1" />
<PackageReference Include="Markdig" Version="1.6.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.14" />
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
<PackageReference Include="Velopack" Version="1.2.161" />
+1 -1
View File
@@ -4,7 +4,7 @@ namespace OmniDeck.Core.Legal;
public static class OdLegal
{
/// <summary>The version every document in docs/legal carries; a test keeps the two in step.</summary>
public const string Version = "1.1";
public const string Version = "1.2";
/// <summary>The documents the legal gate shows, in order.</summary>
public static IReadOnlyList<OdLegalDocument> Documents { get; } =
+1 -1
View File
@@ -19,7 +19,7 @@
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.2" />
<PackageReference Include="Ical.Net" Version="5.2.3" />
<PackageReference Include="Ical.Net" Version="5.2.4" />
<PackageReference Include="LibVLCSharp.WPF" Version="3.10.2" />
<PackageReference Include="WPF-UI" Version="4.3.0" />
</ItemGroup>
@@ -3,9 +3,11 @@ using OmniDeck.Core.Modules;
using OmniDeck.Core.Storage;
using OmniDeck.Modules.Calculator;
using OmniDeck.Modules.Clock;
using OmniDeck.Modules.Stocks;
using OmniDeck.Modules.Timer;
using OmniDeck.Tests.Localization;
using OmniDeck.Tests.Modules;
using OmniDeck.Tests.Stocks;
using OmniDeck.Tests.TestSupport;
using Serilog.Core;
@@ -119,6 +121,39 @@ public sealed class OdBuiltInModulesTests : IDisposable
Assert.NotEqual(timerShown, timer.StopwatchText, StringComparer.Ordinal);
});
[Fact]
public void Stocks_GoesDownTheLadder_AndComesBackWithANewView() => OdSta.Run(async () =>
{
using var host = NewHost(new OdStocksModule(new OdMemorySecrets()));
var hosted = Assert.Single(host.Modules);
var first = await host.ShowAsync("stocks");
Assert.IsType<OdStocksViewModel>(first.DataContext);
await host.HideAsync();
Assert.True(await hosted.Module.CanSuspendAsync());
Assert.True(await host.SuspendAsync("stocks", OdSuspendReason.Hidden));
Assert.True(await host.HibernateAsync("stocks"));
var second = await host.ShowAsync("stocks");
Assert.NotSame(first, second);
Assert.NotSame(first.DataContext, second.DataContext);
await host.CloseAsync("stocks");
Assert.Equal(OdModuleState.Closed, hosted.State);
Assert.Equal(OdRamClass.Light, hosted.Info.RamClass);
});
[Fact]
public void Stocks_HasNoViewToActivate_BeforeTheHostShowsIt() => OdSta.Run(async () =>
{
var stocks = new OdStocksModule(new OdMemorySecrets());
Assert.Throws<InvalidOperationException>(() => stocks.CreateView());
await stocks.ActivateAsync();
await stocks.DeactivateAsync();
await stocks.SuspendAsync(OdSuspendReason.Hidden);
await stocks.CloseAsync();
});
private OdModuleHost NewHost(params IOdModule[] modules)
{
var database = new OdDatabase(_temp.Combine("omnideck.db"), pooling: false);