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

Validate rows per page setting and fix tooltips #2478

Merged
merged 7 commits into from
Sep 29, 2020

Conversation

swaterkamp
Copy link
Member

What:
The "Rows Per Page" setting is restricted to use a value greater than 0, because 0 makes no sense in the first place and is showing at least 1 rows in the end. The new validation rule also prohibits an empty field at the same time.

Helping tooltips are now lazy translated because otherwise with the normal translation the error message was undefined.

Why:
Improve UX with helping tooltips and fix a bug

How:
Tooltips are now shown in the createProcessDialog and the rows per page setting in der userSettings dialog. The setting is invalid if the input is 0 or empty.

Checklist:

@swaterkamp swaterkamp requested review from sarahd93 and a team September 28, 2020 15:03
@swaterkamp swaterkamp self-assigned this Sep 28, 2020
@codecov
Copy link

codecov bot commented Sep 28, 2020

Codecov Report

Merging #2478 into gsa-20.08 will increase coverage by 0.30%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##           gsa-20.08    #2478      +/-   ##
=============================================
+ Coverage      52.76%   53.07%   +0.30%     
=============================================
  Files           1070     1072       +2     
  Lines          25789    25892     +103     
  Branches        7312     7396      +84     
=============================================
+ Hits           13607    13741     +134     
+ Misses         11058    11029      -29     
+ Partials        1124     1122       -2     
Impacted Files Coverage Δ
gsa/src/gmp/commands/feedstatus.js 100.00% <ø> (ø)
gsa/src/gmp/commands/policies.js 86.15% <ø> (+1.67%) ⬆️
gsa/src/gmp/commands/scanconfigs.js 90.62% <ø> (+0.73%) ⬆️
gsa/src/gmp/commands/wizard.js 9.23% <ø> (ø)
gsa/src/gmp/gmpsettings.js 95.74% <ø> (ø)
gsa/src/gmp/models/alert.js 100.00% <ø> (ø)
gsa/src/gmp/models/event.js 22.91% <ø> (+2.17%) ⬆️
gsa/src/gmp/models/nvt.js 98.87% <ø> (ø)
gsa/src/gmp/models/ovaldef.js 94.64% <ø> (ø)
gsa/src/gmp/models/policy.js 100.00% <ø> (ø)
... and 102 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb24ca9...b136dfd. Read the comment docs.

Copy link
Contributor

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

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

Just a small change. No need to create a new function on every render.

gsa/src/web/pages/usersettings/dialog.js Outdated Show resolved Hide resolved
@swaterkamp swaterkamp merged commit a7ed27e into greenbone:gsa-20.08 Sep 29, 2020
@swaterkamp swaterkamp deleted the validateRowsPerPageSetting branch April 20, 2021 08:48
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.

2 participants