-
Notifications
You must be signed in to change notification settings - Fork 49
Google Sheets design and UX improvements #469
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
Changes from all commits
3213bbf
c57f6e5
2932d61
81af5da
9d01b62
4111e03
93e0248
768be4d
7053048
1758754
9cfc379
5f76060
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <link rel="icon" type="image/svg+xml" href="/icon.svg" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Google Sheets</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.tsx"></script> | ||
| </body> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <link rel="icon" type="image/svg+xml" href="/icon.svg" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Google Sheets</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.tsx"></script> | ||
| </body> | ||
| </html> |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| import { framer } from "framer-plugin" | ||
| import { useLayoutEffect, useRef, useState } from "react" | ||
| import auth from "../auth" | ||
| import { Button } from "../components/Button" | ||
| import { GoogleLogo } from "../components/GoogleLogo" | ||
| import { Hero } from "../components/Hero" | ||
| import { getPluginContext, type PluginContext } from "../sheets" | ||
|
|
@@ -69,7 +68,7 @@ export function Authenticate({ onAuthenticated }: AuthenticationProps) { | |
| } | ||
|
|
||
| return ( | ||
| <div className="col-lg pb-[15px]"> | ||
| <main className="col-lg pb-[15px] select-none"> | ||
| <Hero /> | ||
| <ol className="list-decimal list-inside space-y-2.5 marker:text-secondary *:text-content *:leading-none *:tracking-normal py-[7px]"> | ||
| <li> | ||
|
|
@@ -82,14 +81,16 @@ export function Authenticate({ onAuthenticated }: AuthenticationProps) { | |
| <span className="pl-[10px]">Map the column fields to the CMS</span> | ||
| </li> | ||
| </ol> | ||
| <Button | ||
| variant="secondary" | ||
| onClick={login} | ||
| isLoading={isLoading} | ||
| className="w-full inline-flex gap-[8px] items-center" | ||
| > | ||
| <GoogleLogo /> <span className="relative">Sign In</span> | ||
| </Button> | ||
| </div> | ||
| {/* Don't disable button because we want to allow the user to reopen the log in page if they close it without finishing */} | ||
| <button onClick={login} className="flex flex-row gap-[8px]"> | ||
| {isLoading ? ( | ||
| <div className="framer-spinner" /> | ||
| ) : ( | ||
| <> | ||
| <GoogleLogo /> Sign In | ||
| </> | ||
| )} | ||
| </button> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Button Clicks Not Disabled During LoadingThe "Sign In" button and the field mapping form's submit button lack a Additional Locations (1)
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is intentional. If you close the Google sign in tab after it opens, it will still show as loading in the plugin, but you need to be able to open it again by clicking the same button. MapSheetFields handles this by checking
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mind adding the explanation in a code comment? That helps the future you and all of us with a bit of added context
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a comment right above the button. |
||
| </main> | ||
| ) | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.