Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web): storage config model #1718

Merged
merged 6 commits into from
Nov 11, 2024
Merged

Conversation

joseivanlopez
Copy link
Contributor

@joseivanlopez joseivanlopez commented Oct 31, 2024

The UI components should be agnostic to the structure and complexity of the storage config.

Add a Config model to deal with the storage config. The model generates objects (e.g., Drive, Partition, etc) from the config data. This makes easier for the UI components to read and modify the config data.

@joseivanlopez joseivanlopez changed the base branch from master to storage-config-ui October 31, 2024 09:21
@coveralls
Copy link

coveralls commented Oct 31, 2024

Pull Request Test Coverage Report for Build 11781455992

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.5%) to 70.984%

Totals Coverage Status
Change from base Build 11595105060: -0.5%
Covered Lines: 16535
Relevant Lines: 23294

💛 - Coveralls

@joseivanlopez joseivanlopez force-pushed the storage-show-config branch 5 times, most recently from 73ad8b3 to 7d8c781 Compare November 7, 2024 13:08
@joseivanlopez joseivanlopez force-pushed the storage-show-config branch 2 times, most recently from e52283e to 2734ec7 Compare November 8, 2024 09:18
@joseivanlopez joseivanlopez changed the title feat(web): show storage config feat(web): storage config model Nov 8, 2024
@joseivanlopez joseivanlopez marked this pull request as ready for review November 8, 2024 09:29
private bytes(value: config.SizeValueWithCurrent): number | undefined {
if (checks.isSizeCurrent(value)) return;
// TODO: bytes from string.
if (checks.isSizeString(value)) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this omission recorded somewhere? Sounds like something we should implement very soon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, there is a follow-up item in the trello card.

Copy link
Contributor

@ancorgs ancorgs left a comment

Choose a reason for hiding this comment

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

LGTM

@joseivanlopez joseivanlopez merged commit 7c83b1f into storage-config-ui Nov 11, 2024
2 of 4 checks passed
@joseivanlopez joseivanlopez deleted the storage-show-config branch November 11, 2024 15:58
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