compassmock/.dev-setup/restore-dev.sh
aaf2tbz 33b427ed33
feat(ui): improve mobile sidebar and dashboard layout (#67)
* feat(ui): improve mobile sidebar and dashboard layout

- Enlarge compass logo on dashboard page (size-14 idle, size-10 active)
- Reposition logo higher with -mt-16 margin
- Add 6rem spacing between logo and chat
- Remove feedback hover button from bottom right
- Add event-based feedback dialog opening for mobile sidebar
- Remove feedback buttons from site header (mobile and desktop)
- Add mobile theme toggle button to header
- Increase mobile menu hitbox to size-10
- Reduce search hitbox to separate clickable area
- Remove redundant Compass/Get Help/Assistant/Search from sidebar
- Rename "People" to "Team"
- Add mobile-only feedback button to sidebar footer
- Reduce mobile sidebar width to 10rem max-width
- Center sidebar menu icons and labels on mobile
- Clean up mobile-specific padding variants

* chore: add local development setup system

- Create .dev-setup directory with patches and scripts
- Add apply-dev.sh to easily enable local dev without WorkOS
- Add restore-dev.sh to revert to original code
- Document all changes in README.md
- Store cloudflare-context.ts in files/ as new dev-only file
- Support re-apply patches for fresh development sessions

This allows running Compass locally without WorkOS authentication
for development and testing purposes.

---------

Co-authored-by: Avery Felts <averyfelts@Averys-MacBook-Air.local>
2026-02-11 12:49:51 -07:00

37 lines
1021 B
Bash
Executable File

#!/bin/bash
set -e
echo "🔄 Removing local development setup patches..."
# Check if we're in the compass directory
if [ ! -f "package.json" ] || [ ! -d "src" ]; then
echo "❌ Error: Please run this script from the compass directory"
exit 1
fi
# Restore modified files
echo "📦 Restoring modified files..."
git restore src/middleware.ts
git restore src/lib/auth.ts
git restore src/db/index.ts
git restore next.config.ts
git restore .gitignore
# Remove dev-only new file
echo "📦 Removing dev-only files..."
if [ -f "src/lib/cloudflare-context.ts" ]; then
rm src/lib/cloudflare-context.ts
echo "✓ Removed src/lib/cloudflare-context.ts"
else
echo "⚠️ src/lib/cloudflare-context.ts not found, skipping"
fi
echo ""
echo "✅ Development setup removed!"
echo ""
echo "📝 Notes:"
echo " - Original code has been restored from git"
echo " - Dev mode is now disabled"
echo " - WorkOS authentication will be required (if configured)"
echo " - To re-apply dev setup, run: .dev-setup/apply-dev.sh"