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

Kc 2085 align search pop up usage with design #28

Merged
merged 6 commits into from
Nov 17, 2023

Conversation

JoseToitio
Copy link
Contributor

No description provided.

}
setSearch(event.target.value);
setShowTooltip(true);
setSearch(event.target.value.trim().toLowerCase());
Copy link
Contributor

Choose a reason for hiding this comment

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

need to add debounce function

@@ -18,6 +18,7 @@ const Input: React.FC<InputGlobal> = ({
}) => {
const [search, setSearch] = useState('');
const [error, setError] = useState(false);
const [linkPage, setLinkPage] = useState('');
Copy link
Contributor

Choose a reason for hiding this comment

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

is there another user action that needs to be monitored besides the text input or mouse focus in/out of the pop up? if not, just create a variable that stores the data you want to save

src/components/InputGlobal/index.tsx Outdated Show resolved Hide resolved
src/components/PrePageTooltip/RowSections/index.tsx Outdated Show resolved Hide resolved
src/components/InputGlobal/index.tsx Outdated Show resolved Hide resolved
setShowTooltip(true);
setSearch(event.target.value);
Copy link
Contributor

Choose a reason for hiding this comment

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

this does not solve excessive user requests, must add debounce fn

Copy link
Contributor

@lucasportella lucasportella left a comment

Choose a reason for hiding this comment

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

must discuss problems in PR time

@@ -49,14 +49,18 @@ const getRedirectButton = (
</div>
);

export const setSessionStorage = (link: string): void => {
Copy link
Contributor

Choose a reason for hiding this comment

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

i'm not very sure if this is really necessary. Let's discuss this in PR time

@Doug-Fernando Doug-Fernando merged commit 6d508aa into develop Nov 17, 2023
3 checks passed
@Doug-Fernando Doug-Fernando deleted the KC-2085-align-search-pop-up-usage-with-design branch November 17, 2023 17:52
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