-
Notifications
You must be signed in to change notification settings - Fork 6
Wind down #411
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
Wind down #411
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
009d12d
user_dashboard: add service shutdown notice modal
Ryz0nd f1732ae
user_dashboard: set service shutdown date to June 1 in notice modal
Ryz0nd 8e10123
user_dashboard: add key export prompt modal and sidebar nav item
Ryz0nd 76c1260
customer_dashboard: add service shutdown notice modal
Ryz0nd 9111696
customer_dashboard: update shutdown modal content and add sidebar notice
Ryz0nd 2599006
user_dashboard, customer_dashboard: update service shutdown date to J…
Ryz0nd 1f11327
customer_dashboard: fix shutdown modal centering on desktop
Ryz0nd 507d0ee
customer_dashboard: move shutdown notice above profile in sidebar
Ryz0nd 3523a2c
oko_attached: add account backup link to sign_with_oko_box
Ryz0nd 9c07256
customer_dashboard: add missing viewport variables for service shutdo…
Ryz0nd 6380d48
oko_attached: update backup link to english with shutdown context
Ryz0nd ef853f6
wind-down: add shutdown notice to login screens
Ryz0nd 79d340a
Revert "wind-down: add shutdown notice to login screens"
Ryz0nd 232ed15
wind-down: center signing modal notice and align sign/export on one row
Ryz0nd 38b3c49
wind-down: add shutdown notice to demo_web login widget
Ryz0nd 0a90557
wind-down: hide signing modal shutdown notice for demo_web host
Ryz0nd 324497f
Revert "wind-down: add shutdown notice to demo_web login widget"
Ryz0nd 85639e3
wind-down: use isDemoOrSandboxOrigin to hide signing notice in demo/s…
Ryz0nd 3fb3758
wind-down: show friendly message for SIGNUP_DISABLED error in attached
Ryz0nd c3370cd
sign_with_oko_box: hardcode backup URL to home.oko.app/export_private…
Ryz0nd 9c47102
sign_with_oko_box: pass mobile native context into isDemoOrSandboxOri…
Ryz0nd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
...stomer_dashboard/src/components/service_shutdown_modal/service_shutdown_modal.module.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| @use "../../styles/viewport.module.scss" as *; | ||
|
|
||
| .modalBackground { | ||
| position: fixed; | ||
| top: 0; | ||
| left: 0; | ||
| right: 0; | ||
| bottom: 0; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| z-index: 1000; | ||
| background: rgba(0, 0, 0, 0.4); | ||
| } | ||
|
|
||
| .modal { | ||
| position: relative; | ||
| width: 100%; | ||
| max-width: 90vw; | ||
| max-height: 90vh; | ||
|
|
||
| @media (min-width: $desktop_min_width) { | ||
| width: auto; | ||
| } | ||
| } | ||
|
|
||
| .modalCard { | ||
| background: var(--bg-primary); | ||
| border: 1px solid var(--border-primary); | ||
| border-radius: 16px; | ||
| box-shadow: var(--shadow-xl); | ||
| width: 100%; | ||
| max-width: 400px; | ||
| box-sizing: border-box; | ||
| padding: 0; | ||
| } | ||
|
|
||
| .header { | ||
| display: flex; | ||
| justify-content: flex-end; | ||
| align-items: center; | ||
| padding: 20px 20px 0; | ||
| } | ||
|
|
||
| .closeButton { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| width: 32px; | ||
| height: 32px; | ||
| padding: 6px; | ||
| border: none; | ||
| background: none; | ||
| border-radius: 8px; | ||
| cursor: pointer; | ||
| color: var(--fg-quaternary); | ||
|
|
||
| &:hover { | ||
| background: var(--bg-secondary); | ||
| } | ||
| } | ||
|
|
||
| .content { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| padding: 0 20px 8px; | ||
| } | ||
|
|
||
| .logoWrapper { | ||
| display: flex; | ||
| justify-content: center; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .title { | ||
| text-align: center; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .body { | ||
| text-align: center; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .warningBox { | ||
| display: flex; | ||
| align-items: flex-start; | ||
| gap: 8px; | ||
| width: 100%; | ||
| padding: 12px; | ||
| border-radius: 12px; | ||
| background: #fef0c7; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| .warningText { | ||
| flex: 1; | ||
| color: #dc6803; | ||
| font-family: Inter, sans-serif; | ||
| font-size: var(--font-size-sm); | ||
| font-weight: var(--font-weight-medium); | ||
| line-height: 20px; | ||
| text-align: center; | ||
| } | ||
|
|
||
| .footer { | ||
| display: flex; | ||
| width: 100%; | ||
| padding: 12px 24px 16px; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| .footerButton { | ||
| flex: 1; | ||
| } |
110 changes: 110 additions & 0 deletions
110
apps/customer_dashboard/src/components/service_shutdown_modal/service_shutdown_modal.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,110 @@ | ||
| "use client"; | ||
|
|
||
| import { Button } from "@oko-wallet/oko-common-ui/button"; | ||
| import { Card } from "@oko-wallet/oko-common-ui/card"; | ||
| import { OkoLogoIcon } from "@oko-wallet/oko-common-ui/icons/oko_logo_icon"; | ||
| import { XCloseIcon } from "@oko-wallet/oko-common-ui/icons/x_close"; | ||
| import { Spacing } from "@oko-wallet/oko-common-ui/spacing"; | ||
| import { Typography } from "@oko-wallet/oko-common-ui/typography"; | ||
| import { type FC, useEffect, useState } from "react"; | ||
|
|
||
| import styles from "./service_shutdown_modal.module.scss"; | ||
|
|
||
| const SESSION_KEY = "oko_ct_shutdown_noticed"; | ||
|
|
||
| export const ServiceShutdownModal: FC = () => { | ||
| const [isOpen, setIsOpen] = useState(false); | ||
|
|
||
| useEffect(() => { | ||
| if (!sessionStorage.getItem(SESSION_KEY)) { | ||
| setIsOpen(true); | ||
| sessionStorage.setItem(SESSION_KEY, "1"); | ||
| } | ||
| }, []); | ||
|
|
||
| const onClose = () => setIsOpen(false); | ||
|
|
||
| if (!isOpen) { | ||
| return null; | ||
| } | ||
|
|
||
| return ( | ||
| <div className={styles.modalBackground} onClick={onClose}> | ||
| <div | ||
| className={styles.modal} | ||
| role="dialog" | ||
| aria-modal="true" | ||
| aria-labelledby="ct-shutdown-title" | ||
| onClick={(e) => e.stopPropagation()} | ||
| > | ||
| <Card className={styles.modalCard} variant="elevated" padding="none"> | ||
| <div className={styles.header}> | ||
| <button | ||
| type="button" | ||
| className={styles.closeButton} | ||
| onClick={onClose} | ||
| aria-label="Close modal" | ||
| > | ||
| <XCloseIcon color="var(--fg-quaternary)" size={20} /> | ||
| </button> | ||
| </div> | ||
|
|
||
| <div className={styles.content}> | ||
| <div className={styles.logoWrapper}> | ||
| <OkoLogoIcon width={72} height={28} /> | ||
| </div> | ||
|
|
||
| <Spacing height={12} /> | ||
|
|
||
| <div className={styles.title} id="ct-shutdown-title"> | ||
| <Typography size="lg" weight="semibold" color="secondary"> | ||
| Service Shutdown Notice | ||
| </Typography> | ||
| </div> | ||
|
|
||
| <Spacing height={28} /> | ||
|
|
||
| <div className={styles.body}> | ||
| <Typography size="sm" weight="medium" color="primary"> | ||
| Oko is shutting down its service on June 1, 2026. | ||
| </Typography> | ||
| </div> | ||
|
|
||
| <Spacing height={8} /> | ||
|
|
||
| <div className={styles.warningBox}> | ||
| <p className={styles.warningText}> | ||
| Please remove Oko SDK and API integrations from your dapp before | ||
| the shutdown date. | ||
| </p> | ||
| </div> | ||
|
|
||
| <Spacing height={8} /> | ||
|
|
||
| <div className={styles.body}> | ||
| <Typography size="sm" weight="medium" color="primary"> | ||
| Also, please inform your users to export their private keys and | ||
| migrate to another wallet. After June 1, Oko API and SDK will no | ||
| longer be available. | ||
| </Typography> | ||
| </div> | ||
|
|
||
| <Spacing height={8} /> | ||
| </div> | ||
|
|
||
| <div className={styles.footer}> | ||
| <Button | ||
| variant="secondary" | ||
| size="md" | ||
| fullWidth | ||
| onClick={onClose} | ||
| className={styles.footerButton} | ||
| > | ||
| Close | ||
| </Button> | ||
| </div> | ||
| </Card> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| $width_360: 360px; | ||
| $tablet_min_width: 361px; | ||
| $desktop_min_width: 769px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.