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

feat: [IOBP-863,IOBP-864] Removed legacy wallet & payments features #6210

Merged
merged 54 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
1795f72
Removed the legacy wallet and payments features
Hantex9 Sep 25, 2024
0b833a0
fix: messages payment verifica
Hantex9 Sep 25, 2024
c17729e
fix: pagopaApi legacy type error
Hantex9 Sep 25, 2024
1cdd39a
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Sep 25, 2024
5eb4141
chore: removed unused wallet and payments legacy features
Hantex9 Sep 25, 2024
90f5a4b
fix: unused code
Hantex9 Sep 25, 2024
e0a36d6
chore: removed unused payments action
Hantex9 Sep 25, 2024
0684925
removed deprecated tests
Hantex9 Sep 25, 2024
3a16406
chore: Removed unnecessary code about the deprecated and legacy payme…
Hantex9 Sep 25, 2024
d1c9f62
removed messageid from message tests
Hantex9 Sep 25, 2024
fc5edfb
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 5, 2024
f4fc2d9
fix: Unused payment ongoing selector
Hantex9 Nov 5, 2024
618cd72
fix: Missing code
Hantex9 Nov 5, 2024
e33f8a1
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 5, 2024
928bb56
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
LeleDallas Nov 5, 2024
bda1392
fix: removed obsolete snapshots
Hantex9 Nov 5, 2024
d96e404
refactor: Removed unused files and selectors
Hantex9 Nov 6, 2024
34762b9
Merge remote-tracking branch 'origin/master' into IOBP-863-remove-leg…
Hantex9 Nov 6, 2024
1aa5ea4
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 6, 2024
10d8ae2
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 6, 2024
85a03e0
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
LeleDallas Nov 6, 2024
53b85ac
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 6, 2024
2d786a2
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
LeleDallas Nov 6, 2024
b02564e
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 6, 2024
d45475f
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 7, 2024
d0319e4
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 7, 2024
1509b56
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 8, 2024
c078759
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Vangaorth Nov 8, 2024
a1730a2
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 9, 2024
5d60575
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 11, 2024
ae81099
chore: Remove wallets persisted state
Hantex9 Nov 11, 2024
275e7b9
chore: Add migration that removes the old and legacy wallet&payments …
Hantex9 Nov 11, 2024
1543ebb
chore: update snapshots
Hantex9 Nov 11, 2024
4104723
fix: remove `payments` root state into migrations
Hantex9 Nov 12, 2024
aba8628
test: Check that startPaymentFlowWithRptIdWorkaround is called with t…
Hantex9 Nov 12, 2024
f0aecb4
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 12, 2024
6f6e851
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 12, 2024
6a81da1
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 12, 2024
11944b6
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 13, 2024
7dc6c93
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 13, 2024
4291e55
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 13, 2024
f5ed131
chore: increment current redux store version
Hantex9 Nov 13, 2024
a150f6f
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 13, 2024
ccea5b8
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 13, 2024
0bf7f15
Merge remote-tracking branch 'origin/master' into IOBP-863-remove-leg…
Hantex9 Nov 14, 2024
49634a7
fix: unused imports
Hantex9 Nov 14, 2024
04c67f9
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 14, 2024
0b02e7c
Merge remote-tracking branch 'origin/master' into IOBP-863-remove-leg…
Hantex9 Nov 15, 2024
0e3ea9d
Merge remote-tracking branch 'origin/IOBP-863-remove-legacy-wallet-pa…
Hantex9 Nov 15, 2024
d0f1bfa
Merge remote-tracking branch 'origin/master' into IOBP-863-remove-leg…
Hantex9 Nov 15, 2024
73b1b36
fix: unused import
Hantex9 Nov 15, 2024
c350ce4
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 15, 2024
313b8f5
fix: snapshots
Hantex9 Nov 15, 2024
b3342eb
Merge branch 'master' into IOBP-863-remove-legacy-wallet-payments-fea…
Hantex9 Nov 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion ts/__mocks__/paymentPayloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import {
IWithinRangeStringTag
} from "@pagopa/ts-commons/lib/strings";

import { paymentVerifica } from "../store/actions/wallet/payment";
import { ImportoEuroCents } from "../../definitions/backend/ImportoEuroCents";
import { myRptId } from "../utils/testFaker";
import { Amount, Transaction } from "../types/pagopa";
import { paymentVerifica } from "../store/actions/legacyWallet";

export const messageId = "abcde-12345";

Expand Down
17 changes: 0 additions & 17 deletions ts/boot/__tests__/__snapshots__/persistedStore.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,6 @@ exports[`Check the addition for new fields to the persisted store. If one of thi
}
`;

exports[`Check the addition for new fields to the persisted store. If one of this test fails, check that exists the migration before updating the snapshot! Freeze 'payments' state 1`] = `
{
"creditCardInsertion": [],
"current": {
"kind": "UNSTARTED",
},
"history": [],
"lastDeleted": null,
}
`;

exports[`Check the addition for new fields to the persisted store. If one of this test fails, check that exists the migration before updating the snapshot! Freeze 'persistedPreferences' state 1`] = `
{
"continueWithRootOrJailbreak": false,
Expand All @@ -124,9 +113,3 @@ exports[`Check the addition for new fields to the persisted store. If one of thi
"kind": "PotNone",
}
`;

exports[`Check the addition for new fields to the persisted store. If one of this test fails, check that exists the migration before updating the snapshot! Freeze 'wallet.wallets.walletById' state 1`] = `
{
"kind": "PotNone",
}
`;
7 changes: 1 addition & 6 deletions ts/boot/__tests__/persistedStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ describe("Check the addition for new fields to the persisted store. If one of th
it("Freeze 'installation' state", () => {
expect(globalState.installation).toMatchSnapshot();
});
it("Freeze 'payments' state", () => {
expect(globalState.payments).toMatchSnapshot();
});
it("Freeze 'content' state", () => {
expect(globalState.content).toMatchSnapshot();
});
Expand All @@ -54,9 +51,7 @@ describe("Check the addition for new fields to the persisted store. If one of th
it("Freeze 'identification' state", () => {
expect(globalState.identification).toMatchSnapshot();
});
it("Freeze 'wallet.wallets.walletById' state", () => {
expect(globalState.wallet.wallets.walletById).toMatchSnapshot();
});

it("Freeze 'installation.appVersionHistory' state", () => {
expect(globalState.installation.appVersionHistory).toMatchSnapshot();
});
Expand Down
8 changes: 4 additions & 4 deletions ts/boot/configureStoreAndPersistor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ import {
} from "../features/pushNotifications/store/reducers";
import { getInitialState as getInstallationInitialState } from "../features/pushNotifications/store/reducers/installation";
import { GlobalState, PersistedGlobalState } from "../store/reducers/types";
import { walletsPersistConfig } from "../store/reducers/wallet";
import { DateISO8601Transform } from "../store/transforms/dateISO8601Tranform";
import { PotTransform } from "../store/transforms/potTransform";
import { isDevEnv } from "../utils/environment";
Expand All @@ -56,7 +55,7 @@ import { configureReactotron } from "./configureRectotron";
/**
* Redux persist will migrate the store to the current version
*/
const CURRENT_REDUX_STORE_VERSION = 37;
const CURRENT_REDUX_STORE_VERSION = 38;

// see redux-persist documentation:
// https://github.com/rt2zz/redux-persist/blob/master/docs/migrations.md
Expand Down Expand Up @@ -455,7 +454,9 @@ const migrations: MigrationManifest = {
}
}
};
}
},
// Remove old wallets&payments feature and persisted state
"38": (state: PersistedState) => omit(state, "payments")
};

const isDebuggingInChrome = isDevEnv && !!window.navigator.userAgent;
Expand Down Expand Up @@ -491,7 +492,6 @@ const persistedReducer: Reducer<PersistedGlobalState, Action> = persistReducer<
createRootReducer([
rootPersistConfig,
authenticationPersistConfig,
walletsPersistConfig,
entitiesPersistConfig
])
);
Expand Down
82 changes: 0 additions & 82 deletions ts/components/__tests__/ContextualInfo.test.tsx

This file was deleted.

50 changes: 0 additions & 50 deletions ts/components/__tests__/PspComponent.test.tsx

This file was deleted.

99 changes: 0 additions & 99 deletions ts/components/wallet/FavoriteMethodSwitch.tsx

This file was deleted.

60 changes: 0 additions & 60 deletions ts/components/wallet/InternationalCircuitIconsBar.tsx

This file was deleted.

Loading
Loading