havre /open: labeled New chat button on mobile, hide ⌘ shortcut hints on phones

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BQqGFv54JJTw7p3rgGjP7C
This commit is contained in:
teahubxyzandClaude Opus 5.5 committed 2026-10-19 18:51:46 +00:00
1 parent cd57ecba9f
commit f9b9d6adbe
1 file changed
+8 -1
+8 -1
View File
@@ -7,6 +7,13 @@ OV_REF=d983874a79810edaffb85721911630af29d09d95
src=$(mktemp -d)
git clone -q https://github.com/nikshepsvn/openvenice "$src"
git -C "$src" checkout -q "$OV_REF"
# Phone fixes: a labeled "New chat" button, and no ⌘ shortcut hints below md width
f="$src/src/components/layout/sidebar.tsx"
perl -0pi -e 's/aria-label="New chat"\n(\s*)className="/aria-label="New chat"\n$1className="flex items-center gap-1.5 px-2.5 py-1.5 text-[13px] border border-white\/[0.12] /' "$f"
perl -0pi -e 's/(<line x1="5" y1="12" x2="19" y2="12" \/><\/svg>)(\n\s*<\/button>\n\s*<\/div>\n\s*\{conversations\.length > 5)/$1<span>New chat<\/span>$2/' "$f"
perl -0pi -e 's/title="New chat \(⌘N\)"/title="New chat"/' "$f"
perl -0pi -e 's/<div className="px-3 py-2\.5 border-t border-white\/\[0\.04\]">(\n\s*<div className="text-\[11px\] text-white\/35 space-y-0\.5">)/<div className="hidden md:block px-3 py-2.5 border-t border-white\/[0.04]">$1/' "$f"
grep -q "<span>New chat</span>" "$f" && grep -q "hidden md:block px-3 py-2.5" "$f"
(cd "$src" && npm ci --silent --no-audit --no-fund >/dev/null && npx vite build --base=/open/ >/dev/null)
rm -rf open
cp -R "$src/dist" open
@@ -32,7 +39,7 @@ sed -i.bak 's|<head>|<head><script src="/open/havre-key.js"></script>|' open/ind
grep -q havre-key.js open/index.html
cat > open/LICENSE.txt <<EOF
openvenice by nikshepsvn, MIT License: https://github.com/nikshepsvn/openvenice
Built into Havre at /open/ from commit $OV_REF, unchanged.
Built into Havre at /open/ from commit $OV_REF, with two small phone fixes (see tools/open.sh).
EOF
rm -rf "$src"
echo "open/: openvenice @ $OV_REF ($(find open -type f | wc -l | tr -d ' ') files)"