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

[Verify] Add 'isScam' field #1116

Merged
merged 4 commits into from
Sep 20, 2023
Merged

[Verify] Add 'isScam' field #1116

merged 4 commits into from
Sep 20, 2023

Conversation

alexander-lsvk
Copy link
Contributor

@alexander-lsvk alexander-lsvk commented Sep 19, 2023

Description

Due Dilligence

  • Breaking change
  • Requires a documentation update

@alexander-lsvk alexander-lsvk temporarily deployed to internal September 19, 2023 08:28 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal September 19, 2023 08:41 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal September 19, 2023 08:58 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal September 19, 2023 09:39 — with GitHub Actions Inactive
Copy link
Contributor

@radeknovis radeknovis left a comment

Choose a reason for hiding this comment

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

Left only minor syntax improvements. LGTM otherwise!

"revision": "04bee4ad86d74d4cb4d7101ff826d6e355301ba9",
"version": "8.9.4"
"revision": "12998398eb51e2e8ff7098163fa97d305eee6d87",
"version": "8.11.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably pin the version of this dependency so we avoid those


Text("Cannot verify")
.foregroundColor(.orange)
.font(.system(size: 14, weight: .semibold, design: .rounded))
Copy link
Contributor

Choose a reason for hiding this comment

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

You can apply these modifiers only once to the entire HStack, removing the duplication.

.padding(5)
.background(Color.red.opacity(0.15))
.cornerRadius(10)
.padding(.top, 8)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Same with these padding and cornerRadius modifiers. You can wrap the entire switch in a Group and apply them there e.g. Again just to avoid some duplication

Group { 
 switch foo {
 case .bar:
     HStack { ... }
 }
}
.padding(5)
.cornerRadius(10)
.padding(.top, 8)

.frame(maxWidth: .infinity)
.padding()
.background(Color.red.opacity(0.15))
.cornerRadius(20)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: same thing with modifiers here

@alexander-lsvk alexander-lsvk temporarily deployed to internal September 20, 2023 09:35 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal September 20, 2023 09:39 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk merged commit 8d3f817 into develop Sep 20, 2023
8 checks passed
@alexander-lsvk alexander-lsvk deleted the verify-scam-field branch September 20, 2023 10:25
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