Skip to content

Commit

Permalink
fix: remove bluewallet connection screen (#2875)
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron authored Nov 21, 2023
1 parent c81313d commit 6f422fc
Show file tree
Hide file tree
Showing 29 changed files with 75 additions and 433 deletions.
140 changes: 70 additions & 70 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,75 +3,75 @@ description: Create a report to help us improve (use this to report bugs only).
title: "[BUG] <title>"
labels: [🐞 bug]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is. Include images if relevant.
placeholder: A bug happened!
validations:
required: true
- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is. Include images if relevant.
placeholder: A bug happened!
validations:
required: true
- type: textarea
attributes:
label: Screenshots [optional]
description: |
Add screenshots to help explain your problem. You can also add a video here.
- type: textarea
attributes:
label: Screenshots [optional]
description: |
Add screenshots to help explain your problem. You can also add a video here.
Tip: You can attach images or video files by clicking this area to highlight it and then dragging files in.
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the bug.
placeholder: |
1. Visit '...'
2. Click on '...'
3. Scroll to '...'
4. See error
validations:
required: true
- type: textarea
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen
validations:
required: true
- type: textarea
attributes:
label: Alby information
placeholder: |
- Alby Version: [e.g. 1.5.0]
- Alby installed through: [e.g. installed through the browser stores, installed manually]
- Wallet connected with Alby: [e.g. LND, BlueWallet LNDhub]
validations:
required: true
- type: textarea
attributes:
label: Device information
placeholder: |
- OS: [e.g. Windows]
- Browser: [e.g. chrome, safari, firefox]
- Browser Version: [e.g. 22]
validations:
required: false
- type: textarea
attributes:
label: Additional context
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
validations:
required: false
- type: dropdown
id: assign
attributes:
label: Are you working on this?
options:
- "Yes"
- "No"
Tip: You can attach images or video files by clicking this area to highlight it and then dragging files in.
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the bug.
placeholder: |
1. Visit '...'
2. Click on '...'
3. Scroll to '...'
4. See error
validations:
required: true
- type: textarea
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen
validations:
required: true
- type: textarea
attributes:
label: Alby information
placeholder: |
- Alby Version: [e.g. 1.5.0]
- Alby installed through: [e.g. installed through the browser stores, installed manually]
- Wallet connected with Alby: [e.g. LND, LNDhub, etc]
validations:
required: true
- type: textarea
attributes:
label: Device information
placeholder: |
- OS: [e.g. Windows]
- Browser: [e.g. chrome, safari, firefox]
- Browser Version: [e.g. 22]
validations:
required: false
- type: textarea
attributes:
label: Additional context
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
validations:
required: false
- type: dropdown
id: assign
attributes:
label: Are you working on this?
options:
- "Yes"
- "No"
10 changes: 1 addition & 9 deletions src/app/router/connectorRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import lightning_node from "/static/assets/icons/lightning_node.png";
import lightning_terminal from "/static/assets/icons/lightning_terminal.png";
import lnbits from "/static/assets/icons/lnbits.png";
import lnd from "/static/assets/icons/lnd.png";
import lndhubBlueWallet from "/static/assets/icons/lndhub_bluewallet.png";
import lndhubGo from "/static/assets/icons/lndhub_go.png";
import mynode from "/static/assets/icons/mynode.png";
import raspiblitz from "/static/assets/icons/raspiblitz.png";
Expand Down Expand Up @@ -139,16 +138,10 @@ const connectorMap: { [key: string]: ConnectorRoute } = {
},
"lnd-hub-go": {
path: "lnd-hub-go",
element: <ConnectLndHub lndHubType="lndhub_go" />,
element: <ConnectLndHub />,
title: i18n.t("translation:choose_connector.lndhub_go.title"),
logo: lndhubGo,
},
"lnd-hub-bluewallet": {
path: "lnd-hub-bluewallet",
element: <ConnectLndHub />,
title: i18n.t("translation:choose_connector.lndhub_bluewallet.title"),
logo: lndhubBlueWallet,
},
eclair: {
path: "eclair",
element: <ConnectEclair />,
Expand Down Expand Up @@ -259,7 +252,6 @@ function getConnectorRoutes(): ConnectorRoute[] {
connectorMap["lnbits"],
connectorMap["lnd-hub-go"],
connectorMap["kollider"],
connectorMap["lnd-hub-bluewallet"],
connectorMap["eclair"],
connectorMap["btcpay"],
connectorMap[galoyPaths.blink],
Expand Down
16 changes: 4 additions & 12 deletions src/app/screens/connectors/ConnectLndHub/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,13 @@ import { useNavigate } from "react-router-dom";
import toast from "~/app/components/Toast";
import msg from "~/common/lib/msg";

import lndhubBlueWallet from "/static/assets/icons/lndhub_bluewallet.png";
import lndhubGo from "/static/assets/icons/lndhub_go.png";
import logo from "/static/assets/icons/lndhub_go.png";

export type Props = {
lndHubType?: "lndhub_bluewallet" | "lndhub_go";
};

export default function ConnectLndHub({
lndHubType = "lndhub_bluewallet",
}: Props) {
export default function ConnectLndHub() {
const navigate = useNavigate();
const logo = lndHubType === "lndhub_bluewallet" ? lndhubBlueWallet : lndhubGo;

const { t } = useTranslation("translation", {
keyPrefix: `choose_connector.${lndHubType}`,
keyPrefix: "choose_connector.lndhub_go",
});
const [formData, setFormData] = useState({
uri: "",
Expand Down Expand Up @@ -59,7 +51,7 @@ export default function ConnectLndHub({
const password = match[2];
const url = match[3].replace(/\/$/, "");
const account = {
name: lndHubType === "lndhub_bluewallet" ? "Bluewallet" : "LNDHub",
name: "LNDHub",
config: {
login,
password,
Expand Down
14 changes: 0 additions & 14 deletions src/i18n/locales/cs/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,6 @@
"connection_failed": "Připojení se nezdařilo. Jsou vaše údaje pro LND zadány správně?"
}
},
"lndhub_bluewallet": {
"title": "Bluewallet",
"page": {
"title": "Připojit k BlueWallet",
"description": "V BlueWallet vyberte peněženku, kterou chcete připojit, otevřete ji, klikněte na ¨...¨, klikněte na Exportovat/Záloha pro zobrazení QR kódu a tento kód naskenujte svou webkamerou."
},
"uri": {
"label": "BlueWallet Export URI"
},
"errors": {
"invalid_uri": "Nevalidní BlueWallet URI",
"connection_failed": "Připojení se nezdařilo. Je vaše BlueWallet URI správné?"
}
},
"lndhub_go": {
"title": "LNDHub",
"page": {
Expand Down
14 changes: 0 additions & 14 deletions src/i18n/locales/da/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,6 @@
"placeholder": "hemmelig kode til sats-samlingen"
}
},
"lndhub_bluewallet": {
"title": "Bluewallet",
"page": {
"title": "Opet forbindelse til Bluewallet",
"description": "Vælg den wallet du vil oprette forbindelse til i Bluewallet, åbn den, klik på \"...\", klik på Export/Backup for at se QR-koden og aflæs den med dit webkamera."
},
"uri": {
"label": "BlueWallet export URI"
},
"errors": {
"invalid_uri": "Ugyldig BlueWallet URI",
"connection_failed": "Forbindelse kunne ikke oprettes. Er din BlueWallet URI korrekt?"
}
},
"lndhub_go": {
"title": "LNDHub",
"page": {
Expand Down
14 changes: 0 additions & 14 deletions src/i18n/locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,6 @@
},
"title": "LND"
},
"lndhub_bluewallet": {
"uri": {
"label": "BlueWallet Export URI"
},
"errors": {
"invalid_uri": "Ungültige BlueWallet-URI",
"connection_failed": "Verbindung nicht erfolgreich. Ist deine BlueWallet URI richtig?"
},
"title": "BlueWallet",
"page": {
"title": "Verbinden mit BlueWallet",
"description": "Wähle in der BlueWallet die Wallet, die du verbinden willst, öffne sie, klicke auf \"...\", klicke auf Export/Backup, um den QR Code anzuzeigen. Scanne ihn dann mit deiner Webcam."
}
},
"lndhub_go": {
"title": "LNDHub",
"uri": {
Expand Down
6 changes: 0 additions & 6 deletions src/i18n/locales/el/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@
}
},
"choose_connector": {
"lndhub_bluewallet": {
"title": "Bluewallet",
"page": {
"title": "Σύνδεση σε BlueWallet"
}
},
"lnbits": {
"title": "LNbits"
},
Expand Down
14 changes: 0 additions & 14 deletions src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,6 @@
"placeholder": "secret stack sats phrase"
}
},
"lndhub_bluewallet": {
"title": "Bluewallet",
"page": {
"title": "Connect to BlueWallet",
"description": "In BlueWallet, choose the wallet you want to connect, open it, click on \"...\", click on Export/Backup to display the QR code and scan it with your webcam."
},
"uri": {
"label": "BlueWallet Export URI"
},
"errors": {
"invalid_uri": "Invalid BlueWallet URI",
"connection_failed": "Connection failed. Is your BlueWallet URI correct?"
}
},
"lndhub_go": {
"title": "LNDHub",
"page": {
Expand Down
14 changes: 0 additions & 14 deletions src/i18n/locales/eo/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,6 @@
"connection_failed": ""
}
},
"lndhub_bluewallet": {
"title": "Bluewallet",
"page": {
"title": "Konekti al BlueWallet",
"description": ""
},
"uri": {
"label": ""
},
"errors": {
"invalid_uri": "",
"connection_failed": ""
}
},
"lndhub_go": {
"title": "LNDHub",
"page": {
Expand Down
14 changes: 0 additions & 14 deletions src/i18n/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,20 +171,6 @@
"connection_failed": "La conexión falló. ¿Es la URL de conexión de BTCPay correcta y accesible?"
}
},
"lndhub_bluewallet": {
"title": "Bluewallet",
"page": {
"title": "Conecta a BlueWallet",
"description": "En BlueWallet, elija el monedero que desea conectar, ábralo, haga clic en \"...\", haga clic en Exportar/Copia de seguridad para mostrar el código QR y escanéelo con su cámara web."
},
"uri": {
"label": "URI de Exportación BlueWallet"
},
"errors": {
"invalid_uri": "URI de BlueWallet inválido",
"connection_failed": "Error de conexión. ¿Es correcto el URI de BlueWallet?"
}
},
"lndhub_go": {
"title": "LNDHub",
"page": {
Expand Down
14 changes: 0 additions & 14 deletions src/i18n/locales/fa/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,6 @@
"placeholder": "عبارت مخفی انباشتن ساتوشی"
}
},
"lndhub_bluewallet": {
"title": "Bluewallet",
"page": {
"title": "اتصال به BlueWallet",
"description": "درBlueWallet کیف پولی که می خواهید به آن متصل شوید را انتخاب کرده، روی\"...\" کلیک کنید، روی Export/Backup کلیک کنید تا کدQR نمایش داده شود و با دوربین وب آن را اسکن کنید."
},
"uri": {
"label": "استخراج آدرس BlueWallet"
},
"errors": {
"invalid_uri": "آدرس بلووالت نامعتبر",
"connection_failed": "اتصال ناموفق. آدرس بلووالت شما درست است؟"
}
},
"lndhub_go": {
"title": "LNDHub",
"page": {
Expand Down
14 changes: 0 additions & 14 deletions src/i18n/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,6 @@
"placeholder": "phrase de sats de pile secrète"
}
},
"lndhub_bluewallet": {
"title": "Bluewallet",
"page": {
"title": "Connectez-vous à BlueWallet",
"description": "Dans BlueWallet, choisissez le wallet que vous souhaitez connecter, ouvrez-le, cliquez sur \"...\", cliquez sur Export/Backup pour afficher le QR code et scannez-le avec votre webcam."
},
"uri": {
"label": "URI d'exportation BlueWallet"
},
"errors": {
"invalid_uri": "URI BlueWallet non valide",
"connection_failed": "La connexion a échoué. Votre URI BlueWallet est-il correct ?"
}
},
"lndhub_go": {
"title": "LNDHub",
"page": {
Expand Down
Loading

0 comments on commit 6f422fc

Please sign in to comment.