Skip to content

Add UI redesign #15

Merged
pool2win merged 7 commits into
p2poolv2:mainfrom
framicheli:info
Mar 23, 2026
Merged

Add UI redesign #15
pool2win merged 7 commits into
p2poolv2:mainfrom
framicheli:info

Conversation

@framicheli
Copy link
Copy Markdown
Contributor

UI redesign as described in the wiki wireframes showing all the views with placeholders for now

  • Home
  • Bitcoin Config
  • Bitcoin Status with tabs (Chain Info, System, Logs, Peers)
  • P2Poolv2 Config
  • P2Poolv2 Status
  • LN Config
  • LN Status
  • Shares Market

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 11, 2026

@R27-pixel
Copy link
Copy Markdown
Contributor

R27-pixel commented Mar 13, 2026

we should move all these render.* functions as submodules of ui #16

@framicheli
Copy link
Copy Markdown
Contributor Author

we should move all these render.* functions as submodules of ui #16

Thank you! Separate components for each view

Comment thread src/components/file_explorer.rs Outdated
use std::env::temp_dir;
use std::fs::{File, create_dir};
//use std::env::temp_dir;
use std::fs::File; //{ , create_dir};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of commenting out unused imports , we should remove it.

Span::styled("[api] ", Style::default().fg(Color::Blue)),
Span::raw(format!("port = {}", cfg.api.port)),
])));
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can collapse all that boilerplate into a data array + a single loop
something like
let fields: &[(&str, String)] = &[
("[stratum] ", format!("hostname = {}", cfg.stratum.hostname)),
("[stratum] ", format!("port = {}", cfg.stratum.port)),
("[stratum] ", format!("start_difficulty = {}", cfg.stratum.start_difficulty)),
etc...

This way the rendering logic is identical and the loop can just run the same ListItem constructions once

Copy link
Copy Markdown
Contributor

@R27-pixel R27-pixel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great , i have left some comments.
and also i have one architectural thought , in future as the project grows ,we potentially add more stateful moduless ,it might be useful to separate concerns by keeping stateful / logic-bearing modules under components/, and moving pure UI rendering into a dedicated ui/ folder , two folders for two separate concerns.
But we can do this in followup prs if needed. But for now it looks great.
Thankyou @framicheli

@pool2win pool2win merged commit 039d485 into p2poolv2:main Mar 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants