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): UI for adding a partition #1935

Merged

Conversation

joseivanlopez
Copy link
Contributor

@joseivanlopez joseivanlopez commented Jan 22, 2025

UI for adding new partitions to a drive config or for reusing an existing partition. Allows defining the mount point, the target (a new partition or use an existing one), the file system type (or reuse the existing file system) and a size range.

The size can be autocalculated, informing to the user about the size range used by the installer.

@joseivanlopez joseivanlopez force-pushed the storage-add-partition branch 3 times, most recently from 36d8c61 to 4372ca3 Compare January 28, 2025 12:14
@coveralls
Copy link

coveralls commented Jan 28, 2025

Pull Request Test Coverage Report for Build 13030708832

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 5 of 5 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 72.488%

Totals Coverage Status
Change from base Build 13005721999: 0.0%
Covered Lines: 19052
Relevant Lines: 26283

💛 - Coveralls

@joseivanlopez joseivanlopez force-pushed the storage-add-partition branch 12 times, most recently from b6db50c to 3494183 Compare January 31, 2025 07:20
dgdavid and others added 7 commits February 6, 2025 08:14
Lost while deleting all previous CSS during the migration to PF6. I.e.,
related to

  - agama-project#1900
  - agama-project#1921
  - agama-project#1954
  - agama-project#1961
To improve clarity, the size field now spans two rows, providing more
space for explanations. Texts were changed to the ones agreed with @ancorgs.

Additionally, reusable interface wrapper components have been introduced
to avoid code duplication here and there when using style modifiers.

An icon to grab the user's attention has been added before the auto-size
explanation, which can be replaced with a more suitable one once a
better option is found.
Instead of having them sticky to the bottom of the viewport.
Needed for testing components making use of url params for retrieving
resources based on them.

The whole react-router-dom shoudl be re-worked, starting by using a data
router. See https://reactrouter.com/6.29.0/routers/picking-a-router#using-v64-data-apis
As it happens in native HTML form inputs.

Still work to do for polishing it.
joseivanlopez and others added 14 commits February 7, 2025 16:07
A quite generic test for at least ensuring it renders expected controls.
Some of these components deserves specific unit tests for testing its
specific behavior, but out of the scope of this commit.

To make things a bit better, some aria-labels have been added. But the
whole form still need quite some work for making it much more
accessible.

Last but not least, the commit also address an issue with the "Clear
mount point" button and add a test for it.
By mocking useConfigModel properly, which now lives in
queries/storag/config-model instead of queries/storage.

The component code has been refactored a bit too.
By updating some hook mocks locations.
To stop using a section and make it more consistent with partitions
form. It also stop using the sticky footer for the form actions since it
is not an endless form like the language or keyboard selection
@joseivanlopez
Copy link
Contributor Author

joseivanlopez commented Feb 10, 2025

Screenshot From 2025-02-10 14-42-26

Screenshot From 2025-02-10 14-42-36

Instead of using comples translation for joining complex sentences.
@ancorgs ancorgs marked this pull request as ready for review February 11, 2025 07:00
ancorgs and others added 3 commits February 11, 2025 08:44
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

@ancorgs ancorgs merged commit 43789c8 into agama-project:storage-config-ui Feb 11, 2025
5 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.

4 participants