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: move nostr key to accounts #1964

Merged
merged 32 commits into from
Feb 1, 2023
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
338e003
feat: add nostr key field in account
im-adithya Jan 11, 2023
987f0ef
feat: change nostr methods to use key from account
im-adithya Jan 11, 2023
aff9889
feat: add migration for users with global nostr key
im-adithya Jan 11, 2023
a9896f7
feat: add get account by id action
im-adithya Jan 12, 2023
f0b7c7b
feat: add account screen
im-adithya Jan 12, 2023
bd1199a
chore: remove nostr from settings
im-adithya Jan 12, 2023
ca15dea
chore: change getbyid and nostr
im-adithya Jan 13, 2023
9612732
fix: typing changes
im-adithya Jan 16, 2023
6293e8a
fix: unit test
im-adithya Jan 16, 2023
3d5a6a2
fix: add i18n strings
im-adithya Jan 16, 2023
689eb47
fix: unit tests
im-adithya Jan 16, 2023
0b3283b
Merge branch 'master' into task-nostr-account
im-adithya Jan 19, 2023
0ee4e90
feat: improve nostr section
im-adithya Jan 20, 2023
ed4973b
Update src/extension/background-script/actions/accounts/select.ts
bumi Jan 29, 2023
2eab3c5
Merge branch 'master' into task-nostr-account
bumi Jan 29, 2023
a84a039
chore: add accounts to user menu
bumi Jan 29, 2023
3f3ffb3
feat(nostr): display pubkey as npub
bumi Jan 29, 2023
ba2586d
feat(Account): unify headline formatting
bumi Jan 29, 2023
579b3bd
chore: add test for get account action
im-adithya Jan 23, 2023
45f055a
feat: use avvvatars for account screen
im-adithya Jan 30, 2023
f2ae9d8
chore: align screens
im-adithya Jan 31, 2023
76482cc
chore: text
bumi Jan 31, 2023
2efc9a7
chore: modify ui in show account screen
im-adithya Jan 31, 2023
f9a8665
chore: use useeffect hook on private key change
im-adithya Jan 31, 2023
33f21d6
chore: keep old setting private key as backup during the migration
bumi Jan 31, 2023
bd9604e
chore: add test for nostr
im-adithya Jan 31, 2023
188a35f
chore: add copy icon to button
im-adithya Feb 1, 2023
a0a15cc
fix: use own private key
im-adithya Feb 1, 2023
e46bb98
fix: private key issues and styling
im-adithya Feb 1, 2023
349fd7a
fix: use form element
im-adithya Feb 1, 2023
a6203fc
fix: final changes
im-adithya Feb 1, 2023
64a9851
fix: add type guard
im-adithya Feb 1, 2023
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
11 changes: 10 additions & 1 deletion src/app/components/UserMenu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
AddressBookIcon,
GearIcon,
GlobeIcon,
LockIcon,
Expand Down Expand Up @@ -80,6 +81,7 @@ export default function UserMenu() {
<ReceiveIcon className="w-6 h-6 -ml-0.5 mr-2 text-gray-700 dark:text-neutral-300" />
{tCommon("actions.receive")}
</Menu.ItemButton>
<Menu.Divider />
<Menu.ItemButton
onClick={() => {
openOptions("settings");
Expand All @@ -88,7 +90,14 @@ export default function UserMenu() {
<GearIcon className="h-5 w-5 mr-2 text-gray-700 dark:text-neutral-300" />
{tCommon("settings")}
</Menu.ItemButton>
<Menu.Divider />
<Menu.ItemButton
onClick={() => {
openOptions("accounts");
}}
>
<AddressBookIcon className="h-5 w-5 mr-2 text-gray-700 dark:text-neutral-300" />
{tCommon("accounts")}
</Menu.ItemButton>
<Menu.ItemButton
onClick={() => {
utils.openUrl("https://feedback.getalby.com");
Expand Down
6 changes: 4 additions & 2 deletions src/app/router/Options/Options.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import Container from "@components/Container";
import Navbar from "@components/Navbar";
import Accounts from "@screens/Accounts";
import ShowAccount from "@screens/Accounts/Show";
import ConfirmPayment from "@screens/ConfirmPayment";
import Keysend from "@screens/Keysend";
import LNURLAuth from "@screens/LNURLAuth";
import LNURLChannel from "@screens/LNURLChannel";
import LNURLPay from "@screens/LNURLPay";
import LNURLWithdraw from "@screens/LNURLWithdraw";
import TestConnection from "@screens/Options/TestConnection";
import Publisher from "@screens/Publisher";
import Publishers from "@screens/Publishers";
import ShowPublisher from "@screens/Publishers/Show";
import Receive from "@screens/Receive";
import Send from "@screens/Send";
import Settings from "@screens/Settings";
Expand Down Expand Up @@ -46,7 +47,7 @@ function Options() {
<Route index element={<Discover />} />
</Route>
<Route path="publishers">
<Route path=":id" element={<Publisher />} />
<Route path=":id" element={<ShowPublisher />} />
<Route index element={<Publishers />} />
</Route>
<Route path="send" element={<Send />} />
Expand All @@ -59,6 +60,7 @@ function Options() {
<Route path="lnurlAuth" element={<LNURLAuth />} />
<Route path="settings" element={<Settings />} />
<Route path="accounts">
<Route path=":id" element={<ShowAccount />} />
<Route
path="new"
element={
Expand Down
Loading