Skip to content

Atlas integration for authentication, user settings, email confirmation, uploads #1654

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

Merged
merged 35 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0d004b7
chore(web): initial-wrapper-update
tractorss Jul 15, 2024
7172065
chore(web): update-queries
tractorss Jul 26, 2024
f454372
chore: update-netlify-functions-to-test-notifications
tractorss Jul 26, 2024
e985455
chore: update-lockfile
tractorss Jul 26, 2024
53b7b2a
fix(functions): fix-address-fetching-from-jwt-payload
tractorss Jul 26, 2024
33b818e
refactor(web): export-ensure-auth-as-default
tractorss Jul 26, 2024
ba2442a
refactor(web): structured-atlas-interaction
tractorss Aug 8, 2024
ddd06d1
refactor(web): code-smells
tractorss Aug 8, 2024
10efe92
refactor(web): remove-unused-import
tractorss Aug 8, 2024
5b41eda
Merge branch 'dev' into feat/atlas-siwe
tractorss Aug 9, 2024
cff6ee0
Merge branch 'dev' into feat/atlas-siwe
tractorss Aug 9, 2024
cc3a8be
feat(web): user-settings-integration
tractorss Aug 9, 2024
c58fb70
chore(web): remove-old-notifications-logic
tractorss Aug 9, 2024
ce7835f
refactor(web): refetch-on-address-change-and-set-empty-email-invalid
tractorss Aug 9, 2024
6ea2dd3
refactor(web): remove-previous-user-data-on-address-change
tractorss Aug 9, 2024
94b4714
Merge branch 'dev' into feat/atlas-siwe
tractorss Aug 21, 2024
cb8375b
chore(web): update-atlas-utils
tractorss Aug 21, 2024
b121de6
fix(web): upload-to-ipfs-token-fetch
tractorss Aug 22, 2024
39cf66d
chore: removal of the supabase dependencies
jaybuidl Sep 6, 2024
3d217da
feat(web): atlas-upload-to-ipfs-integration
tractorss Sep 12, 2024
b809aa0
chore(web): update-user-email-update-query
tractorss Sep 28, 2024
4f043cd
feat(web): email-verify-info
tractorss Oct 1, 2024
3397a63
feat(web): confirm-email-page
tractorss Oct 1, 2024
95ecb24
feat(web): email-verification-info-and-resend-button
tractorss Oct 1, 2024
3d0e0ca
fix(web): add-missing-property
tractorss Oct 1, 2024
4375993
refactor(web): remove-unnecessary-use-memo-usage
tractorss Oct 1, 2024
143d33f
chore(web): update-confirm-email-mutation
tractorss Oct 3, 2024
50ea26a
feat(web): confirmation-page-ui
tractorss Oct 3, 2024
16f8a17
refactor(web): refactor-message-configs
tractorss Oct 3, 2024
1ae4047
fix(web): fix-header-and-icon-color
tractorss Oct 3, 2024
9382b7f
Merge branch 'dev' into feat/atlas-siwe
tractorss Oct 10, 2024
4fa24cb
Merge branch 'feat/atlas-siwe' into feat/atlas-ipfs-upload
tractorss Oct 15, 2024
96a49cc
chore(web): new-ipfs-upload-flow
jaybuidl Oct 15, 2024
6f58f20
Merge pull request #1687 from kleros/feat/atlas-ipfs-upload
jaybuidl Oct 16, 2024
e72bd47
Merge branch 'dev' into feat/atlas-siwe
jaybuidl Oct 16, 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
Prev Previous commit
Next Next commit
refactor(web): export-ensure-auth-as-default
  • Loading branch information
tractorss committed Jul 26, 2024
commit 33b818e662df22d045f4bcb6deea0409d439863e
4 changes: 3 additions & 1 deletion web/src/components/EnsureAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface IEnsureAuth {
className?: string;
}

export const EnsureAuth: React.FC<IEnsureAuth> = ({ children, className }) => {
const EnsureAuth: React.FC<IEnsureAuth> = ({ children, className }) => {
const localToken = window.sessionStorage.getItem("auth-token");
const [isLoading, setIsLoading] = useState(false);

Expand Down Expand Up @@ -96,3 +96,5 @@ async function createMessage(address: `0x${string}`, statement: string, chainId:
});
return message;
}

export default EnsureAuth;
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import styled from "styled-components";
import TelegramLogo from "svgs/socialmedia/telegram.svg";

import { HERMES_TELEGRAM_BOT_URL } from "consts/index";
import { EnsureAuth } from "components/EnsureAuth";

import EnsureAuth from "components/EnsureAuth";
import { EnsureChain } from "components/EnsureChain";
import { ISettings } from "layout/Header/navbar/index";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { simulateEvidenceModuleSubmitEvidence } from "hooks/contracts/generated"
import { uploadFormDataToIPFS } from "utils/uploadFormDataToIPFS";
import { wrapWithToast, OPTIONS as toastOptions } from "utils/wrapWithToast";

import { EnsureAuth } from "components/EnsureAuth";
import EnsureAuth from "components/EnsureAuth";
import { EnsureChain } from "components/EnsureChain";

const StyledModal = styled(Modal)`
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Resolver/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { landscapeStyle } from "styles/landscapeStyle";
import { responsiveSize } from "styles/responsiveSize";

import ConnectWallet from "components/ConnectWallet";
import { EnsureAuth } from "components/EnsureAuth";
import EnsureAuth from "components/EnsureAuth";
import HeroImage from "components/HeroImage";
import HowItWorks from "components/HowItWorks";
import Resolver from "components/Popup/MiniGuides/DisputeResolver";
Expand Down
Loading