Move credential request logic out of LoginButton
@conniecliu 已经在做这个了。
开始于 2026年9月29日。
评估
这个 Issue 还没有评估数据。
描述
LoginButton currently does more than display a button. When clicked, it builds a Google sign-in request, opens Android's credential picker, receives the credential, handles exceptions, and forwards results to the LoginViewModel, which is doing too much for a UI composable.
The current ViewModel handles the Firebase sign-in, email validation, backend login, and navigation. Responsibilities between the ViewModel and View should be reorganized:
LoginButton: accept anonClickcallback and an enabled/loading state- Factor out the business logic (credential picker, exceptions, building a request)
LoginViewModel: process credentials, validation, backend, Firebase
- 主要语言
- Kotlin
- 星标
- 2
- 派生
- 0
- 平均合并
- 18 天 4 小时
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cuappdev/uplift-android 的其他 Issue
-
Profile picture not being updated/synced after onboarding可能已有人在做 @conniecliu 于 18 天前认领。 未关闭
cuappdev/uplift-android#119 · 已指派 1 人 ·
-
难度 3/5 1-2 天 新手友好度 35/100
cuappdev/uplift-android#114 ·
-
难度 3/5 1-2 天 新手友好度 35/100
cuappdev/uplift-android#112 ·
-
难度 3/5 1-2 天 新手友好度 35/100
cuappdev/uplift-android#111 ·
-
难度 5/5 一周以上 新手友好度 20/100
cuappdev/uplift-android#110 ·
查看 cuappdev/uplift-android 的全部 Issue
相似的 Issue
-
afk-ok area:agents size:S
难度 2/5 1-3 小时 新手友好度 82/100
enorm-labs/event-junkie#3523 ·
维护者通常 1 天内回复
-
submit-adaption submit-adaption-pre
难度 1/5 1 小时以内 新手友好度 82/100
BetterAndroid/android-notification-icon-project#750 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
openbase/planetsudo.engine#107 ·
维护者通常 1 天内回复
-
native-cpu: -Wreturn-type in skainet_row_threads.c:150 (worker fn has no return)可能已有人在做 @Doomguy-BFG9000 今天认领。 未关闭good first issue size:xs skill:native
难度 1/5 1 小时以内 新手友好度 78/100
SKaiNET-developers/SKaiNET#1358 · 1 条评论 ·
维护者通常 1 天内回复
-
bug core p3
难度 2/5 1-3 小时 新手友好度 76/100
RunanywhereAI/runanywhere-sdks#1142 ·
维护者通常 1 天内回复