# Roadmap

## v0.1 (done)
- pnpm monorepo: `widget`, `hub`, `protocol`
- Hub: localhost WebSocket, module routing, Origin check, external modules, tests
- Widget: shell (dock, navigation, reconnection, toasts), adaptive horizontal/vertical
- Modules: Home, Apps (launcher + 256 px Windows icons), System (CPU/RAM)
- `.icuewidget` package validated by the official CLI

## v0.2 — Validation on the device
- [x] Install the widget on the XENEON EDGE (import OK, hub connection OK)
- [x] Check touch (launching apps from the screen) and the Origin sent by iCUE (`null`)
- [ ] Measure the 8 layouts, adjust the CSS
- [x] Hub: tray icon (menu, connection status), start with Windows, no console window, log file
- [x] Interface served by the hub: updates without re-import, automatic reload
- [x] Hub: single executable (Node SEA) that installs itself (per user, start with Windows, uninstall), automatic restart after a crash
- [ ] Hub: icon and version info in the exe, code signing
- [x] Launcher: add apps from the PC (Start menu, with their icons), drag and drop, favorites, opened app brought to the front

## v0.3 — Discord module
- [x] Connection to Discord's local RPC (Discord developer application, local OAuth) — see [DISCORD.md](DISCORD.md)
- [x] Current voice channel, who is speaking, Mute / Deafen
- [x] Discord terms: RPC voice scopes reserved to the app owner + testers → each user creates their own application
- [x] End-to-end validation with a real application (authorization, channel, who is speaking, mute/deafen)
- [x] Hub: the tray menu froze (blocking stdin read in tray.ps1)
- [x] Leave the channel, per-participant volume, channel list to join
- [x] Favorites / recent, chat (images, links, replies, reactions), pinned text channel
- [x] Discord-like interface: server bar, channel list, call, chat, controls
- [x] Camera, screen share, soundboard, audio devices, notifications, incoming call, sending messages
- [x] Bigger touch interface (adjustable size: normal / large / extra large), DMs and groups, recent servers in the column, all-servers menu (pinned first), streams, system messages, big chat
- [ ] Validate on the device: sending, notifications, incoming call, camera / share

## v0.4 — Hub
- [x] Time next to the hub status in the dock, hub panel (version, connection)
- [x] Update Raidtech Edge Hub from the Edge (GitHub releases, SHA-256 check), automatic reload of the Edge
- [x] English by default, French option (tray menu and hub panel)
- [ ] GitHub Actions: build the exe and the `.icuewidget` on each release

## v0.5 — Music module
- [x] Now playing from Windows' media sessions (any player: Spotify, YouTube Music, browsers, VLC…): artwork, accent color, position
- [x] Play / pause, next / previous, seek, shuffle / repeat, choice of the player when several are open
- [x] Volume mixer: master volume and per-app volume / mute (Core Audio)
- [x] Synced lyrics (lrclib.net, looked up only when the lyrics panel is open)
- [x] Now playing card on the home screen
- [ ] Validate on the device (touch on the seek bar and the volume sliders)
- [ ] Output device switch (speakers / headset)

## v0.6 — Media module
- [x] "Music" becomes "Media" (videos too)
- [x] Full-size artwork: from the player (YouTube Music, Spotify), else a Deezer search on the same track
- [x] Volume bar controls the player itself: YouTube Music (API Server plugin) and Spotify (Web API, Premium); PC volume otherwise
- [x] Queue of the linked player: YouTube Music (play / remove a track), Spotify (read only) and Spotify playlists (Premium to start one)
- [ ] Validate on the device with YouTube Music and Spotify linked

## v0.10 — Installable modules and the Store
- [x] Installed modules: `modules\<id>\manifest.json`, PC side and Edge side, loaded / reloaded / removed while the hub runs
- [x] `window.RaidtechEdge` (Edge) and `globalThis.RaidtechEdgeHub` (PC): modules share Preact, the hub connection and the language
- [x] Module data in `modules-data\<id>` kept when a module is removed
- [x] Control panel → Modules: show / hide and order the dock (saved by the hub, shared by every screen; replaced in 0.12)
- [x] `pnpm modules:build`: Discord built as an installable module (proof)
- [x] Catalogue repository ([`raidtech-edge-modules`](https://github.com/raidoudou/raidtech-edge-modules)), CI, `catalog.json` pinned to a commit, SHA-256 of every file, revocation list
- [x] Store on the Edge: discover, install, update (one or all), uninstall, erase kept data
- [x] Discord leaves the exe: installed from the Store, and installed by itself for those who had set it up
- [ ] Phase 4: unverified modules, isolated

## v0.11 — The Edges app
- [x] Installed modules are called "Edges"; the device is "the Xeneon" in the interface
- [x] Edges app in the dock: every Edge as a tile with a line of live state (`useGlance`), (0.12.4: big app icons sized to fill the screen, the Store's Edges included, drag to sort and favorites like the Applications page, Discord shows the server and who is in voice)
- [x] Pin an Edge to the dock (long press or ⋯: pin, update, see in the Store, uninstall); the others stay in the app
- [x] An Edge outside the dock: its alert lights the Edges button, its island still shows
- [ ] Discord with `useGlance` published in the catalogue (raidtech-edge-modules)
- [ ] Validate on the device: long press, tiles, pinning

## v0.12 — A dock like the Windows taskbar
- [x] Home, Edges and Apps fixed at the top, then up to 3 apps of the user's (`DockLayout.slots`)
- [x] Long press on the dock: edit mode; drag to move, cross to remove, + to add from the list of apps
- [x] Every app on the home screen; the control panel loses its Dock section (Edges folder moves to Settings)
- [ ] Validate on the device: long press and drag with a finger

## Later (ideas)
- Spotify account features (like a track, queue, playlists): needs each user's own Spotify developer app
- CPU/GPU temperatures (iCUE sensors or LibreHardwareMonitor)
- OBS, weather, timers
