• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openSUSE / agama / 8094758191
72%

Build:
DEFAULT BRANCH: master
Ran 29 Feb 2024 10:48AM UTC
Jobs 3
Files 691
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Feb 2024 10:45AM UTC coverage: 74.566% (+0.03%) from 74.532%
8094758191

push

github

web-flow
Auto suggest username (#1022)

## Problem

As described in issue #112 this PR addresses the suggestion of username
for user account creation based on full name input.

## Solution

Usernames are suggested based on the given full name in the following
manner:

- Just the first word of the given name
- The first letter of the first word + all other full words
- The full first word + first letters of all other words
- First letters of all words except last + full last word
- All words of a name joined without white spaces

Also, all suggestions with less than 3 characters are filtered out.

This PR fixes #112

## Testing

- Manually tested
- Added unit tests in `web/src/components/users/utils.test.js`

## Screenshots


![image](https://github.com/openSUSE/agama/assets/112288843/e018d7f5-ef5a-4709-9154-6b05a63e481b)

1471 of 2255 branches covered (65.23%)

Branch coverage included in aggregate %.

26 of 31 new or added lines in 2 files covered. (83.87%)

8 existing lines in 1 file now uncovered.

16861 of 22330 relevant lines covered (75.51%)

23.08 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
90.16
-3.04% web/src/components/users/FirstUser.jsx

Uncovered Existing Lines

Lines Coverage ∆ File
8
90.63
-4.38% web/web/src/components/users/FirstUser.jsx
Subprojects
ID Flag name Job ID Ran Files Coverage
1 web 8094758191.1 29 Feb 2024 10:48AM UTC 297
73.39
GitHub Action Run
1 service 7975321865.1 20 Feb 2024 02:48PM UTC 316
85.22
GitHub Action Run
1 rust 8084810284.1 28 Feb 2024 05:54PM UTC 78
44.34
GitHub Action Run
Source Files on build 8094758191
  • Tree
  • List 691
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #8094758191
  • 8946391d on github
  • Prev Build on master (#8084810284)
  • Next Build on master (#8113690483)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc