* 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>
21 lines
551 B
TypeScript
21 lines
551 B
TypeScript
import { getCloudflareContext as originalGetCloudflareContext } from "@opennextjs/cloudflare"
|
|
|
|
const isWorkOSConfigured =
|
|
process.env.WORKOS_API_KEY &&
|
|
process.env.WORKOS_CLIENT_ID &&
|
|
!process.env.WORKOS_API_KEY.includes("your_") &&
|
|
!process.env.WORKOS_API_KEY.includes("placeholder")
|
|
|
|
export async function getCloudflareContext() {
|
|
if (!isWorkOSConfigured) {
|
|
return {
|
|
env: {
|
|
DB: null,
|
|
},
|
|
ctx: {},
|
|
} as Awaited<ReturnType<typeof originalGetCloudflareContext>>
|
|
}
|
|
|
|
return originalGetCloudflareContext()
|
|
}
|