feat(client): Phase 0 — data-layer prerequisites#20
Merged
Conversation
Agent-Logs-Url: https://github.com/Emperiusm/PRISM/sessions/be721cd6-cc69-43dd-8fb5-da55e7485bfb Co-authored-by: Emperiusm <3522086+Emperiusm@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement phase 0 data-layer prerequisites for launcher
feat(client): Phase 0 — data-layer prerequisites
Apr 3, 2026
Contributor
|
Thank you for your contribution! Before we can merge this PR, you need to sign the Contributor License Agreement. PRISM is dual-licensed (AGPL-3.0 + Commercial), so we need all contributors to sign the CLA to maintain the ability to offer commercial licenses. To sign, please comment below with the exact phrase:
You only need to do this once — future PRs will be automatically approved. I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
Owner
|
I have read the CLA Document and I hereby sign the CLA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements Phase 0 of the launcher UI polish plan: extends
SavedServerwith fields the redesign requires, adds aServerStatusenum with heuristic derivation, and preparesTextRun/GlassQuadfor non-breaking forward extensibility.config/servers.rsServerStatusenum (Online,Sleeping,Unreachable) with serde derivesSavedServer::derived_status()— heuristic:None→ Unreachable; age < 6h → Online; age < 7d → Sleeping; else Unreachable (temporary stand-in for runtime ping)#[serde(default)]for backwards-compatible deserialization of existingservers.json:os_label: Option<String>,tags: Vec<String>,wol_supported: bool,last_latency_ms: Option<u32>ui/launcher/server_card.rsCardFilter::Tag(String)variant added; enum is nowClone-only (notCopy)label()signature changed fromfn label(self, total_cards: usize)→fn label(&self) -> Stringmatches_filter()now takes&CardFilterand handles theTagbranch viaself.tags.contains(tag)ServerCardstorestags: Vec<String>populated fromSavedServerui/widgets/mod.rsRect::ZEROconstant addedTextRungainsbold: boolandicon: bool(both defaultfalse); manualDefaultimpl setsfont_size: 14.0(not0.0)GlassQuadgets aDefaultimpl usingRect::ZEROand zeroed floatsTextRun { … }construction sites across the codebase migrated to..Default::default()— ~50 call sites across overlays, launcher widgets, and card gridPlan progress tracker updated: Pass 0 and Phase 0 checked off.