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

Replacing About with a Help dropdown that has contact and documentati… #1213

Merged
merged 5 commits into from
Oct 14, 2024

Conversation

sccalabr
Copy link
Contributor

@sccalabr sccalabr commented Oct 4, 2024

Creating a dropdown that will replace about with email and documentation. Fixes #1204

Copy link

vercel bot commented Oct 4, 2024

@sccalabr is attempting to deploy a commit to the Arc53 Team on Vercel.

A member of the Team first needs to authorize it.

@sccalabr
Copy link
Contributor Author

sccalabr commented Oct 4, 2024

image
image

Let me know if this is what you had in mind

Copy link

vercel bot commented Oct 4, 2024

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

Name Status Preview Comments Updated (UTC)
docs-gpt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2024 4:38pm

@dartpain
Copy link
Contributor

dartpain commented Oct 4, 2024

Thank you so much I have a few comments:

  1. About button should be replace with help, not a new button above
    CleanShot 2024-10-04 at 10 25 18@2x
    Also the icon is good.
  2. Please re-use existing dropdown component

@sccalabr
Copy link
Contributor Author

sccalabr commented Oct 5, 2024

image

@dartpain
Copy link
Contributor

dartpain commented Oct 5, 2024

Thank you so much!

There seems to be an error

src/Navigation.tsx(336,16): error TS2741: Property 'selectedValue' is missing in type '{ placeholder: string; contentSize: string; options: { label: string; value: string; }[]; onSelect: (selectedOption: any) => void; }' but required in type '{ options: string[] | { name: string; id: string; type: string; }[] | { label: string; value: string; }[] | { value: number; description: string; }[]; selectedValue: string | { label: string; value: string; } | { ...; } | { ...; } | null; ... 10 more ...; contentSize?: string | undefined; }'.
src/Navigation.tsx(340,28): error TS7006: Parameter 'selectedOption' implicitly has an 'any' type.
src/components/Dropdown.tsx(101,40): error TS2322: Type 'string | { label: string; value: string; } | { value: number; description: string; } | { name: string; id: string; type: string; }' is not assignable to type 'object'.
  Type 'string' is not assignable to type 'object'.
src/components/Dropdown.tsx(109,55): error TS2339: Property 'top' does not exist on type '{}'.
Error: Command "npm run build" exited with 2

Try to use npm run build before pushing

@sccalabr
Copy link
Contributor Author

sccalabr commented Oct 5, 2024

Thank you so much!

There seems to be an error

src/Navigation.tsx(336,16): error TS2741: Property 'selectedValue' is missing in type '{ placeholder: string; contentSize: string; options: { label: string; value: string; }[]; onSelect: (selectedOption: any) => void; }' but required in type '{ options: string[] | { name: string; id: string; type: string; }[] | { label: string; value: string; }[] | { value: number; description: string; }[]; selectedValue: string | { label: string; value: string; } | { ...; } | { ...; } | null; ... 10 more ...; contentSize?: string | undefined; }'.
src/Navigation.tsx(340,28): error TS7006: Parameter 'selectedOption' implicitly has an 'any' type.
src/components/Dropdown.tsx(101,40): error TS2322: Type 'string | { label: string; value: string; } | { value: number; description: string; } | { name: string; id: string; type: string; }' is not assignable to type 'object'.
  Type 'string' is not assignable to type 'object'.
src/components/Dropdown.tsx(109,55): error TS2339: Property 'top' does not exist on type '{}'.
Error: Command "npm run build" exited with 2

Try to use npm run build before pushing

When I try running that locally I get

npm run
build
npm ERR! Missing script: "build"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run

@dartpain
Copy link
Contributor

dartpain commented Oct 5, 2024

Which directory are you running it from?
Make sure its frontend/
Also make sure you install npm dependencies there

@sccalabr
Copy link
Contributor Author

synced

@ManishMadan2882
Copy link
Collaborator

@sccalabr Have few points:

  • Try to make the hover effect cover the whole block as in the design
    image
  • The Help section needs little bit vertical padding (py-1) to make it consistent.
    image

@sccalabr
Copy link
Contributor Author

image
image
Like this?
/

Copy link
Collaborator

@ManishMadan2882 ManishMadan2882 left a comment

Choose a reason for hiding this comment

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

Thanks for the update @sccalabr .
Could you please run npm run lint-fix and push once.
Looks good but there are certain linting errors.

@sccalabr
Copy link
Contributor Author

sccalabr commented Oct 11, 2024

I dont see any linting errors locally and it says my branch is upto date. Manually fixed something I saw though

Copy link
Collaborator

@ManishMadan2882 ManishMadan2882 left a comment

Choose a reason for hiding this comment

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

LGTM @sccalabr
Thanks!

@dartpain
Copy link
Contributor

Hey @sccalabr as per design that section should look like this
CleanShot 2024-10-12 at 16 38 58@2x
Please check out our figma
https://www.figma.com/design/OXLtrl1EAy885to6S69554/DocsGPT?node-id=867-534&node-type=frame&t=LIBlsvZCmEkEH3xn-0
We are almost there, I think we need to change positioning a little and inceease height to match other buttons

@sccalabr
Copy link
Contributor Author

sccalabr commented Oct 12, 2024

What should the values be for the positioning and heights? It looks pretty much the same to me

Copy link
Collaborator

@ManishMadan2882 ManishMadan2882 left a comment

Choose a reason for hiding this comment

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

Thanks for the update @sccalabr !

@sccalabr
Copy link
Contributor Author

Is there anything else I need to do?

@dartpain dartpain merged commit 44405b2 into arc53:main Oct 14, 2024
6 checks passed
@sccalabr
Copy link
Contributor Author

@dartpain Is there anything I need to do to get the holopin or will that come at the end of the month?

@dartpain
Copy link
Contributor

@holopin-bot @sccalabr Thank you!

Copy link

holopin-bot bot commented Oct 21, 2024

Congratulations @sccalabr, the maintainer of this repository has issued you a badge! Here it is: https://holopin.io/claim/cm2jeo0ph04120clawxfvy0a0

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants