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

Reports page api updates #1305

Closed
3 of 4 tasks
ibolton336 opened this issue Aug 23, 2023 · 2 comments
Closed
3 of 4 tasks

Reports page api updates #1305

ibolton336 opened this issue Aug 23, 2023 · 2 comments
Assignees
Labels
Custom Assessment Items relating to custom assessment work

Comments

@ibolton336
Copy link
Member

ibolton336 commented Aug 23, 2023

The reports page needs to be driven by all available questionnaire data. There will also be a dropdown to select which archetype to drive the reports data from at the top of the page with the default being all existing questionnaires in the database with a "required" flag set to true

https://www.sketch.com/s/af50e991-8061-4b69-84c1-c11241e274f2/a/VEvWnDo

https://www.sketch.com/s/af50e991-8061-4b69-84c1-c11241e274f2/a/zyq8Y1M

To do:

@ibolton336 ibolton336 converted this from a draft issue Aug 23, 2023
@ibolton336 ibolton336 added the Custom Assessment Items relating to custom assessment work label Aug 23, 2023
@mturley mturley self-assigned this Aug 29, 2023
@ibolton336 ibolton336 moved this from Todo to In Progress in Konveyor UI Aug 31, 2023
@dymurray dymurray moved this to 🏗 In progress in Planning Sep 15, 2023
@gildub gildub self-assigned this Sep 21, 2023
sjd78 added a commit that referenced this issue Sep 21, 2023
Shows selection of possible questionnaires of current assessments
Pass to `<Landscape>`:
  - If "All questionnaires" option has been selected then the whole
    assessments list is passed
  - When a specific questionnaire is selected then only the assessments
    bound to that questionnaire are passed.

The consolidation of the risks is left to be handled by the Landscape
component in following PR.

#1305


![image](https://github.com/konveyor/tackle2-ui/assets/1901741/c48b117f-7f5a-46e9-ac83-22cb7b14d85f)

---------

Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Co-authored-by: Scott Dickerson <sdickers@redhat.com>
@sjd78 sjd78 self-assigned this Sep 21, 2023
sjd78 added a commit to sjd78/tackle2-ui that referenced this issue Sep 22, 2023
Custom assessments changes risk and confidence to be accessed from
`Assessment` and not `Application`.  The reports page in general, and
the `Landscape` component in specific need to be updated to use risk
values from `Assessment`.

Summary of Change:
  - `Reports`
    - Fetch `Questionnaires` and `Assessments` to allow easy use
      in the Questionnaire select menu
    - Adjust the `Card`s to be clickable and selectable when we provide
      custom actions (to avoid a console warning)

  - `Landscape`
    - Use data from props instead of fetching any additional data. The
      containing component is now responsible for controlling the
      source data.
    - Aggregate risk data into buckets matching `Risk` options
    - Setup responsive layout so the donut charts wrap nicely when the
      view becomes narrow

  - `Donut`
    - Force `id` to be provided
    - Set the width to `200px`
    - Make sure content lines up centered in its container

  - Deprecated `useFetchRisks()`

Enhancement: https://github.com/konveyor/enhancements/blob/90b827b68cc367284a66bf66f087d5c263487e05/enhancements/assessment-module/README.md#changes-in-the-application-reports-view
Part Of: konveyor#1305
Follow Up: konveyor#1374

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
sjd78 added a commit to sjd78/tackle2-ui that referenced this issue Sep 22, 2023
Custom assessments changes risk and confidence to be accessed from
`Assessment` and not `Application`.  The reports page in general, and
the `Landscape` component in specific need to be updated to use risk
values from `Assessment`.

Summary of Change:
  - `Reports`
    - Fetch `Questionnaires` and `Assessments` to allow easy use
      in the Questionnaire select menu
    - Adjust the `Card`s to be clickable and selectable when we provide
      custom actions (to avoid a console warning)

  - `Landscape`
    - Use data from props instead of fetching any additional data. The
      containing component is now responsible for controlling the
      source data.
    - Aggregate risk data into buckets matching `Risk` options
    - Setup responsive layout so the donut charts wrap nicely when the
      view becomes narrow

  - `Donut`
    - Force `id` to be provided
    - Set the width to `200px`
    - Make sure content lines up centered in its container

  - Deprecated `useFetchRisks()`

Enhancement: https://github.com/konveyor/enhancements/blob/90b827b68cc367284a66bf66f087d5c263487e05/enhancements/assessment-module/README.md#changes-in-the-application-reports-view
Part Of: konveyor#1305
Follow Up: konveyor#1374

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
ibolton336 added a commit that referenced this issue Sep 25, 2023
# Summary
Custom assessments changes risk and confidence to be accessed from
`Assessment` and not `Application`. The reports page in general, and the
`Landscape` component in specific need to be updated to use risk values
from `Assessment`.

## Changes
`Reports`
- Fetch `Questionnaires` and `Assessments` to allow easy use in the
Questionnaire select menu
- Adjust the `Card`s to be clickable and selectable when we provide
custom actions (to avoid a console warning)

`Landscape`
- Use data from props instead of fetching any additional data. The
containing component is now responsible for controlling the source data.
- Aggregate risk data into buckets matching `Risk` options - Setup
responsive layout so the donut charts wrap nicely when the view becomes
narrow

`Donut`
  - Force `id` to be provided
  - Set the width to `200px`
  - Make sure content lines up centered in its container

Deprecated `useFetchRisks()`

## Screenshots
All questionnaires:

![image](https://github.com/konveyor/tackle2-ui/assets/3985964/9711a2b9-aa7d-4d00-b1fc-22402e97f727)

Single questionnaire:

![image](https://github.com/konveyor/tackle2-ui/assets/3985964/30cb1134-c368-4843-9534-d532db2b320a)


## References
Enhancement:
https://github.com/konveyor/enhancements/blob/90b827b68cc367284a66bf66f087d5c263487e05/enhancements/assessment-module/README.md#changes-in-the-application-reports-view
Part Of: #1305
Follow Up: #1374

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
Co-authored-by: Ian Bolton <ibolton@redhat.com>
@sjd78 sjd78 unassigned gildub Oct 3, 2023
@ibolton336 ibolton336 moved this from 🏗 In progress to ✅ Done in Planning Oct 11, 2023
@sjd78
Copy link
Member

sjd78 commented Oct 27, 2023

With the details on this issue a bit old now, and direction changing slightly in advance of the next set of changes, this issue can be closed.

@sjd78 sjd78 closed this as completed Oct 27, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Konveyor UI Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Custom Assessment Items relating to custom assessment work
Projects
Status: ✅ Done
Status: Done
Development

No branches or pull requests

4 participants