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

Improve ux/#136 #159

Merged
merged 5 commits into from
Dec 3, 2024
Merged

Improve ux/#136 #159

merged 5 commits into from
Dec 3, 2024

Conversation

seonghunYang
Copy link
Collaborator

@seonghunYang seonghunYang commented Nov 30, 2024

๐Ÿ“Œ ์ž‘์—… ๋‚ด์šฉ

๊ฐœ์„ ์ „:
แ„€แ…ขแ„‰แ…ฅแ†ซแ„Œแ…ฅแ†ซ

๊ฐœ์„ ํ›„:
แ„€แ…ขแ„‰แ…ฅแ†ซ-แ„’แ…ฎ

๊ตฌํ˜„ ๋‚ด์šฉ ๋ฐ ์ž‘์—… ํ–ˆ๋˜ ๋‚ด์—ญ

  • useFunnel๋กœ ์ธํ•œ ํ™”๋ฉด ๊นœ๋ฐ•์ž„ ํ˜„์ƒ ์ˆ˜์ •
  • useFunnel URL ๊ต์ฒด ์‹œ ๋ฐœ์ƒํ•˜๋Š” Funnel ์ปดํฌ๋„ŒํŠธ ๋ฆฌ๋ Œ๋”๋ง ๋ฌธ์ œ ํ•ด๊ฒฐ
  • Form Input ์ปดํฌ๋„ŒํŠธ์— ์ž๋™ ํฌ์ปค์Šค(autofocus) ๊ธฐ๋Šฅ ์ถ”๊ฐ€
  • ํผ ํŽ˜์ด์ง€(์•„์ด๋”” ์ฐพ๊ธฐ, ๋น„๋ฐ€๋ฒˆํ˜ธ ์ฐพ๊ธฐ, ๋กœ๊ทธ์ธ, ํšŒ์›๊ฐ€์ž…)์— ์ž๋™ ํฌ์ปค์Šค ์ ์šฉ

๐Ÿค” ๊ณ ๋ฏผ ํ–ˆ๋˜ ๋ถ€๋ถ„

  • ์‚ฌ์šฉ์ž๊ฐ€ ํผ์ด ์žˆ๋Š” ํŽ˜์ด์ง€์— ์ ‘๊ทผํ•˜๊ณ  ์กฐ์ž‘ํ•˜๋Š” ๊ฒฝํ—˜์„ ํ–ฅ์ƒ์‹œํ‚ค๊ธฐ ์œ„ํ•œ ๊ฐœ์„  ์ž‘์—…์„ ์ง„ํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ๊ธฐ์กด useFunnel์—์„œ๋Š” defaultStep์œผ๋กœ ์ดˆ๊ธฐ ๋ Œ๋”๋ง์„ ํ•˜์ง€ ์•Š์•„ ํ™”๋ฉด ๊นœ๋นก์ž„์ด ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด URL ์ง€์ • ์ด์ „์—๋„ defaultStep์ด ํ‘œ์‹œ๋˜๋„๋ก ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • URL ๋ณ€๊ฒฝ ์‹œ Funnel ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์žฌ๋ Œ๋”๋ง๋˜์–ด autofocus๊ฐ€ ๋‘ ๋ฒˆ ๊นœ๋นก์ด๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด FunnelRoot์™€ Funnel ์ปดํฌ๋„ŒํŠธ์— useCallback๊ณผ useMemo๋ฅผ ์ ์šฉํ•˜์—ฌ step ๋ณ€๊ฒฝ ์‹œ์—๋งŒ ๋ฆฌ๋ Œ๋”๋ง๋˜๋„๋ก ๊ฐœ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ๊ตฌ๊ธ€ ๋กœ๊ทธ์ธ์„ ์ฐธ๊ณ ํ•˜์—ฌ autofocus ์†์„ฑ์„ ์ถ”๊ฐ€ํ•จ์œผ๋กœ์จ ์‚ฌ์šฉ์ž๊ฐ€ ์ฆ‰์‹œ ํผ์„ ์กฐ์ž‘ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ–ˆ์Šต๋‹ˆ๋‹ค.

Copy link

Copy link
Member

@gahyuun gahyuun left a comment

Choose a reason for hiding this comment

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

๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค! ํ›จ์”ฌ ux๊ฐ€ ๊ฐœ์„ ๋œ๊ฒŒ ๋Š๊ปด์ง€๋„ค์š” ๐Ÿ‘

yougyung

This comment was marked as resolved.

@seonghunYang seonghunYang merged commit 61ec8fc into main Dec 3, 2024
2 of 3 checks passed
@seonghunYang seonghunYang deleted the improve-ux/#136 branch December 3, 2024 12:19
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