Files
MemRelay/projects/8e229c96-a83b-4a02-ac40-10a0a9da444e/Checkpoint 2026-09-17 01-52-26 UTC [64e073f182].md
T

40 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-09-17 01:52:26 UTC [64e073f182]
type: checkpoint
permalink: main/projects/8e229c96-a83b-4a02-ac40-10a0a9da444e/checkpoint-2026-09-17-01-52-26-utc-64e073f182
stable_id: 5417bed3-b6f8-4f61-a29c-aaf1d55d3c8f
scope: project
project_id: 8e229c96-a83b-4a02-ac40-10a0a9da444e
memory_type: checkpoint
status: active
revision: 1
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
created_at: '2026-09-23T15:01:23.861373+00:00'
updated_at: '2026-09-23T15:01:23.861429+00:00'
tags:
- streamlit
- ui
- checkpoint
---
## 完成内容(分支 feat/Streamlit,commit 75af8f9,已推送)
- 全局隐藏所有输入框右下角 “Press Enter to submit form / apply” 提示(ui/layout.py,`[data-testid=InputInstructions]`),楼宇查询页和市场出图页均已在浏览器实测(聚焦并修改 number_input 后无提示)。
- 楼宇数据查询页的服务地址/登录信息/来源页改为 `st.text_input(type="search")`,使用 Streamlit 自带的框内右侧 ✕ 清除按钮;CSS 隐藏左侧放大镜并去掉根元素左内边距;来源页 placeholder 设为“可留空”(避免默认 “Search”)。
- 修复回归:之前为自绘 ✕ 加的内联 SVG data URL 含 `<`,被 st.html 的 DOMPurify 整段丢弃,导致紧凑布局等全部全局样式失效。已移除,并在 apply_compact_layout 加 assert、tests 加 `test_global_css_survives_streamlit_sanitizer`。
## 验证
- `python -m unittest tests.test_toolbox.PageTest` 4 项通过。
- 浏览器 CDP:stEvent 容器含样式(长度 4180)、`.block-container` paddingTop 13.6px、放大镜 display none、清除按钮 visible、InputInstructions 元素不出现。
## 本会话其他已完成(见前几个检查点)
- 成果浏览改为按任务列表,文件列表固定高度滚动;正式成果导入为任务 20260815-a0000001。
- 市场出图“指定市场”改为 form 外的复选框列表。
- 楼宇查询:WKT 轮廓输入 + polylabel 内部点、GBK 输出、输入编码自动识别、连接信息持久化到 output/toolbox/nr_connection.json。
- 任务中心:单任务删除与一键清空(运行中任务跳过)。
- .streamlit/config.toml 开启 runOnSave。
## 给下个会话
- 全局 CSS 只在 ui/layout.py 的 COMPACT_CSS 中维护,绝对不能出现 `<`。
- 修改 UI 后可用 IDE 浏览器打开 http://127.0.0.1:8501/<page> 用 CDP 验证;服务由 start-ui.cmd 启动,runOnSave 已开,保存即热更新。
- 推送 git.asio.asia 若再次认证失败,密码库条目 “git.asio.asia nixevol”,用 GIT_ASKPASS 临时脚本绕过 GCM。
- 尚无用户新需求待办。