Repository navigation
Poo poo monster sign up/sign in - #2
Merged
Merged
Conversation
除了专门标成厕所的点位,现在也抓酒店/商场等地点上明确标注"有厕所" (toilets=yes)的地方,同一批查询里一起要,不额外增加请求。国内愿意 打这个标签的人不多,实测上海只多出 3 个,但都是真实标注过的数据, 不是靠猜的。 顺手改进了场所分类逻辑:以前只能靠厕所自身的 access/building 标签 瞎猜类型,现在优先看这个点本身是什么地方(商场/餐饮/车站/校园…), 连带着让已有数据的分类也变准了。 修的 bug:北京有个厕所点的 OSM name 标签把中英文名挤在一起写, 超过数据库"厕所命名投票"表 40 字的限制,导致那一条报错、还连累 整批导入提前失败退出。现在超长名字会自动截断,不会再拖累整批。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
访客模式(匿名身份)完全保留,不登录也能正常浏览、报厕所、写评价。
新增"我的"入口:访客状态下是邮箱验证码登录表单,登录后展示战绩
(AI 生成 / 手写评论分别计数)和退出登录。
登录本身不是新建账号,是把当前匿名身份原地升级(Supabase
updateUser({email}) 保留 user.id 不变),历史评价不会丢。同一个
邮箱换设备回来登录时,自动改走"登录已有账号"那条路,用户感知不到
区别,都是"输入邮箱、输入验证码"两步。
验证码走邮箱,不是点链接确认——手机上邮件常在另一个 App/浏览器
打开,点链接容易把登录状态跳丢,输验证码更稳。为此把 Supabase 默认
的"仅链接"邮件模板换成带验证码的版本,中英双语、带产品调性的搞笑
文案,本地和云端各存一份(本地免费版 Dashboard 编辑不了模板,接了
Resend 才解锁)。
本地开发的 enable_confirmations 顺手从 false 改成 true——之前是
为了测试图快跳过确认,现在有真实的验证码流程要测,跳过反而会让这条
路径直到上线才第一次被真实验证到。
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
No description provided.