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: use slashed zero and sensitive #708

Merged
merged 1 commit into from
Oct 8, 2024
Merged

chore: use slashed zero and sensitive #708

merged 1 commit into from
Oct 8, 2024

Conversation

im-adithya
Copy link
Member

Adds slashed-zeros everywhere we use amounts and sensitive where we reveal balances (onchain and lightning) and invoice amounts (i.e. only in transactions list)

@@ -33,7 +33,7 @@ function BalanceCard({
<BalanceCardIcon className="h-4 w-4 text-muted-foreground" />
</CardHeader>
<CardContent>
<div className="text-2xl font-bold balance sensitive">
<div className="text-2xl font-bold balance sensitive slashed-zero">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is sensitive required? we added posthog only temporarily for initial testing. It's already been removed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, so then should I remove sensitive from other places too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bumi do you think we still need this classname?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does that hurt?
tailwind likes classes. and actually that one is the most descriptive one of them :)

https://imgflip.com/i/94m5ma

@@ -222,7 +222,7 @@ function AppInternal({ app, refetchApp, capabilities }: AppInternalProps) {
<CardHeader>
<CardTitle>Info</CardTitle>
</CardHeader>
<CardContent>
<CardContent className="slashed-zero">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you be more precise where you add it? this adds the classname to all child elements

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted the Dates and Pubkey etc to also have a slashed zero, so I applied it to the parent like we did in the DialogTrigger in TransactionItem

<DialogContent className="slashed-zero">

Copy link
Contributor

@rolznz rolznz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@im-adithya im-adithya merged commit 622a5e8 into master Oct 8, 2024
9 checks passed
@im-adithya im-adithya deleted the task-slashed branch October 8, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants