8000 Issue/304 by yu23ki14 · Pull Request #356 · hackdays-io/toban · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Issue/304 #356

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

Merged
merged 6 commits into from
Apr 24, 2025
Merged

Issue/304 #356

merged 6 commits into from
Apr 24, 2025

Conversation

yu23ki14
Copy link
Member

This pull request introduces several new components and features to enhance the AssistCredit functionality in the frontend application. The changes include the addition of new UI components for selecting amounts, confirming sends, and displaying user lists, as well as updates to styles and animations. Below is a summary of the most important changes grouped by theme:

New Components for AssistCredit Flow:

  • AmountSelector Component: Added a new component for selecting the amount to send, with a slider and input field for customization. It includes emoji visualization based on the amount selected. ([pkgs/frontend/app/components/assistcredit/AmountSelector.tsxR1-R156](https://github.com/hackdays-io/toban/pull/356/files#diff-2ef635f56e770f720ea34ac26a1143377f60886ed50a03f404c6b58cc1dc654aR1-R156))
  • SendConfirmation Component: Introduced a swipe-based confirmation component for sending AssistCredits, complete with a custom loading animation and user feedback. ([pkgs/frontend/app/components/assistcredit/SendConfirmation.tsxR1-R269](https://github.com/hackdays-io/toban/pull/356/files#diff-17930787a42bdbc672189404a2fb6b9690ff772d765808fa36ff46cc4058961aR1-R269))
  • UserList Component: Implemented a searchable user list for selecting recipients, displaying user avatars and names. ([pkgs/frontend/app/components/assistcredit/UserList.tsxR1-R54](https://github.com/hackdays-io/toban/pull/356/files#diff-563eee7a70daa1438e9b52f0f8ec3befd6f7995697f718843dc697cdce9cc408R1-R54))

Emoji Support:

  • emojiConstants.ts: Defined a mapping of amounts to emojis for visual representation of the selected amount in the AssistCredit flow. ([pkgs/frontend/app/components/assistcredit/emojiConstants.tsR1-R13](https://github.com/hackdays-io/toban/pull/356/files#diff-cfd9fba564dc61ca6c554949d6883fccbb9914f92648023463c0226dbf1d2972R1-R13))

Styling and Animations:

  • Keyframe Animations: Added a blink animation to enhance the visual feedback during the send process. ([pkgs/frontend/app/components/chakra-provider.tsxR153-R165](https://github.com/hackdays-io/toban/pull/356/files#diff-99f082ebcb06217574538b2adc14e1f14cb28adf2071663844b9c5c5b23826b2R153-R165))
  • Swiper Styles: Included Swiper.js styles for the swipe-based confirmation component. ([[1]](https://github.com/hackdays-io/toban/pull/356/files#diff-4519b23d11b0de316d82ffef587f88fd84af176a76b80f40c18e998206938e05R21), [[2]](https://github.com/hackdays-io/toban/pull/356/files#diff-4519b23d11b0de316d82ffef587f88fd84af176a76b80f40c18e998206938e05L58-R63))

Refactoring and Integration:

  • AssistCredit Flow Refactor: Refactored the AssistCreditSend route to integrate the new components (AmountSelector, SendConfirmation, UserList) and streamline the UI flow for selecting users, amounts, and confirming sends. ([[1]](https://github.com/hackdays-io/toban/pull/356/files#diff-c653fe8e992404d9cff93a3d7bcebee47e6adcdf59b383ea689bc528cf6a471bL25-R29), [[2]](https://github.com/hackdays-io/toban/pull/356/files#diff-c653fe8e992404d9cff93a3d7bcebee47e6adcdf59b383ea689bc528cf6a471bR95-R118), [[3]](https://github.com/hackdays-io/toban/pull/356/files#diff-c653fe8e992404d9cff93a3d7bcebee47e6adcdf59b383ea689bc528cf6a471bL137-R139))

These changes significantly improve the user experience for sending AssistCredits by making the process more interactive, visually appealing, and user-friendly.

@yu23ki14 yu23ki14 merged commit 57d5a13 into main Apr 24, 2025
2 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.

2 participants
0