Repository navigation
Conversation
- Add modular enhancement plugins suite with settings tab integration - Add quick quote toolbar, session context menu, and duration breakdown tooltip - Add Token/s model speed metrics and automatic tool call folding - Add session scroll restore, memory caching, and multi-device sync cards - Add patch-pi-web.js and queue actions injection helpers - Add public static bundle and comprehensive documentation
faa635a to
9676543
Compare
…nhancement plugins - Add mobile-model-keyboard-guard and composer-clean-placeholder enhancement plugins - Optimize ModelSelector with blur-on-open and mobile-friendly viewport positioning - Prevent IME composition Enter from closing search menus prematurely - Update patch-pi-web.js with automated mobile autoFocus patch
🚀 Update: Mobile Model Selector Improvements & Clean Composer PlaceholderHey @agegr & maintainers, We just pushed an incremental update (commit 1. 📱 Mobile Model Selector Experience (
|
💡 Key Upstream Adoption Recommendations & Comparison BreakdownHey @agegr & team, To make reviewing as easy as possible, here is a quick breakdown of what our enhancements optimize compared to the latest upstream release, along with the top items we recommend adopting into official native code: 🌟 Top 3 Recommendations for Native Upstream MergeIf you want to cherry-pick without taking in the full enhancement bundle, these 3 items offer the highest ROI with almost zero architectural risk:
📊 Full Comparison Summary
Feel free to let us know if you'd like us to split any of the native React components into smaller dedicated PRs! |
🎯 Deep-Dive: 6 Battle-Tested Features with Higher Maturity for Upstream ConsiderationHey @agegr, Beyond the lightweight mobile fixes, we’ve spent months refining several core workflows during intensive daily use. These features have reached a level of maturity, stability, and UX polish that significantly outpaces the current upstream baseline. Here is a concise overview of why they are so effective and ready for upstream reference: 1. 🖼️ Image & Screenshot Preview Editor (
|
|
Thanks @koxircom for sharing this. I'm closing it: at ~100k added lines, with a script runtime injected into the built app, build patchers and a pre-bundled copy in If one fix matters most to you, a focused PR in native React code is welcome, like the mobile Generated by Claude Code |
…mobile (#1012) The filter input autofocused on open. On phones that raises the on-screen keyboard, which shrinks the viewport and pushes the model list off-screen before the user has decided to filter. Keep autofocus on desktop, where it lets you type right away; on mobile, tap to filter. Reported in #901 and #960. Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ Co-authored-by: Claude <[email protected]>
agegr#967 / agegr#963 已由上游的 agegr#1009 / agegr#1008 落地,agegr#961 上游原样合并(逐字节相同), agegr#951 已收敛到上游的 agegr#907,agegr#960 上下游都拒绝——这些都与上游一致,按台账规则删行。 agegr#899 上游关闭但本地保留,状态注明为永久分叉。
…mobile (agegr#1012) The filter input autofocused on open. On phones that raises the on-screen keyboard, which shrinks the viewport and pushes the model list off-screen before the user has decided to filter. Keep autofocus on desktop, where it lets you type right away; on mobile, tap to filter. Reported in agegr#901 and agegr#960. Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ Co-authored-by: Claude <[email protected]>
…mobile (agegr#1012) The filter input autofocused on open. On phones that raises the on-screen keyboard, which shrinks the viewport and pushes the model list off-screen before the user has decided to filter. Keep autofocus on desktop, where it lets you type right away; on mobile, tap to filter. Reported in agegr#901 and agegr#960. Claude-Session: https://claude.ai/code/session_01Q8e4GL1QSNFveKtnFfP3FZ Co-authored-by: Claude <[email protected]>
Summary
This PR introduces the Pi Web Modular Enhancements Suite, a comprehensive collection of frontend UX, observability, and workflow enhancements developed and battle-tested during intensive daily production use of Pi Web.
All enhancements are designed to be non-intrusive:
enhancements/andpublic/.components/ChatInput.tsxandcomponents/ModelSelector.tsx.🔍 Comparison with Latest Upstream & What's Optimized
autoFocus: !0), obscuring options; dropdown placement can clip on small screens.autoFocus={!isMobile}).• Blurs active element on click.
• Clamps viewport boundaries and elevates
zIndex: 1200to prevent clipping or occlusion.⏱️ 1m 42s) to assistant footers.• Hover/tap reveals interactive breakdown: Thinking time, Tool execution (with sub-tool counts), and Generation/Network latency.
>, and typing follow-up questions.Quote,Explain,Test,Diagnose,Optimize).• Automatically formats Markdown blockquote into composer.
• Keeps final answers visible and uncluttered while retaining manual expandability.
• Seamlessly restores reading position when returning to previous sessions.
compositionstart/compositionendguards to prevent premature submits during IME composition.• Upgrades General settings into a dual-column dashboard.
💡 High-Priority Adoption Recommendations for Upstream
If you prefer to integrate individual features into native React code rather than adopting the full plugin script, we strongly recommend prioritizing the following 3 items:
1. 🥇 Mobile Model Selector Polish (
components/ModelSelector.tsx)components/ModelSelector.tsx(autoFocus={!isMobile},blur(), and viewport boundary clamping).2. 🥈 Task Duration & Phase Breakdown (
components/MessageView.tsx)turn-durationplugin inenhancements/pi-web-enhancements.js.3. 🥉 IME Composition Safety (
components/ModelSelector.tsx/components/SessionSearch.tsx)isComposingguard onkeydown.Directory & File Structure
Note for Maintainers
We hope these contributions provide useful ideas and ready-to-use code for the Pi Web project. We are happy to adjust code structure, break out specific PRs, or discuss design details according to your roadmap!