cli
cli copied to clipboard
feat: add `scoreTarget ` as CIL feature for audits
User story
Followup of #713 just for audits.
Acceptance criteria
- [ ] https://github.com/code-pushup/cli/issues/713
- [ ] the icons should be rendered correctly on all displays
- [ ] terminal - The "✅" and "❌" characters cause layout issues in the terminal. I suggest "✓" and "✗" instead with chalk styling.
e.g.
chalk.bold(chalk.green('✓'))andchalk.bold(chalk.red('✗')) - [ ] readme - the "✅" and "❌" characters are used
- [ ] JSON - n/a
- ~portal - custom icons are used and they are already fine~
- [ ] terminal - The "✅" and "❌" characters cause layout issues in the terminal. I suggest "✓" and "✗" instead with chalk styling.
e.g.
graph TD
#713 --> CLI_Preparation
CLI_Preparation --> CLI_Client_Update
Portal_Model_Adoption --> Portal_UI_Update
Portal_Model_Adoption --> CLI_Client_Update
CLI_Client_Update --> CLI_Plugin_Update
PR1 - CLI preparation
- [ ] extend
auditSchemawithtargetScore - [ ] rename
applyMaxScoreAboveThresholdtoscoreAuditWithScoreTargetand move it formplugin-coverageintoutils - [ ] adjust
executePluginto apply the new scoring logic after the normalization - [ ] adopt
categoryToGQLfunctions to convert the name back and the floating number back to boolean and mark it with a comment
PR2 - Portal model adoption
- [ ] accept a number from 0-1 for new property
targetScore - [ ] release portal-client
PR3 - CLI portal-client update
- [ ] adopt
categoryToGQLfunctions for new type upload - [ ] add
targetScorestyling to all places- [ ] for
audits,scoreTargetmeans score is changed to perfect score, because it affects the category/group score calculation
- [ ] for
PR4 - CLI plugin updates
- [ ] refactor
plugin-coveragefor the newtargetScoreshape
PR5 - Portal UI updates
- [ ] adopt score card for new
targetScorelogic
Implementation details
No response
Related issues:
#592, #713