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

编辑评论 UI & 番剧评论 #634

Merged
merged 91 commits into from
Aug 14, 2024
Merged

编辑评论 UI & 番剧评论 #634

merged 91 commits into from
Aug 14, 2024

Conversation

StageGuard
Copy link
Member

@StageGuard StageGuard commented Jul 24, 2024

在视频中展示了所有已经做好的功能

S40724-23253756-1.mp4

未完成的功能:

  • BGM sticker 选择面板
  • 发送评论到服务器
  • 在 EpisodeViewModel 中对应的 state

@StageGuard StageGuard added t: feature N 一般优先级 s: comment 子系统: 评论列表 labels Jul 24, 2024
@NeKoOuO

This comment has been minimized.

@Him188 Him188 added this to the 3.6.0 milestone Jul 24, 2024
Copy link
Member

@Him188 Him188 left a comment

Choose a reason for hiding this comment

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

我比较关注交互最小大小 (48dp) 问题, 直接在这里讨论吧, 我就不在每一行上面发一个 review 了.

我个人是比较赞成这个交互大小限制的. 哔哩哔哩的按钮虽然看起来小, 但它实际上有隐藏的交互高度 (空白区域是可以点击的), 所以它评论的赞也不是那么难点击 (虽然还是太小)

如果不是非常有必要, 我不赞成调小交互体积.

编辑评论的 actions 用默认 48.dp 高度如果会很丑的话, 能不能通过增大编辑框大小 (which 实际上是你刻意调小的), 来解决?


展示的评论里的这一行, 改成不要有 spacedBy, 用 IconButton 默认大小的情况下, 只把里面的 icon 变小来达到视觉上变小的效果, 会不会更好?

image

# Conflicts:
#	app/shared/src/androidMain/kotlin/ui/subject/episode/comments/CommentColumn.android.kt
#	app/shared/src/commonMain/kotlin/ui/subject/components/comment/Comment.kt
@Him188
Copy link
Member

Him188 commented Jul 28, 2024

这个分支 luckily 居然没有任何一行 conflict

@StageGuard
Copy link
Member Author

StageGuard commented Jul 30, 2024

现在还有点问题:

  • FlowRow horizontal arrangement 能不能 SpaceEvenly 和 Start 一起用
  • 编辑框的光标向上偏移了一个 statusBar 的高度,可能和 Popup 的 popupPositionProvider 有关
  • 编辑框长按没有复制粘贴那个操作栏

@Him188
Copy link
Member

Him188 commented Jul 30, 2024

  • FlowRow horizontal arrangement 能不能 SpaceEvenly 和 Start 一起用

不能,这逻辑都冲突了

@StageGuard
Copy link
Member Author

  • FlowRow horizontal arrangement 能不能 SpaceEvenly 和 Start 一起用

不能

那就写自定义layout了

@Him188
Copy link
Member

Him188 commented Aug 13, 2024

18 conversations must be resolved before merging.

@StageGuard StageGuard requested a review from Him188 August 14, 2024 05:08
Copy link
Member

@Him188 Him188 left a comment

Choose a reason for hiding this comment

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

有一些后续需要解决的问题 (不要在这个 PR 解决):

  • 仅在 debug 模式显示发送评论和允许点击 (一个 commit, 后面好 revert)
  • 提交 reaction 时, 没有显示进度, 没有处理错误
  • 发评论有没有处理错误?
  • 游客模式需要引导登录

@StageGuard StageGuard enabled auto-merge (squash) August 14, 2024 08:42
@StageGuard StageGuard merged commit dee0368 into master Aug 14, 2024
8 checks passed
@StageGuard StageGuard deleted the sg/edit-comment branch August 14, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M 重要优先级 s: comment 子系统: 评论列表
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants