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

UI components - Auth, Export, Import, and Demo #420

Merged
merged 73 commits into from
Dec 17, 2024
Merged

Conversation

moe-dev
Copy link
Contributor

@moe-dev moe-dev commented Nov 11, 2024

Summary & Motivation

How I Tested These Changes

Did you add a changeset?

If updating one of our packages, you'll likely need to add a changeset to your PR. To do so, run pnpm changeset. pnpm changeset will generate a file where you should write a human friendly message about the changes. Note how this (example) includes the package name (should be auto added by the command) along with the type of semver change (major.minor.patch) (which you should set).

These changes will be used at release time to determine what packages to publish and how to bump their version. For more context see this comment.

@moe-dev moe-dev force-pushed the moe/ui-components branch 2 times, most recently from 3ed13ee to 4706a29 Compare November 11, 2024 21:24
Copy link

codesandbox-ci bot commented Nov 11, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@moe-dev moe-dev force-pushed the moe/ui-components branch 3 times, most recently from 6ffcc27 to 8434570 Compare November 11, 2024 22:08
@moe-dev moe-dev changed the title UI components - Phase 1 Auth UI components - Auth, Export, Import, and Demo Nov 21, 2024
@moe-dev moe-dev force-pushed the moe/ui-components branch 5 times, most recently from 8d6214d to e7455df Compare December 5, 2024 01:47
Copy link
Collaborator

@andrewkmin andrewkmin left a comment

Choose a reason for hiding this comment

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

great great great progress thus far!

examples/react-components/README.md Outdated Show resolved Hide resolved
examples/react-components/README.md Outdated Show resolved Hide resolved
examples/react-components/README.md Outdated Show resolved Hide resolved
examples/react-components/README.md Outdated Show resolved Hide resolved
packages/sdk-react/src/components/auth/Apple.tsx Outdated Show resolved Hide resolved
packages/sdk-react/src/components/auth/Apple.tsx Outdated Show resolved Hide resolved
packages/sdk-react/src/components/export/Export.tsx Outdated Show resolved Hide resolved
rollup.config.base.mjs Outdated Show resolved Hide resolved
@moe-dev moe-dev marked this pull request as ready for review December 5, 2024 22:50
@moe-dev moe-dev force-pushed the moe/ui-components branch 4 times, most recently from 58e39b4 to a9b7ac0 Compare December 10, 2024 18:59
examples/react-components/.env.local.example Outdated Show resolved Hide resolved
examples/react-components/package.json Outdated Show resolved Hide resolved
examples/react-components/src/app/layout.tsx Show resolved Hide resolved
examples/react-components/src/app/page.tsx Show resolved Hide resolved
packages/sdk-react/src/components/auth/OtpVerification.tsx Outdated Show resolved Hide resolved
packages/sdk-react/src/components/auth/facebookUtils.ts Outdated Show resolved Hide resolved
packages/sdk-react/src/components/import/Import.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@andrewkmin andrewkmin left a comment

Choose a reason for hiding this comment

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

love it. appreciate the cleanup. last thing would be perhaps adding details instructions to readme?

@moe-dev moe-dev requested a review from andrewkmin December 16, 2024 21:11
packages/sdk-react/src/components/auth/constants.tsx Outdated Show resolved Hide resolved
authIframeClient: any;
onValidateSuccess: (credentialBundle: any) => Promise<void>;
onResendCode: (
type: "EMAIL" | "PHONE_NUMBER",
Copy link
Collaborator

Choose a reason for hiding this comment

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

optional: can pull in enums here for consistency

}

/**
* A provider component for dynamically applying and managing CSS custom properties (variables) as themes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

so sweet

@@ -1070,7 +1069,7 @@ export default function Dashboard() {
&times;
</div>
<OtpVerification
type={emailInput ? "otpEmail" : "otpSms"}
type={emailInput ? "OTP_TYPE_EMAIL" : "OTP_TYPE_SMS"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

were you gonna use the enums here?

Copy link
Collaborator

@andrewkmin andrewkmin left a comment

Choose a reason for hiding this comment

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

yes.

@@ -0,0 +1,30 @@
import React, { createContext, useContext, useEffect } from "react";
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should add "use client" here so devs don't need to wrap it or use "use client" in the root layout

@moe-dev moe-dev merged commit 559e400 into main Dec 17, 2024
5 checks passed
@moe-dev moe-dev deleted the moe/ui-components branch December 17, 2024 15:10
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