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

[#172992652] Activate bonus screen #1853

Merged
merged 28 commits into from
May 29, 2020
Merged

Conversation

fabriziofff
Copy link
Contributor

@fabriziofff fabriziofff commented May 27, 2020

This pr depends on (#1846).

Short description:
This pr adds the screen that allow to see:

  • The amount of bonus available
  • A Description about the bonus
  • A resume of the family members

And allows to:

  • Activate the bonus (request the identification)
Screen Activate the bonus Action

List of changes proposed in this pull request:

  • ts/features/bonusVacanze/screens/ActivateBonus/ActivateBonusComponent.tsx a component that implements all the graphic required by the screen.
  • ts/features/bonusVacanze/screens/ActivateBonus/ActivateBonusScreen.tsx that uses the ActivateBonusComponent and tie it with the business logic.

@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented May 27, 2020

Affected stories

  • 🌟 #172992652: Come CIT se ho un ISEE idoneo voglio uno screen che mi elenchi i componenti del nucleo e mi permetta di attivare il bonus

Generated by 🚫 dangerJS

@fabriziofff fabriziofff marked this pull request as draft May 28, 2020 08:16
@fabriziofff fabriziofff marked this pull request as ready for review May 28, 2020 08:57
@fabriziofff fabriziofff requested a review from Undermaken May 28, 2020 13:34

const mapStateToProps = (_: GlobalState) => ({
// TODO: link with the right reducer
bonusVacanze: mockedBonus,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Undermaken Are we sure to use this data model here? In this phase we should have only the response from /eligibility with the payload with values family_members, max_amount and max_tax_benefit. Seems to me that the model BonusVacanzaMock represents an already request bonus.

Copy link
Contributor

Choose a reason for hiding this comment

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

@fabriziofff Yes, you are totally right.
I lost the point where we are.
At this point we should have something like this

{
  "family_members": [
    {
      "name": "Mario",
      "surname": "Rossi",
      "fiscal_code": "EFCMZZ80A12L720R"
    },
    {
      "name": "Giulia",
      "surname": "Rossi",
      "fiscal_code": "CDCMQQ81A12L721R"
    },
    {
      "name": "Piero",
      "surname": "Rossi",
      "fiscal_code": "ABCMYY82A12L722R"
    }
  ],
  "max_amount": 50000,
  "max_tax_benefit": 3000,
  "id": "76d02f6d-ca02-4b1c-8b6a-4b8ca71d6293",
  "status": "ELIGIBLE"
}

Please could you revert?

@Undermaken Undermaken merged commit c0de9e8 into master May 29, 2020
@Undermaken Undermaken deleted the 172992652-activate-bonus-screen branch May 29, 2020 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants