Repository navigation
feat: 教室查询结果可视化:当天占用色带、统计卡与卡片骨架 - #3
Open
ninelives233 wants to merge 9 commits into
Open
ninelives233 wants to merge 9 commits into
ninelives233 wants to merge 9 commits into
Conversation
Author
|
真机试用后追加了两个交互调整(ddd3da0),仍只在教室页 UI 层:
本地 |
Author
|
第三轮:接入课表联动(复用 app 里已有的学生课表缓存,未新增解析与网络代码):
本地 |
Author
|
第四轮:把 BNU Sparks 网页端的「自动选中 + 多选时间」移植过来:
由于整栋楼课表是整体缓存,增减节次与换楼默认都是纯本地计算,不发额外请求。本地 testDebugUnitTest + lintDebug + assembleDebug 通过。 |
Author
|
第五轮:进入路径与节次点选的打磨:
本地 testDebugUnitTest + lintDebug + assembleDebug 通过。 |
Author
|
修复真机显示 bug:节次成对 chip 里的数字全部消失。原因是半区用了 |
Author
|
按真机反馈再打磨节次胶囊与整楼浏览:
|
ninelives233
force-pushed
the
classroom-result-visual
branch
from
November 23, 2026 06:15
9ed1fda to
39a42c2
Compare
Author
|
继续打磨节次胶囊(真机反馈:取消只对后面那节生效、选中态靠加粗看不出):
|
Author
|
修正胶囊激活判定:之前「点一下点亮整对」只在全局零选中时生效,导致默认选中当前节次(如第 5 节)时,点未激活的胶囊只会点亮单个数字。现在改为胶囊本地判断——只要这对的两个数字都未选(不管别处选了什么),点任一个数字就整对激活;胶囊已激活时点谁只切换谁。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
动机
空闲教室页目前只回答「所选时段是否空闲」。找座位的真实流程是:选定时段之后,
往往还想看这间教室前后还能连着学多久、这栋楼整体紧不紧张。这些信息教务
「教室课表」里本来就有——每间教室的占用明细已经随
Classroom.busy拉到本地,只是没有画出来。
本 PR 只动 UI 层,不改 ViewModel 与数据流。
改动
success)、灰=有课(
surfaceVariant)、主色描边=所选时段。读屏按连续段朗读,有课段带上课程与教师。periodTimesFlow)把所选时段之后的连续空闲换算成钟点,设置里改作息即时跟随——「能自习到几点」比一句
「空闲」更接近找座位的真实问题。
RollingNumber,加 success 色占比条与节次钟点(如「第 3-4 节 · 10:00-11:40」);补上
DataStatusRow显示本地缓存/同步状态;「只反映排课占用,不含临时借用」的说明保留在卡内。
BnuCard(描边+微阴影,与全应用一致);「空闲」徽章由 AssistChip改为 success 色块——绿色在这里只表达「可用」,不与选中态的浅蓝混淆,也去掉了
误导性的点击涟漪。
animateItem();列表 key 去掉下标,换查询条件时同一间教室保持同一身份,动效才能接管它的移动。加载态换成与结果卡同构的骨架,查询完成后页面不跳。
验证
./gradlew :app:testDebugUnitTest :app:lintDebug :app:assembleDebug通过,与 CI 一致success、灰取surfaceVariant,均随主题切换设计参考
色带的状态语义(空=绿、占=灰、所选时段高亮)与 BNU Sparks 网页端的教室查询保持一致,
两个端的用户心智可以互相迁移。