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

Questionmark tooltip #325

Merged
merged 7 commits into from
Aug 15, 2023
Merged

Questionmark tooltip #325

merged 7 commits into from
Aug 15, 2023

Conversation

seliayeu
Copy link
Contributor

@seliayeu seliayeu commented Aug 3, 2023

adds the tooltip. (not a questionmark but an i icon to go along with what we already have in the core instance creation menu)
only added it to one place so far though so if we want it anywhere else let me know and i'll add that to the commit

@seliayeu seliayeu linked an issue Aug 3, 2023 that may be closed by this pull request
@netlify
Copy link

netlify bot commented Aug 3, 2023

Deploy Preview for lodestone-dashboard ready!

Name Link
🔨 Latest commit c2fc7df
🔍 Latest deploy log https://app.netlify.com/sites/lodestone-dashboard/deploys/64d80f6f22612a00089838b4
😎 Deploy Preview https://deploy-preview-325--lodestone-dashboard.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@seliayeu seliayeu changed the base branch from main to dev August 3, 2023 02:49
@seliayeu seliayeu requested a review from Ynng August 3, 2023 02:49
@netlify
Copy link

netlify bot commented Aug 3, 2023

Deploy Preview for lodestone-storybook ready!

Name Link
🔨 Latest commit c2fc7df
🔍 Latest deploy log https://app.netlify.com/sites/lodestone-storybook/deploys/64d80f6fb8f1bd0008906af6
😎 Deploy Preview https://deploy-preview-325--lodestone-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -15,6 +15,7 @@ import { useGlobalSettings } from 'data/GlobalSettings';
import { LodestoneContext } from 'data/LodestoneContext';
import { useCoreInfo } from 'data/SystemInfo';
import { useDocumentTitle } from 'usehooks-ts';
import TooltipButton from 'components/Tooltip';
Copy link
Member

Choose a reason for hiding this comment

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

where's this being used?

});

return (
<div>
Copy link
Member

Choose a reason for hiding this comment

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

is this outer div necessary?

import clsx from 'clsx';


const Tooltip = ({
Copy link
Member

Choose a reason for hiding this comment

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

might be best to pick a more specific name/make this component more general since we hard coded an "info" icon. Maybe something like "InfoTooltip"?

@Ynng
Copy link
Member

Ynng commented Aug 3, 2023

I think we have a few examples of using rc-tooltip for tooltip in, such as in ClipboardTextfield.tsx and GameConsole
Maybe we use that instead of react popper?

Also would be nice if we can add it to more places

@seliayeu seliayeu requested a review from Ynng August 5, 2023 17:38
package.json Outdated
Copy link
Member

Choose a reason for hiding this comment

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

let's remove these accidentally created package.json files

@@ -43,6 +44,8 @@ export default function InputBox({
isLoading: isLoadingProp = false,
id = '',
showIcons = true,
tooltip = false,
tooltipText,
Copy link
Member

Choose a reason for hiding this comment

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

might be nice to use just 1 prop for tooltip,
since we want to enable tooltip if and only if we have tooltip text

tooltip: string,
}) => {
return (
<>
Copy link
Member

Choose a reason for hiding this comment

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

would be nice to remove the unneeded fragment <> </>

@seliayeu seliayeu requested a review from Ynng August 13, 2023 00:28
Copy link
Member

@Ynng Ynng left a comment

Choose a reason for hiding this comment

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

lgtm!

@seliayeu seliayeu merged commit 374302e into dev Aug 15, 2023
9 checks passed
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.

Add question mark tool tip
2 participants