Skip to content

[web] Users: improve the root authentication section#615

Merged
dgdavid merged 5 commits intomasterfrom
root-password-empty-state
Jun 12, 2023
Merged

[web] Users: improve the root authentication section#615
dgdavid merged 5 commits intomasterfrom
root-password-empty-state

Conversation

@dgdavid
Copy link
Copy Markdown
Contributor

@dgdavid dgdavid commented Jun 12, 2023

Problem

The current way Agama is rendering the Root Authentication section in the Users page do not make evident that there is no auth method defined, and it's easy to overlook the button for displaying the actions available for each method.

Solution

Provide the user more comprehensive information if there is no authentication method for the root user, which may result in a system without administrative access.

For that, the empty state pattern we already have in the user section is used when there is none auth method defined. Once the user defines one, the table listing auth methods and available actions is displayed. The idea is to go further and do not use a table for rendering methods, but this can be done in later PR.

A slightly related change

Since it's related, this PR also changes the text used in the users overview section when no root auth method has been defined yet.

Click to show/hide before and after screenshots about changed overview text
Before After
Screen Shot 2023-06-12 at 14 20 15 Screen Shot 2023-06-12 at 14 20 07

Testing

  • Added a new unit test
  • Tested manually

Screenshots

Note: screenshots below might have change because minor changes asked during the review, specially in regard to the wording

Before

No auth method defined At least one auth method defined
Screen Shot 2023-06-12 at 12 04 57 Screen Shot 2023-06-12 at 12 04 31

After

No auth method defined At least one auth method defined
Screen Shot 2023-06-12 at 12 04 19 Screen Shot 2023-06-12 at 12 04 31

Providing more comprehensive information to the user if there is no
authentication method for the root user, which may result in a system
without administrative access.

Once a method is defined, a table listing authentication methods will be
displayed instead. This might be changed in a near future for a better
alternative.
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 12, 2023

Pull Request Test Coverage Report for Build 5244317778

  • 11 of 11 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 76.244%

Totals Coverage Status
Change from base Build 5222638981: 0.03%
Covered Lines: 5361
Relevant Lines: 6795

💛 - Coveralls

@dgdavid dgdavid requested a review from jreidinger June 12, 2023 11:15
@dgdavid dgdavid changed the title [web] Users: improve the root auth section [web] Users: improve the root authentication section Jun 12, 2023
@dgdavid dgdavid force-pushed the root-password-empty-state branch from c71583e to 6e49bd9 Compare June 12, 2023 13:13
dgdavid and others added 3 commits June 12, 2023 14:25
Co-Authored-By: José Iván López González <jlopez@suse.com>
For improving the text displayed when no root auth method has been
defined yet.
@dgdavid dgdavid force-pushed the root-password-empty-state branch from 6e49bd9 to f3a7770 Compare June 12, 2023 13:38
Copy link
Copy Markdown
Contributor

@jreidinger jreidinger left a comment

Choose a reason for hiding this comment

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

for me much better now

@dgdavid dgdavid merged commit 4c80e73 into master Jun 12, 2023
@dgdavid dgdavid deleted the root-password-empty-state branch June 12, 2023 14:39
@imobachgs imobachgs mentioned this pull request Aug 2, 2023
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