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

Additional tooling #957

Merged
merged 54 commits into from
Oct 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
5b84613
feat: migration script
renanvalentin Apr 18, 2024
4046db0
feat: replace Nami ui with migration tool LW-10492
DominikGuzei May 29, 2024
b65dca3
feat: add migration components
Jun 6, 2024
836eb6a
feat: wire-up migration logic [LW-10704]
DominikGuzei Jun 7, 2024
feef8d2
Merge pull request #3 from input-output-hk/feat/lw-10704-move-migrati…
Jun 7, 2024
95c44e2
fix: allow Lace migration to retry in Nami completed state [LW-10492]
DominikGuzei Jun 13, 2024
e5d4b2b
fix: check for Lace installation more granularily [LW-10492]
DominikGuzei Jun 17, 2024
c819649
fix: adjust button and bg colors LW-10492
DominikGuzei Jun 18, 2024
5aa8d96
Merge pull request #2 from input-output-hk/feat/lw-10492-enable-Nami-…
DominikGuzei Jun 18, 2024
c46aa95
feat: add migration analytics LW-10650
DominikGuzei Jun 6, 2024
e62e65c
Merge pull request #4 from input-output-hk/feat/lw-10650-migration-an…
DominikGuzei Jun 19, 2024
e78d06c
feat: migrate color theme [LW-10673]
tomislavhoracek Jun 19, 2024
6cf27ae
Merge pull request #5 from input-output-hk/feat/lw-10673-export-color…
tomislavhoracek Jun 20, 2024
5c25608
chore(extension): adjust migration dark theme elements
tomislavhoracek Jun 24, 2024
dfaf41e
chore(extension): code cleanup
tomislavhoracek Jun 24, 2024
2dc4d5e
feat: handle no-wallet migration case
tomislavhoracek Jun 26, 2024
79ec500
chore: add missing files
tomislavhoracek Jun 26, 2024
b05817f
chore: remove unused prop
tomislavhoracek Jun 27, 2024
feaecde
Merge pull request #6 from input-output-hk/chore/lw-10775-nami-migrat…
tomislavhoracek Jun 27, 2024
197fd9c
chore: noWallet fetch improvement
tomislavhoracek Jun 27, 2024
f4b0982
chore: noWallet fetch improvement
tomislavhoracek Jun 27, 2024
7c7ee93
chore: merge and fix conflicts
tomislavhoracek Jun 28, 2024
f9ffb3a
chore: code cleanup
tomislavhoracek Jun 28, 2024
947a3f1
chore: add know more faq link
tomislavhoracek Jul 2, 2024
5792816
Merge pull request #7 from input-output-hk/feat/lw-10768-migration-no…
tomislavhoracek Jul 2, 2024
df5b8b5
feat: update nami migration copy [LW-10801]
DominikGuzei Jul 11, 2024
331025b
chore: update no-wallet copy
tomislavhoracek Jul 16, 2024
affbc23
chore: update Slide component padding
tomislavhoracek Jul 18, 2024
246d49f
Merge pull request #8 from input-output-hk/feat/lw-10801-update-copy
DominikGuzei Jul 22, 2024
b4d845f
feat: make migration flow dimissible
mchappell Sep 30, 2024
5278acc
feat: extract nami-migration-tool
vetalcore Oct 3, 2024
cc68f80
feat: revert package.lock file
vetalcore Oct 3, 2024
018d55d
fix(nami): [lw-11651] update tou and pp links
vetalcore Oct 7, 2024
db128a9
fix(nami): [lw-11652] fix blinking legal & analytics popup
vetalcore Oct 7, 2024
416d5d2
fix(nami): [lw-11435] resolve sdet comments
vetalcore Oct 7, 2024
0c58849
fix: init posthog even if consent === false
vetalcore Oct 10, 2024
908d746
Merge remote-tracking branch 'origin/main' into additional-tooling
vetalcore Oct 10, 2024
5718643
chore: fix readme typo
vetalcore Oct 10, 2024
346fb30
chore: remove nami migration tool tgz
vetalcore Oct 11, 2024
31a1952
chore: update copy
vetalcore Oct 12, 2024
4a40970
ci: use env over with in ci.yml as with syntax not available in bash …
mchappell Oct 14, 2024
9bfa6d8
fix: remove duplicated prop def and console log
mchappell Oct 14, 2024
23f71fd
fix: adjust migration container width
vetalcore Oct 14, 2024
93caaf8
feat: clear existing dismissed migration when enabling migration
mchappell Oct 15, 2024
5659295
feat: add nami migration dormant state for beta enrolment program
mchappell Oct 15, 2024
39be605
feat: update settings to show beta program and upgrade wallet conditions
mchappell Oct 15, 2024
56ec00b
feat: update migration flow additional conditions
mchappell Oct 15, 2024
b1e1050
feat: add end state for migration
mchappell Oct 15, 2024
250c747
chore: update switch to nami mode copies
vetalcore Oct 16, 2024
8b643dd
chore: update terms content copies
vetalcore Oct 17, 2024
04f1648
send noWallet property to posthog when beginning migration
mchappell Oct 17, 2024
1e01c17
feat: make nami upgrade wallet button visible during lifecycle of mig…
mchappell Oct 17, 2024
c49eb8b
fix: enable injection in all frames
vetalcore Oct 17, 2024
e171793
chore: update terms content copies breakdown
vetalcore Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
run: npm test
- name: Generates Secrets File
run: |
echo "export default { PROJECT_ID_MAINNET: '${{ secrets.PROJECT_ID_MAINNET }}', PROJECT_ID_PREVIEW: '${{ secrets.PROJECT_ID_PREVIEW }}', PROJECT_ID_PREPROD: '${{ secrets.PROJECT_ID_PREPROD }}'};" > secrets.production.js
echo "export default { PROJECT_ID_MAINNET: '${{ secrets.PROJECT_ID_MAINNET }}', PROJECT_ID_PREVIEW: '${{ secrets.PROJECT_ID_PREVIEW }}', PROJECT_ID_PREPROD: '${{ secrets.PROJECT_ID_PREPROD }}', POSTHOG_API_KEY:'${{ secrets.POSTHOG_API_KEY_PRODUCTION }}', POSTHOG_PROJECT_ID: '${{ secrets.POSTHOG_PROJECT_ID_PRODUCTION }}'};" > secrets.production.js
- name: Build
run: npm run build
with:
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_DSN: ${{ vars.SENTRY_DSN }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ secrets.development.js

# IDEs
.idea

*storybook.log
49 changes: 49 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
const path = require('path');
const { NormalModuleReplacementPlugin } = require('webpack');

const config = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-webpack5-compiler-swc',
'@storybook/addon-onboarding',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
],
framework: {
name: '@storybook/react-webpack5',
options: {},
},
webpackFinal: webPackconfig => {
const fileLoaderRule = webPackconfig.module.rules.find(rule =>
rule.test?.test('.svg'),
);
fileLoaderRule.exclude = /\.svg$/;
webPackconfig.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: [
{
loader: '@svgr/webpack',
options: {
icon: true,
exportType: 'named',
},
},
],
});
webPackconfig.resolve.extensions.push('.svg');
if (webPackconfig.plugins) {
webPackconfig.plugins.push(
new NormalModuleReplacementPlugin(
/^webextension-polyfill$/,
path.join(__dirname, './mocks/webextension-polyfill.mock.ts'),
),
);
}

return webPackconfig;
},
};
export default config;
2 changes: 2 additions & 0 deletions .storybook/mocks/webextension-polyfill.mock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const runtime = {};
export const storage = {};
37 changes: 37 additions & 0 deletions .storybook/preview.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from 'react';
import { Box, DarkMode, Flex, LightMode } from '@chakra-ui/react';
import Theme from '../src/ui/theme';

const preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export const decorators = [
(Story) => {
return (
<Theme>
<Flex>
<LightMode>
<Box p="50px">
<Story />
</Box>
</LightMode>
<DarkMode>
<Box p="50px" backgroundColor="#2E2E2E">
<Story />
</Box>
</DarkMode>
</Flex>
</Theme>
);
},
];

export default preview;
Loading
Loading