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: [ADN-339] Develop sign-in process in webpage #345

Merged
merged 59 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
43c53e9
feat. Split the router and page code into web and popup
skqksh Jan 13, 2024
39be474
feat: [ADN-361] Add an Air-gap account model
jinoosss Jan 12, 2024
88874c4
feat: [ADN-362] Update Account migration model
jinoosss Jan 15, 2024
291fe16
feat: [ADN-362] Update Account migration model (#325)
jinoosss Jan 16, 2024
fecae9f
working on connect ledger feature (#327)
skqksh Jan 16, 2024
07ad9ad
Update register home screen (#328)
skqksh Jan 16, 2024
15fa667
feat: Add a page components (#326)
jinoosss Jan 18, 2024
6e80a23
feat. Update ledger connection UI, fix connection error
skqksh Jan 21, 2024
7b93289
feat. Update UI of add ledger complete screen
skqksh Jan 21, 2024
fa8c0d6
feat. refactor web-main-header
skqksh Jan 21, 2024
7dbda82
feat. set Intel font for web
skqksh Jan 21, 2024
cbb8487
feat. Update ledger connection UI, fix connection error (#329)
jinoosss Jan 22, 2024
1c02b88
fix: Add a functions of Airgap account
jinoosss Jan 22, 2024
caf3480
feat: [ADN-363] Implement airgap account creation process
jinoosss Jan 22, 2024
24e95c5
fix: Fix a hooks parameter
jinoosss Jan 23, 2024
c8e8e38
feat: [ADN-363] Implement airgap account creation process (#330)
jinoosss Jan 23, 2024
ff2494a
feat: [ADN-372] Implement a transaction broadcast for airgap account
jinoosss Jan 23, 2024
b440ece
feat. refactor WebButton, WebHeader
skqksh Jan 23, 2024
cf316ab
feat: [ADN-372] Implement a transaction broadcast for airgap account …
jinoosss Jan 24, 2024
724b9d7
feat. refactor WebButton, WebHeader (#332)
jinoosss Jan 24, 2024
2ad81b5
feat: [ADN-366] Implement google account creation process
jinoosss Jan 24, 2024
e261fe1
feat: [ADN-366] Implement google account creation process (#333)
skqksh Jan 24, 2024
2cd29f3
feat. Update create wallet
skqksh Jan 24, 2024
49f2788
feat. Update create wallet (#334)
skqksh Jan 24, 2024
f8e278e
feat. Update add account
skqksh Jan 24, 2024
b26e2a7
feat. Update add account (#335)
skqksh Jan 24, 2024
7ca591f
feat: Update component parameters
jinoosss Jan 25, 2024
5ce2e81
feat: [ADN-367] Implement private key and seed phrase export
jinoosss Jan 25, 2024
eb82d45
feat: [ADN-367] Implement private key and seed phrase export (#336)
jinoosss Jan 25, 2024
32ea912
feat: [ADN-373] Implement questionnaire process
jinoosss Jan 26, 2024
f521d05
feat: [ADN-373] Implement questionnaire process (#337)
jinoosss Jan 26, 2024
d2fd4bf
feat. Update wallet import
skqksh Jan 26, 2024
b7f5cfe
fix. to be able to get mnemonic when user already imported account by…
skqksh Jan 26, 2024
3fce149
refactor. Update account add naming
skqksh Jan 27, 2024
b1637de
feat. Update Import account
skqksh Jan 27, 2024
8a7068f
refactor. to use common all-set & create-password screen for ledger c…
skqksh Jan 27, 2024
cf844b4
feat. Update landing screen UI
skqksh Jan 27, 2024
fa91f52
feat: [ADN-375] Add component test code
jinoosss Jan 28, 2024
b42b293
Import wallet/account features, code refactoring (#341)
jinoosss Jan 28, 2024
07b4664
fix: Separate fetch utility
jinoosss Jan 28, 2024
6d43ef0
feat: [ADN-375] Add component test code (#342)
jinoosss Jan 28, 2024
6813f90
feat: [ADN-377] Navigate to a web page in the extension
jinoosss Jan 28, 2024
ebc14c8
feat: [ADN-377] Navigate to a web page in the extension (#343)
jinoosss Jan 28, 2024
a4f56bd
feat: [ADN-376] Clean up unused pages
jinoosss Jan 28, 2024
38d7db5
feat: [ADN-376] Clean up unused pages (#344)
jinoosss Jan 28, 2024
8a0ab0c
Merge remote-tracking branch 'origin/main' into feature/web-airgap
jinoosss Jan 28, 2024
5bd6b8a
refactor. Update Sensitive Info Component
skqksh Jan 28, 2024
8fdff82
refactor. Update Sensitive Info Component (#347)
skqksh Jan 28, 2024
fe801fe
refactor. remove unused codes and files
skqksh Jan 28, 2024
de8d051
refactor. remove unused codes and files (#348)
skqksh Jan 28, 2024
f0241bf
feat. set link for learmore
skqksh Jan 28, 2024
13865db
feat. Update All set UI
skqksh Jan 28, 2024
e0e7952
Set link for learmore, Update all set UI (#349)
skqksh Jan 28, 2024
92889ba
feat: Add questionnaire process using storage
jinoosss Jan 29, 2024
b7bbd82
fix: Remove a console log
jinoosss Jan 29, 2024
8017889
fix: Fix a minor issue
jinoosss Jan 29, 2024
b0ec82e
feat: Add a Questionnaire's event
jinoosss Jan 29, 2024
c730304
fix: Initialize variables on questionnaire
jinoosss Jan 29, 2024
2a41779
fix: Add a back click event
jinoosss Jan 29, 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
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@babel/core": "7.21.0",
"@babel/runtime": "7.21.0",
"@storybook/react": "^7.0.4",
"@types/react-lottie": "^1.2.10",
"@yarnpkg/sdks": "3.0.0-rc.40",
"babel-loader": "9.1.2",
"eslint": "8.0.1",
Expand All @@ -40,5 +41,8 @@
"prettier --write",
"git add"
]
},
"dependencies": {
"react-lottie": "^1.2.4"
}
}
3 changes: 2 additions & 1 deletion packages/adena-extension/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-unused-vars": "error"
"@typescript-eslint/no-unused-vars": "error",
"react/react-in-jsx-scope": "off"
},
"settings": {
"import/resolver": {
Expand Down
20 changes: 10 additions & 10 deletions packages/adena-extension/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@ import React from 'react';
import { ThemeProvider } from 'styled-components';
import { RecoilRoot } from 'recoil';
import type { Decorator, Parameters } from '@storybook/react';
import { GlobalStyle } from '../src/styles/global-style';
import { GlobalPopupStyle } from '../src/styles/global-style';
import theme from '../src/styles/theme';
import '../index.css';

const extensionViewport = {
name: 'Adena Extension',
styles: {
width: '360px',
height: '540px'
}
}
height: '540px',
},
};

export const parameters: Parameters = {
viewport: {
viewports: {
adenaExtension: extensionViewport
adenaExtension: extensionViewport,
},
defaultViewport: 'adenaExtension'
defaultViewport: 'adenaExtension',
},
backgrounds: {
default: 'adenaExtension',
values: [
{
name: 'adenaExtension',
value: '#212128'
}
]
value: '#212128',
},
],
},
layout: 'fullscreen',
actions: { argTypesRegex: '^on[A-Z].*' },
Expand All @@ -44,7 +44,7 @@ export const decorators: Decorator[] = [
(Story, context) => {
return (
<>
<GlobalStyle />
<GlobalPopupStyle />
<RecoilRoot>
<ThemeProvider theme={theme}>
<div id='portal-popup'></div>
Expand Down
17 changes: 17 additions & 0 deletions packages/adena-extension/public/web.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>

<head>
<title>Adena</title>
<meta charset="utf-8" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet" />
</head>

<body>
<div id="web"></div>
</body>

</html>
2 changes: 0 additions & 2 deletions packages/adena-extension/src/App/app-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { HashRouter } from 'react-router-dom';

import { ThemeProvider } from 'styled-components';
import theme from '@styles/theme';
import { GlobalStyle } from '@styles/global-style';
import { RecoilRoot } from 'recoil';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { AdenaProvider, WalletProvider } from '@common/provider';
Expand All @@ -13,7 +12,6 @@ const queryClient = new QueryClient();
const AppProvider = ({ children }: { children: ReactNode }): ReactElement => {
return (
<>
<GlobalStyle />
<RecoilRoot>
<QueryClientProvider client={queryClient}>
<AdenaProvider>
Expand Down
22 changes: 22 additions & 0 deletions packages/adena-extension/src/App/popup.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React, { ReactElement } from 'react';
import { PopupRouter } from '@router/popup/index';

import AppProvider from './app-provider';
import useApp from './use-app';
import { GlobalPopupStyle } from '@styles/global-style';

const RunApp = (): ReactElement => {
useApp();
return <PopupRouter />;
};

const App = (): ReactElement => {
return (
<AppProvider>
<GlobalPopupStyle />
<RunApp />
</AppProvider>
);
};

export default App;
2 changes: 1 addition & 1 deletion packages/adena-extension/src/App/use-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useTokenBalance } from '@hooks/use-token-balance';
import { useWalletContext } from '@hooks/use-context';
import { useAccountName } from '@hooks/use-account-name';
import useScrollHistory from '@hooks/use-scroll-history';
import { fetchHealth } from '@common/utils/client-utils';
import { fetchHealth } from '@common/utils/fetch-utils';

import { CommonState } from '@states';
import { NetworkMetainfo } from '@types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import React, { ReactElement } from 'react';
import { CustomRouter } from '@router/custom-router';
import { WebRouter } from '@router/web/index';

import AppProvider from './app-provider';
import useApp from './use-app';
import { GlobalWebStyle } from '@styles/global-style';

const RunApp = (): ReactElement => {
useApp();
return <CustomRouter />;
return <WebRouter />;
};

const App = (): ReactElement => {
return (
<AppProvider>
<GlobalWebStyle />
<RunApp />
</AppProvider>
);
Expand Down
18 changes: 18 additions & 0 deletions packages/adena-extension/src/assets/file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 7 additions & 2 deletions packages/adena-extension/src/assets/help.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions packages/adena-extension/src/assets/upload.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
129 changes: 129 additions & 0 deletions packages/adena-extension/src/assets/web/airgap-green.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions packages/adena-extension/src/assets/web/airgap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/adena-extension/src/assets/web/alert-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading