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

chore: descriptive class names and mark sensitive content #239

Merged
merged 3 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion frontend/src/components/MnemonicInputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function MnemonicInputs({
<CardTitle>Recovery phrase to your wallet</CardTitle>
</CardHeader>
<CardContent>
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-x-8 gap-y-5 justify-center">
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-x-8 gap-y-5 justify-center backup sensitive ph-no-capture">
{words.map((word, i) => {
const isRevealed = revealedIndex === i;
const inputId = `mnemonic-word-${i}`;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/TransactionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function TransactionItem({ tx }: Props) {
>
<CredenzaTrigger
asChild
className="p-3 mb-4 hover:bg-muted/50 data-[state=selected]:bg-muted cursor-pointer rounded-md slashed-zero"
className="p-3 mb-4 hover:bg-muted/50 data-[state=selected]:bg-muted cursor-pointer rounded-md slashed-zero transaction sensitive ph-no-capture"
>
<div className="flex gap-3">
<div className="flex items-center">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/TransactionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function TransactionsList() {
}

return (
<div>
<div className="transaction-list">
{!transactions?.length ? (
<EmptyState
icon={Drum}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/connections/AppCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Props = {
export default function AppCard({ app }: Props) {
return (
<>
<Link className="h-full" to={`/apps/${app.nostrPubkey}`}>
<Link className="h-full app" to={`/apps/${app.nostrPubkey}`}>
<Card className="h-full flex flex-col group">
<CardHeader>
<CardTitle className="relative">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/screens/apps/AppCreated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default function AppCreated() {
title={`Connect to ${createAppResponse.name}`}
description="Configure wallet permissions for the app and follow instructions to finalise the connection"
/>
<div className="flex flex-col gap-3 ph-no-capture">
<div className="flex flex-col gap-3 ph-no-capture sensitive">
<div>
<p>
1. Open{" "}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/screens/apps/AppList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function AppList() {
)}

{otherApps.length > 0 && (
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4 items-stretch">
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4 items-stretch app-list">
{otherApps.map((app, index) => (
<AppCard key={index} app={app} />
))}
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/screens/channels/Channels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export default function Channels() {
</div>
</div>
)}
<div className="text-2xl font-bold">
<div className="text-2xl font-bold balance sensitive ph-no-capture">
{balances && (
<>
{new Intl.NumberFormat().format(balances.onchain.spendable)}{" "}
Expand Down Expand Up @@ -567,7 +567,7 @@ export default function Channels() {
</div>
)}
{balances && (
<div className="text-2xl font-bold">
<div className="text-2xl font-bold balance sensitive ph-no-capture">
{new Intl.NumberFormat(undefined, {}).format(
Math.floor(balances.lightning.totalSpendable / 1000)
)}{" "}
Expand All @@ -589,7 +589,7 @@ export default function Channels() {
<ArrowDown className="h-4 w-4 text-muted-foreground" />
</CardHeader>
<CardContent className="flex-grow">
<div className="text-2xl font-bold">
<div className="text-2xl font-bold balance sensitive ph-no-capture">
{balances &&
new Intl.NumberFormat().format(
Math.floor(balances.lightning.totalReceivable / 1000)
Expand Down Expand Up @@ -617,7 +617,7 @@ export default function Channels() {

{!channels ||
(channels.length > 0 && (
<Table>
<Table className="channel-list">
<TableHeader>
<TableRow>
<TableHead className="w-[80px]">Status</TableHead>
Expand Down Expand Up @@ -680,7 +680,7 @@ export default function Channels() {
}

return (
<TableRow key={channel.id}>
<TableRow key={channel.id} className="channel">
<TableCell>
{channel.active ? (
<Badge variant="positive">Online</Badge>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/screens/wallet/Send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default function Send() {
</div>
)}
{balances && (
<div className="text-2xl font-bold">
<div className="text-2xl font-bold balance sensitive ph-no-capture">
{new Intl.NumberFormat(undefined, {}).format(
Math.floor(balances.lightning.totalSpendable / 1000)
)}{" "}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/screens/wallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Wallet() {
<AppHeader title="Wallet" description="" />
<BreezRedeem />
<div className="flex flex-col lg:flex-row justify-between lg:items-center gap-5">
<div className="text-5xl font-semibold">
<div className="text-5xl font-semibold balance sensitive ph-no-capture">
{new Intl.NumberFormat().format(
Math.floor(balances.lightning.totalSpendable / 1000)
)}{" "}
Expand Down
Loading