Commit Graph

72 Commits

Author SHA1 Message Date
cogwheel0
5a4021aaa9 refactor: enhance chat page auto-scrolling behavior
- Introduced new state variables to manage auto-scrolling functionality.
- Implemented a method to calculate the distance from the bottom of the chat.
- Improved the logic for auto-scrolling to the bottom when new messages arrive or when the user is near the bottom.
- Refactored the scroll-to-bottom logic to enhance performance and user experience.
- Ensured that the auto-scroll behavior is only triggered when appropriate, preventing unnecessary scrolls.
2025-10-01 01:38:47 +05:30
cogwheel0
37ebe46e15 refactor: optimize providers with keepAlive for improved state management
- Updated multiple providers to use `@Riverpod(keepAlive: true)` for better state retention throughout the app lifecycle.
- Enhanced `SocketConnectionStream` and `ConversationDeltaStream` with comments clarifying the purpose of public getters.
- Improved error handling in the `_ChatPageState` by ensuring proper checks for mounted state before using context.
- Added comments to clarify the rationale behind keepAlive usage in various providers, ensuring better maintainability and understanding of the codebase.
2025-09-30 23:18:06 +05:30
cogwheel0
46bd057089 refactor: enhance chat message handling and scrolling behavior
- Added `sendMessageWithContainer` function to facilitate message sending with a ProviderContainer.
- Updated `_ChatPageState` to improve scroll behavior, ensuring smoother auto-scrolling when near the bottom of the chat.
- Refactored scroll logic to simplify conditions for showing and hiding the scroll-to-bottom button.
- Adjusted the `OptimizedList` widget to correctly handle item indexing based on the reverse property, enhancing list performance and usability.
2025-09-30 21:17:11 +05:30
cogwheel0
ff6d33abdf refactor: enhance model loading and error handling in providers
- Improved handling of asynchronous states in the model loading process.
- Added debug logging for better traceability of model loading failures.
- Ensured proper checks for mounted state to prevent updates after disposal.
- Cleaned up code formatting for better readability.
- Updated the `defaultModel` provider to include more detailed logging and error handling.
2025-09-30 15:20:08 +05:30
cogwheel0
0ba48030c8 refactor: riverpod 3 2025-09-28 23:18:24 +05:30
cogwheel0
3124bccfeb refactor: more logs 2025-09-25 23:22:48 +05:30
cogwheel0
9210b2155a refactor: all logging 2025-09-25 22:36:42 +05:30
cogwheel0
0943621731 refactor: animations 2025-09-25 19:40:34 +05:30
cogwheel0
5f013b1b73 refactor: formatting 2025-09-24 12:00:49 +05:30
cogwheel0
b8c024d0b0 refactor: improvements 2025-09-24 10:52:15 +05:30
cogwheel0
8da8a78001 refactor: perf improvements 2025-09-23 11:00:25 +05:30
cogwheel0
41216ea432 refactor: optimize codebase 2025-09-23 00:58:58 +05:30
cogwheel0
462bf4cde2 refactor: migrate to riverpod 3 2025-09-21 22:31:44 +05:30
cogwheel0
8d89fd79b1 feat: model and user avatars 2025-09-20 22:03:55 +05:30
cogwheel0
093e8f3c0d refactor: tweaks 2025-09-20 18:09:22 +05:30
cogwheel0
1fc1cf9739 feat: title on the header 2025-09-19 23:35:46 +05:30
cogwheel0
c6efb53e3f refactor: safe area paddings 2025-09-19 21:29:19 +05:30
cogwheel0
e4dfb0ad09 refactor: visual tweaks 2025-09-19 21:12:15 +05:30
cogwheel0
6be8d0f5ab feat: redesign chats drawer to make it more minimal 2025-09-19 14:44:58 +05:30
cogwheel0
dea14dfdcf refactor: chat input 2025-09-18 15:01:21 +05:30
cogwheel0
ac12eca6b5 refactor: improve app start time 2025-09-16 20:10:53 +05:30
cogwheel0
f80930685c refactor: fix lints 2025-09-16 18:15:44 +05:30
cogwheel0
acda5a22a6 refactor: new chat page text 2025-09-16 16:24:45 +05:30
cogwheel0
929ecbb74b refactor: change new chat icons on ios 2025-09-16 15:57:30 +05:30
cogwheel0
7e6009d2cc refactor: text streaming 2025-09-13 10:16:58 +05:30
cogwheel0
30fc460d08 fix: keyboard close on modal opens 2025-09-08 01:15:31 +05:30
cogwheel0
c78d1448b8 feat: enter to send option and one tap to focus keyboard 2025-09-08 01:05:48 +05:30
cogwheel0
bbb1f081d1 fix: scroll to bottom appearing after send 2025-09-07 23:28:18 +05:30
cogwheel0
a850a567a1 feat: inline user message editing 2025-09-07 22:37:52 +05:30
cogwheel0
a16fb86e27 feat: enhanced sockets, tuned retries and polling fallback 2025-09-07 11:13:05 +05:30
cogwheel0
045e637196 refactor: create preseed helper 2025-09-05 11:48:43 +05:30
cogwheel0
58d5cf076b refactor: pre seed responses 2025-09-05 11:15:39 +05:30
cogwheel0
d71d18f78d feat: toggle full model name display in header 2025-09-02 22:55:54 +05:30
cogwheel0
3c082ffc9e refactor: action buttons and scroll to bottom ui/ux 2025-09-02 20:43:57 +05:30
cogwheel0
4491fa5861 refactor: image uploads 2025-09-02 19:08:23 +05:30
cogwheel0
1b65743b06 feat: task based send flow 2025-09-01 23:41:22 +05:30
cogwheel0
047a67a0c5 fix: model name inconsistencies 2025-09-01 18:49:43 +05:30
cogwheel0
86d18ee0fb refactor: enhance localizations 2025-08-28 23:46:32 +05:30
cogwheel0
b9f41e0d07 fix: mic permissions 2025-08-28 19:48:35 +05:30
cogwheel0
6427caaa5d fix: text sharing 2025-08-28 18:54:06 +05:30
cogwheel0
e265d35579 chore: remove google_fonts dependency and update typography to use system fonts 2025-08-28 10:12:59 +05:30
cogwheel0
aed135c5d4 refactor: enhance server-side search and user bubble overflow 2025-08-26 21:19:06 +05:30
cogwheel0
494427dd04 refactor: streamline title and image generation handling in chat message processing 2025-08-25 22:14:40 +05:30
cogwheel0
efefdffb04 refactor: implement intensity decay for voice input and enhance microphone button UI 2025-08-25 21:53:41 +05:30
cogwheel0
ac21ec6493 refactor: remove server audio transcription and related fallback logic, retaining only on-device speech-to-text functionality 2025-08-25 20:56:33 +05:30
cogwheel0
265c7026af refactor: improve chat input and message list layout, enhance keyboard visibility handling 2025-08-25 16:31:08 +05:30
cogwheel0
0a09372c4a refactor: enhance scroll-to-bottom button functionality and improve chat input layout 2025-08-25 16:16:58 +05:30
cogwheel0
d6f96ff5c5 refactor: enhance chat page layout and improve drawer search functionality 2025-08-25 14:31:45 +05:30
cogwheel0
eec2f7b8d7 refactor: improve drawer interaction by utilizing native drag behavior 2025-08-25 14:00:15 +05:30
cogwheel0
a930a7a466 refactor: voice input 2025-08-25 10:35:48 +05:30