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: connect modal #3347

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

feat: connect modal #3347

wants to merge 11 commits into from

Conversation

magiziz
Copy link
Contributor

@magiziz magiziz commented Nov 27, 2024

Description

New AppKit connect modal

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-1532

Showcase (Optional)

Screenshot 2024-11-27 at 18 06 13 Screenshot 2024-11-27 at 18 05 35

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

Copy link

changeset-bot bot commented Nov 27, 2024

⚠️ No Changeset found

Latest commit: a482cbb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Nov 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
appkit-gallery-new ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 10:03am
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 10:03am
appkit-laboratory-new ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 10:03am
appkit-vue-solana ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 10:03am
appkit-wagmi-cdn-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 10:03am
vue-wagmi-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 10:03am

Copy link
Contributor

github-actions bot commented Nov 27, 2024

Coverage Report for Coverage

Status Category Percentage Covered / Total
🔵 Lines 401.54999999999995% 5347 / 24263
🔵 Statements 401.54999999999995% 5347 / 24263
🔵 Functions 413.27000000000004% 408 / 1481
🔵 Branches 560.5900000000001% 812 / 1808
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/ui-new/index.ts 0% 0% 0% 0%
packages/ui-new/src/assets/svg/apple.ts 0% 0% 0% 0%
packages/ui-new/src/assets/svg/caret-right.ts 0% 0% 0% 0%
packages/ui-new/src/assets/svg/chevron-right.ts 0% 0% 0% 0%
packages/ui-new/src/assets/svg/close.ts 0% 0% 0% 0%
packages/ui-new/src/assets/svg/envelope-simple.ts 0% 0% 0% 0%
packages/ui-new/src/assets/svg/more.ts 0% 0% 0% 0%
packages/ui-new/src/assets/svg/qr-code.ts 0% 0% 0% 0%
packages/ui-new/src/assets/svg/question.ts 0% 0% 0% 0%
packages/ui-new/src/assets/svg/search.ts 0% 0% 0% 0%
packages/ui-new/src/assets/svg/wallet.ts 0% 0% 0% 0%
packages/ui-new/src/assets/svg/x.ts 0% 0% 0% 0%
packages/ui-new/src/components/wui-card/styles.ts 0% 0% 0% 0%
packages/ui-new/src/components/wui-icon/index.ts 0% 0% 0% 0%
packages/ui-new/src/components/wui-icon/styles.ts 0% 0% 0% 0%
packages/ui-new/src/components/wui-image/styles.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-email-input/index.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-icon-box/index.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-icon-box/styles.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-input-text/styles.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-link/index.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-link/styles.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-list-select-wallet/index.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-list-select-wallet/styles.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-logo/index.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-powered-by/index.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-powered-by/logo.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-powered-by/styles.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-social-button/index.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-social-button/styles.ts 0% 0% 0% 0%
packages/ui-new/src/composites/wui-tag/styles.ts 0% 0% 0% 0%
packages/ui-new/src/utils/JSXTypeUtil.ts 100% 100% 100% 100%
packages/ui-new/src/utils/TypeUtil.ts 0% 100% 100% 0%
packages/ui-new/src/utils/UiHelperUtil.ts 27.81% 66.66% 15.38% 27.81%
Generated in workflow #7680 for commit a482cbb by the Vitest Coverage Report Action

@@ -13,7 +13,7 @@ export default css`
bottom: 0;
pointer-events: none;
opacity: 0;
background-color: var(--wui-cover);
background-color: rgba(0, 0, 0, 0.8);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't have a variable for overlay color. Will leave it like this for now.


return {
Connect: `Connect ${isEmail ? 'Email' : ''} Wallet`,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since some of the views doesn't have a header, we can ignore those and build custom header on the view component level.

Comment on lines -44 to -46
Convert: 'Convert',
ConvertSelectToken: 'Select token',
ConvertPreview: 'Preview convert',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These didn't exist so removed them as well

Comment on lines -52 to -56
public override firstUpdated() {
const connectEl = this.shadowRoot?.querySelector('.connect')
// Use requestAnimationFrame to access scroll properties before the next repaint
requestAnimationFrame(this.handleConnectListScroll.bind(this))
connectEl?.addEventListener('scroll', this.handleConnectListScroll.bind(this))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the gradient scroll effect for now. I'll create a separate component for that 🙏

Comment on lines +177 to +183
// -- Constants ------------------------------------------ //
export const ICON_COLOR = {
default: vars.tokens.theme.iconDefault,
accentPrimary: vars.tokens.core.iconAccentPrimary,
inverse: vars.tokens.theme.iconInverse
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Introduced icon color options for <wui-icon> component

Comment on lines -14 to -15
object-fit: cover;
object-position: center center;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed these since they caused wallet images to be cropped

Copy link

linear bot commented Nov 27, 2024

APKT-1532 Login

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.

1 participant