Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/studymesh/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import WorkspaceStudioShell from './components/workspace/WorkspaceStudioShell'
import DashboardProvider from './components/Dasboard/DashboardProvider'
import LayoutProvider from './components/Layout/LayoutProvider'
import StudyMeshLanding from './components/landing/StudyMeshLanding'
import PomodoroFAB from './PomodoroFAB'
import { useWorkspaceActions } from './customHooks/useWorkspaceActions'
import LocalAiDebugPanel from './components/debug/LocalAiDebugPanel'
import { cancelAllLocalAiSessions } from './studyPack/ai'
Expand Down Expand Up @@ -134,6 +135,7 @@ const WorkspacePage = () => {
<Dashboards />
</WorkspaceStudioShell>
<WorkspaceOnboarding />
<PomodoroFAB />
</Main>
</Box>
)
Expand Down
52 changes: 52 additions & 0 deletions apps/studymesh/src/PomodoroFAB.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import React, { useState } from 'react'
import { Box, Fab, Tooltip } from '@mui/material'
import { PomodoroTimer } from './components/pomodoro'

const PomodoroFAB: React.FC = () => {
const [isOpen, setIsOpen] = useState(false)

return (
<>
<Box sx={{ position: 'fixed', bottom: 24, right: 24, zIndex: 9997 }}>
<Tooltip title="PomodoroFAB" placement="left">
<Fab
color="primary"
aria-label="PomodoroFAB"
onClick={() => setIsOpen(true)}
sx={{
width: 56,
height: 56,
fontSize: '1.5rem',
bgcolor: 'primary.main',
'&:hover': { bgcolor: 'primary.dark' },
}}
>
</Fab>
</Tooltip>
</Box>

{isOpen && (
<>
<Box
onClick={() => setIsOpen(false)}
sx={{
position: 'fixed',
top: 0,
left: 0,
right: 0,
bottom: 0,
bgcolor: 'rgba(0,0,0,0.3)',
zIndex: 9998,
}}
/>
<Box sx={{ width: '100%', height: '100%' }} onClick={(e) => e.stopPropagation()}>
<PomodoroTimer onClose={() => setIsOpen(false)} />
</Box>
</>
)}
</>
)
}

export default PomodoroFAB
5 changes: 5 additions & 0 deletions apps/studymesh/src/auth/AuthProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ export const RequireAuth = ({ children }: { children: React.ReactNode }) => {
const { user, loading } = useAuth()
const location = useLocation()

// 🔓 DEV BYPASS: Skip login in development/testing
if (localStorage.getItem('dev_bypass_auth') === 'true') {
return <>{children}</>
}

if (loading) {
return (
<Box
Expand Down
2 changes: 2 additions & 0 deletions apps/studymesh/src/components/landing/StudyMeshLanding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ const StudyMeshLanding = () => {
}

const openWorkspace = (action?: string) => {
// 🔓 DEV BYPASS: Enable bypass when clicking "Try StudyMesh"
localStorage.setItem('dev_bypass_auth', 'true')
navigate(action ? `/workspace?action=${action}` : '/workspace')
}

Expand Down
Loading