How sreenathkallada/spoofhub-time-logger works
ProofHub Time Logger is a browser-based client for logging time and managing tasks through a user’s ProofHub API key. The main workflow is sign-in and identity verification, load tasks and time data, compose edits in persisted drafts or the week grid, then save changes through a queued API client. The graph also retains task creation and editing, task assignment and workflow stages, settings, and description handling. Relationships are limited to those supported by README statements or the supplied source index and excerpts; unsampled implementations are represented only where the tree and documentation establish them.
Main entry points: useApi.js API binding · MainScreen.jsx Main screen · drafts.js Draft state · TaskExpanded.jsx Task entries
Components 23
Screens and task work
- App shell
src/App.jsx - Sign-in setup
src/components/SetupScreen.jsx - Main screen
src/components/MainScreen.jsx - Task list
src/components/TaskList.jsx - Task actions
src/components/TaskRow.jsx - Task entries
src/components/TaskExpanded.jsx - Week grid
src/components/WeekView.jsx - Entry editor
src/components/EntryRow.jsx - Existing entry
src/components/ExistingEntry.jsx - Task editor
src/components/TaskFormModal.jsx - Task creation
src/components/NewTaskModal.jsx
Drafts and preferences
- Settings state
src/store/settings.js - Draft state
src/store/drafts.js - Save all engine
src/hooks/useSaveAll.js - Description HTML
src/utils/html.js
Queries and API
- Data queries
src/hooks/queries.js - API binding
src/hooks/useApi.js - API endpoints
src/api/endpoints.js - Request client
src/api/client.js - Request queue
src/api/queue.js - Error handling
src/api/errors.js
Other components
- User
- ProofHub API
Connections 33
- User → App shell: opens
README.md - App shell → Sign-in setup: shows signed-out
src/App.jsx - App shell → Main screen: shows signed-in
src/App.jsx - User → Sign-in setup: enters credentials
README.md - Sign-in setup → Settings state: stores session
src/components/SetupScreen.jsx - Sign-in setup → API endpoints: verifies identity
src/components/SetupScreen.jsx - Main screen → Data queries: loads data
src/components/MainScreen.jsx - Main screen → Task list: renders tasks
src/components/MainScreen.jsx - Main screen → Week grid: renders grid
src/components/MainScreen.jsx - Main screen → Save all engine: starts saving
src/components/MainScreen.jsx - Task list → Task actions: renders rows
src/components/TaskList.jsx - Task actions → Task entries: opens entries
src/components/TaskRow.jsx - Task entries → Entry editor: renders new entries
src/components/TaskExpanded.jsx - Task entries → Existing entry: renders saved entries
src/components/TaskExpanded.jsx - Week grid → Entry editor: edits entries
src/components/WeekView.jsx - Week grid → Existing entry: edits saved entries
src/components/WeekView.jsx - Task actions → Draft state: stages task changes
src/components/TaskRow.jsx - Task entries → Draft state: stages entry changes
src/components/TaskExpanded.jsx - Week grid → Draft state: stages grid edits
src/components/WeekView.jsx - Save all engine → Draft state: reads and updates
src/hooks/useSaveAll.js - Save all engine → API binding: sends queued changes
src/hooks/useSaveAll.js - Task editor → API binding: saves task edits
src/components/TaskFormModal.jsx - Task creation → API binding: creates tasks
src/components/NewTaskModal.jsx - Task editor → Description HTML: handles descriptions
src/components/TaskFormModal.jsx - Data queries → API binding: fetches through
src/hooks/queries.js - API binding → Settings state: reads credentials
src/hooks/useApi.js - API binding → API endpoints: binds API methods
src/hooks/useApi.js - API endpoints → Request client: makes requests
src/api/endpoints.js - Request client → Request queue: enqueues requests
src/api/client.js - Request client → Error handling: normalizes errors
src/api/client.js - Request client → ProofHub API: calls API
README.md - Settings state → User: persists preferences
README.md - Draft state → User: persists drafts
README.md