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

Feature/signing cta #2890

Merged
merged 29 commits into from
Jan 20, 2025
Merged

Feature/signing cta #2890

merged 29 commits into from
Jan 20, 2025

Conversation

cammiida
Copy link
Contributor

@cammiida cammiida commented Jan 9, 2025

Description

Kan til fordel leses commit for commit 😊
Visning av feil i signeringssteget (den røde versjonen) kommer i en annen PR.

Kan testes ut ved å enten

  • prøve ut signering-brukerstyrt-appen i TT02: https://ttd.apps.tt02.altinn.no/ttd/signering-brukerstyrt/
    Testbrukere er da Tenor testbrukere som vanlig.
  • eller kjøre opp signering-brukerstyrt-appen lokalt med denne frontenden og app-lib-dotnet fra branchen feature/signing.
    Testbrukere finner man da i app-localtest i mappa testdata/Register/Party. Merk at det ikke er alle personer eller org som funker, men Pengelens Partner, Gjentakende Forelder og Skog og Fjell Consulting funker i hvert fall.

Siden mye fortsatt er litt usikkert, lager jeg tester senere.

Figma
image

Related Issue(s)

Verification/QA

  • Manual functionality testing
    • I have tested these changes manually
    • Creator of the original issue (or service owner) has been contacted for manual testing (or will be contacted when released in alpha)
    • No testing done/necessary
  • Automated tests
    • Unit test(s) have been added/updated
    • Cypress E2E test(s) have been added/updated
    • No automatic tests are needed here (no functional changes/additions)
    • I want someone to help me make some tests
  • UU/WCAG (follow these guidelines until we have our own)
    • I have tested with a screen reader/keyboard navigation/automated wcag validator
    • No testing done/necessary (no DOM/visual changes)
    • I want someone to help me perform accessibility testing
  • User documentation @ altinn-studio-docs
    • Has been added/updated
    • No functionality has been changed/added, so no documentation is needed
    • I will do that later/have created an issue
  • Support in Altinn Studio
    • Issue(s) created for support in Studio
    • This change/feature does not require any changes to Altinn Studio
  • Sprint board
    • The original issue (or this PR itself) has been added to the Team Apps project and to the current sprint board
    • I don't have permissions to do that, please help me out
  • Labels
    • I have added a kind/* label to this PR for proper release notes grouping
    • I don't have permissions to add labels, please help me out

@cammiida cammiida marked this pull request as draft January 9, 2025 09:33
@cammiida cammiida added the kind/feature-request New feature or request label Jan 9, 2025
@cammiida cammiida self-assigned this Jan 9, 2025
@cammiida cammiida force-pushed the feature/signing-cta branch from 3687cce to ac98a99 Compare January 14, 2025 14:33
@cammiida cammiida added kind/product-feature Pull requests containing new features and removed kind/feature-request New feature or request labels Jan 14, 2025
@cammiida
Copy link
Contributor Author

/publish

Copy link
Contributor

Published PR packages:

  • <link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/4.15.0.signing-cta.73448e1b/altinn-app-frontend.css">
  • <script src="https://altinncdn.no/toolkits/altinn-app-frontend/4.15.0.signing-cta.73448e1b/altinn-app-frontend.js"></script>

@cammiida cammiida force-pushed the feature/signing-cta branch from 452a170 to 24f6e50 Compare January 15, 2025 11:44
@cammiida
Copy link
Contributor Author

/publish

Copy link
Contributor

Published PR packages:

  • <link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/4.15.0.signing-cta.a1e94fc5/altinn-app-frontend.css">
  • <script src="https://altinncdn.no/toolkits/altinn-app-frontend/4.15.0.signing-cta.a1e94fc5/altinn-app-frontend.js"></script>

renames SigningPanel -> PanelSigning, NoActionRequiredPanel -> PanelNoActionRequired and AwaitingCurrentUserSignaturePanel -> PanelAwaitingCurrentUserSignature
@cammiida
Copy link
Contributor Author

/publish

Copy link
Contributor

Published PR packages:

  • <link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/4.15.0.signing-cta.8829f31f/altinn-app-frontend.css">
  • <script src="https://altinncdn.no/toolkits/altinn-app-frontend/4.15.0.signing-cta.8829f31f/altinn-app-frontend.js"></script>

@cammiida cammiida marked this pull request as ready for review January 15, 2025 17:24
@cammiida cammiida linked an issue Jan 16, 2025 that may be closed by this pull request
@cammiida
Copy link
Contributor Author

/publish

Copy link
Contributor

Published PR packages:

  • <link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/4.15.0.signing-cta.719aafea/altinn-app-frontend.css">
  • <script src="https://altinncdn.no/toolkits/altinn-app-frontend/4.15.0.signing-cta.719aafea/altinn-app-frontend.js"></script>

Copy link
Contributor

@olemartinorg olemartinorg left a comment

Choose a reason for hiding this comment

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

Good stuff!! 💪 🚀 I have quite a few comments here, and I can't really comment about the domain-specific parts about signing (I haven't followed the work in that task force closely).

src/language/texts/en.ts Show resolved Hide resolved
src/language/texts/en.ts Outdated Show resolved Hide resolved
src/language/texts/nb.ts Outdated Show resolved Hide resolved
src/layout/SigneeList/api.ts Show resolved Hide resolved
src/layout/SigningStatusPanel/PanelSigning.tsx Outdated Show resolved Hide resolved
src/layout/SigningStatusPanel/config.ts Outdated Show resolved Hide resolved
src/layout/SigneeList/SigneeListComponent.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@HauklandJ HauklandJ left a comment

Choose a reason for hiding this comment

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

🙌

);
}

if (currentUserStatus === 'awaitingSignature') {
Copy link
Contributor

@HauklandJ HauklandJ Jan 17, 2025

Choose a reason for hiding this comment

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

The logic looks correct here.
We should have tests for all the cases:
User without write access, not in signeeList -> NoActionRequiredPanel
User without write access, in signeeList, has not yet signed -> AwaitingCurrentUserSignaturePanel
User without write access, in signeeList, has signed -> NoActionRequiredPanel
User with write access, not in signeeList, required have not signed -> AwaitingOtherSignaturesPanel
User with write access, not in signeeList, required have signed -> SubmitPanel
User with write access, in signeeList, has not yet signed -> AwaitingCurrentUserSignaturePanel
User with write access, in signeeList, has signed, but other required have not -> AwaitingOtherSignaturesPanel
User with write access, in signeeList, has signed, and all other required have too -> SubmitPanel

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
31.4% Coverage on New Code (required ≥ 45%)
11.16% Condition Coverage on New Code (required ≥ 45%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@cammiida cammiida merged commit f88a0ba into feature/signing Jan 20, 2025
14 of 15 checks passed
@cammiida cammiida deleted the feature/signing-cta branch January 20, 2025 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/product-feature Pull requests containing new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Signature Call-To-Action (CTA)
3 participants