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

chore(Cross): [IOAPPX-422] Replace the legacy markdown renderer with IOMarkdown #6445

Draft
wants to merge 48 commits into
base: master
Choose a base branch
from

Conversation

dmnplb
Copy link
Contributor

@dmnplb dmnplb commented Nov 22, 2024

Short description

This PR removes any legacy markdown renderer in favour of IOMarkdown

List of changes proposed in this pull request

  • Remove LegacyMarkdown

Preview

CiePinScreen

Old New
Old New

FciDocumentsScreen

Old New
FciDocumentsScreen_old FciDocumentsScreen_new

EycaInformationComponent

Old New
EycaInformationComponent_old EycaInformationComponent_new

InitiativeDetailsScreen

Old New New
InitiativeDetailsScreen_old InitiativeDetailsScreen_new_0 InitiativeDetailsScreen_new_1

RootedDeviceModal

Old New
RootedDeviceModal_old RootedDeviceModal_new

ShareDataFeatureInfos

Old New
Simulator Screenshot - iPhone 16 Pro - 2024-11-26 at 13 44 06 Simulator Screenshot - iPhone 16 Pro - 2024-11-26 at 13 48 00

ManualConfigBottomSheet

Old New
Simulator Screenshot - iPhone 16 Pro - 2024-11-26 at 13 44 53 Simulator Screenshot - iPhone 16 Pro - 2024-11-26 at 13 48 13

InitiativeRulesInfoBox

Old New
InitiativeRulesInfoBox_old InitiativeRulesInfoBox_new

PDNDPrerequisitesScreen

Old New
PDNDPrerequisitesScreen_old PDNDPrerequisitesScreen_new

MessageDetailsScreen

Old New
M001_old M001_new
M002_old M002_new
M003_old M003_new
M004_old M004_new
M005_old M005_new

ServiceDetailsScreen

Old New
S001_old S001_new

CgnInformationScreen

Old New
CGN001_old CGN001_new
CGN002_old CGN002_new
CGN003_old CGN003_new
CGN004_old CGN004_new

Authors

@Vangaorth @adelloste @dmnplb

How to test

All affected sections have been tested and related screenshots are linked in this PR. Assuming that IOMarkdown is a fully working component, either statically check that the edited code makes sense or, using the io-dev-api-server, verify that every impacted screen/component/bottom-sheet renders properly

@dmnplb dmnplb added enhancement Design System New visual language and reduction of previous UI clutter labels Nov 22, 2024
@pagopa-github-bot pagopa-github-bot changed the title [IOAPPX-422] Replace the legacy markdown renderer with IOMarkdown in the Messages and Services screens chore(Cross): [IOAPPX-422] Replace the legacy markdown renderer with IOMarkdown in the Messages and Services screens Nov 22, 2024
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Nov 22, 2024

Affected stories

  • ⚙️ IOAPPX-422: Sostituzione IOMarkdown su messaggi e servizi
    subtask of

Generated by 🚫 dangerJS against 7a5385b

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 73.60000% with 33 lines in your changes missing coverage. Please review.

Project coverage is 49.44%. Comparing base (7e5ca4a) to head (503dabc).

Files with missing lines Patch % Lines
ts/components/IOMarkdown/customRules.tsx 22.22% 14 Missing ⚠️
ts/components/IOMarkdown/renderRules.tsx 76.00% 6 Missing ⚠️
ts/components/IOMarkdown/markdownRenderer.ts 93.75% 4 Missing ⚠️
...ces/details/components/CardWithMarkdownContent.tsx 0.00% 3 Missing ⚠️
...omponents/detail/eyca/EycaInformationComponent.tsx 50.00% 2 Missing ⚠️
...us/common/components/BonusInformationComponent.tsx 0.00% 1 Missing ⚠️
...pay/onboarding/screens/InitiativeDetailsScreen.tsx 0.00% 1 Missing ⚠️
...eatures/messages/saga/handleMessagePrecondition.ts 0.00% 1 Missing ⚠️
...le/components/services/ManualConfigBottomSheet.tsx 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6445      +/-   ##
==========================================
+ Coverage   49.30%   49.44%   +0.13%     
==========================================
  Files        1565     1558       -7     
  Lines       32228    32021     -207     
  Branches     7338     7226     -112     
==========================================
- Hits        15891    15832      -59     
+ Misses      16288    16151     -137     
+ Partials       49       38      -11     
Files with missing lines Coverage Δ
ts/components/IOMarkdown/index.tsx 100.00% <100.00%> (ø)
ts/components/ui/LoadingSkeleton.tsx 33.33% <ø> (ø)
ts/components/ui/Markdown/handlers/link.ts 100.00% <ø> (+32.14%) ⬆️
ts/components/ui/Markdown/script.ts 100.00% <ø> (ø)
ts/features/fci/hooks/useFciAbortSignatureFlow.tsx 61.11% <ø> (ø)
...s/fims/singleSignOn/components/FimsPrivacyInfo.tsx 20.00% <ø> (ø)
...s/fims/singleSignOn/components/FimsSuccessBody.tsx 9.09% <ø> (ø)
...dpay/details/components/InitiativeRulesInfoBox.tsx 30.00% <ø> (ø)
...rding/components/OnboardingDescriptionMarkdown.tsx 33.33% <ø> (+19.04%) ⬆️
...pay/onboarding/screens/PDNDPrerequisitesScreen.tsx 9.52% <ø> (ø)
... and 22 more

... and 10 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cross Design System New visual language and reduction of previous UI clutter enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants