Commit Graph

63 Commits

Author SHA1 Message Date
aewing e89f60f8a5 WIP: Add canvas zoom/pan/pinch event handlers - handlers deployed but zoom interaction not working yet, will debug later 2026-01-23 13:14:29 +00:00
aewing 135087e096 feat: Complete Mode2Svelte with file viewer and token management
- Implemented Graph token lifecycle management with 60s safety buffer
- Added automatic token refresh scheduled 5min before expiry
- Fixed token expiration handling with env variable fallback
- Resolved SharePoint link parsing for both URL formats (RootFolder param and direct pathname)
- Handled URL-encoded spaces in file paths with proper decoding
- Implemented internal file viewer modal staying within app context
- Added file categorization system (Manager Info, Contracts, Plans, Submittals, Other)
- Integrated SVG icons for file types (PDF, Word, Excel, Presentation, Images)
- Added search/filter capability for files in folder view
- Enhanced auth module with improved button click debugging
- Fixed mobile responsiveness for file listing

Changes:
- Mode2Svelte/src/routes/+page.svelte: Complete component rewrite with token management
- Mode2Svelte/src/lib/auth/frontend.ts: Added comprehensive logging for auth flow
- Mode2Svelte/src/routes/api/job-files/+server.ts: Created file access endpoint
- Mode2Svelte/src/routes/api/jobs/list/+server.ts: Added jobs list endpoint

Status: Files now load and display in grouped categories with internal viewer
Next: Fix mobile app authentication issue and further refinements
2026-01-23 05:28:53 +00:00
aewing 7d8fd9f251 Add Mode2Svelte - advanced SvelteKit implementation
- Created Mode2Svelte as a copy of Mode1Svelte
- Updated branding (title, description) to distinguish from Mode1Svelte
- Added Mode2Svelte support to orchestrator
- Configured orchestrator to spawn Mode2Svelte with Node.js adapter
- Set Mode2Svelte as active mode in activeMode.txt
- Built production bundle for Mode2Svelte
- Both Mode1Svelte and Mode2Svelte now managed by orchestrator on port 3005
- Orchestrator controls which mode runs via activeMode.txt configuration
2026-01-23 03:00:47 +00:00
aewing 7b997dc354 Rebuild Mode1Svelte with SvelteKit + Node.js adapter
- Migrated from Bun/Hono to modern SvelteKit tech stack
- Implemented complete authentication module (Azure MSAL + PocketBase)
- Created 5 API endpoints for auth operations (config, graph token, validate, refresh, compare)
- Built interactive Svelte dashboard with mobile optimization (iPhone 16)
- Added Node.js adapter (@sveltejs/adapter-node) for production deployment
- Integrated Tailwind CSS with responsive design
- Fixed orchestrator to spawn Mode1Svelte with Node.js on port 3005
- Updated systemd service (job-info-test.service) to start orchestrator on port 3006
- Port configuration locked: 3005 = Mode1Svelte, 3006 = Orchestrator
- Full TypeScript type safety throughout application
- Services auto-managed by orchestrator with systemd integration
2026-01-23 02:18:34 +00:00
aewing d8d53ece93 Add development standards: variable naming consistency, mode independence, scope, ports, service restart, health check, and git workflow 2026-01-22 13:00:37 +00:00
aewing c0d32d7658 Update Mode1Svelte title and add mode indicator
- Changed title to Mode1Svelte throughout frontend
- Added mode indicator in bottom left with pulsing green dot
- All tests passing and dashboard working
2026-01-22 12:36:56 +00:00
aewing 5a4a3c51e9 Add Mode1Svelte - independent copy of Mode1 for future SvelteKit integration
- Created Mode1Svelte as complete standalone project
- Identical to Mode1 currently (Hono backend + Vite frontend)
- Separate auth-module copy (no dependencies on Mode1)
- Updated orchestrator to default to Mode1Svelte
- Both Mode1 and Mode1Svelte are independent and interchangeable via ModeSwitch
- Ready for gradual Svelte/SvelteKit migration while maintaining API compatibility
2026-01-22 05:53:15 +00:00
aewing 1fdc87f7f4 Add Mode1 auth testing environment with token comparison verification
- Created Mode1 as self-contained test environment
- Added auth-module copy with self-contained configuration
- Implemented backend server with Graph token and PocketBase validation endpoints
- Added frontend test dashboard with token comparison functionality
- Fixed TypeScript compatibility issues (replaced import.meta.dir with __dirname)
- Implemented actual PB token validation in comparison endpoint (no placeholders)
- All endpoints tested and working with real tokens
2026-01-22 05:32:33 +00:00
aewing 3ff23cd2bd Add session log documenting components and ModeTemplate 2026-01-21 05:15:17 +00:00
aewing 05f8e2e3b6 Add ModeTemplate with Svelte 5 frontend and components
- Create reusable components: auth, api-client, shared-types
- ModeTemplate with Hono backend and SvelteKit frontend
- Auth store refactored to class-based Svelte 5 pattern
- SSR-safe hydrate() pattern for localStorage access
- Frontend builds successfully with Svelte 5 runes
2026-01-21 05:12:25 +00:00
aewing bd7842799c Fix orchestrator to inherit env vars when spawning modes 2026-01-21 04:18:53 +00:00
aewing 0b76a4b119 Cleanup: Remove old modes, add Svelte 5 reference library, update orchestrator
- Delete Mode1Test, Mode2Test, Mode3Test, Mode5Test (keep only Mode6Test)
- Delete old documentation, Docker files, and k8s configs
- Add comprehensive Svelte 5 reference library (svelte-reference/)
- Update ModeSwitch orchestrator:
  - Fix port to 3005 (never use 3000/3001)
  - Add API endpoints for mode switching
  - Add bun-types and proper tsconfig
  - Clean up mode folder mappings
2026-01-21 03:56:01 +00:00
aewing 42ff3e8f33 Add Mode6Test: copy of Mode5Test running on port 3000
Build & Deploy / Test & Lint (push) Has been cancelled
Build & Deploy / Security Scan (push) Has been cancelled
Code Quality / Code Quality Checks (push) Has been cancelled
Code Quality / Dependency Vulnerabilities (push) Has been cancelled
Code Quality / Performance Testing (push) Has been cancelled
Build & Deploy / Build Docker Images (push) Has been cancelled
Build & Deploy / Deploy to Kubernetes (push) Has been cancelled
2026-01-20 13:43:29 +00:00
aewing 61dbbc457a Mode5Test: Update version to 1.0.0-mode5 - working stable version 2026-01-19 13:31:02 +00:00
aewing 3cc466c12d Fix: Add fallback token retrieval endpoint and improved token extraction debugging 2026-01-18 04:15:37 +00:00
aewing 1322ace853 Critical: Always refresh Graph token before file operations to prevent expiration errors 2026-01-18 04:06:13 +00:00
aewing 00b944c388 Fix: Debounce token refresh to prevent PocketBase auto-cancellation on rapid calls 2026-01-18 04:03:35 +00:00
aewing 9e28d86610 Optimize pagination: return first 100 jobs instantly (187KB instead of 4.3MB), load remaining pages in background 2026-01-18 04:01:46 +00:00
aewing 3ed6c888ee Fix Graph token initialization order and progressive job loading 2026-01-18 03:37:19 +00:00
aewing 09fc949a06 Fix token handling, remove orchestrator API call, improve mobile responsive footer layout 2026-01-18 03:09:37 +00:00
aewing d77fa4b817 Mode2Test/AuthAndToken: assume tokens always fresh with background refresh; fix jobs API to use correct collection; align Home UI to Mode1 (exact fields, styling, strict Active dot); add full-field IndexedDB cache w/ pagination; remove progress bar; dev TLS bypass; rebuild bundles 2026-01-17 20:20:24 +00:00
aewing eed8552282 Mode2Test AuthAndToken component complete: login/logout working, token persistence, background refresh active, tested and verified 2026-01-17 15:31:44 +00:00
aewing 319289cfac Mode-based architecture complete: Created ModeSwitch orchestrator (3006), Mode1Test isolated (3005), Mode2Test placeholder, added active mode label to frontend 2026-01-17 14:37:14 +00:00
aewing e4e3e65ea4 redis optimization/improvments 2026-01-09 04:08:06 +00:00
aewing eaf5149d15 Ultra-fast jobs display: backend returns first 40 jobs instantly, frontend renders immediately, full set updates when ready 2026-01-01 07:13:09 +00:00
aewing 6dea66b0cf Add Valkey/Redis cache visualization and API autoloading for graphical inspection 2026-01-01 06:48:52 +00:00
aewing 218a15a4c2 Fix: robust token/session handling, no client-side job data caching, improved reauth flow 2026-01-01 02:36:45 +00:00
aewing f7a703b3ca Bump version to 1.0.0-beta3 2025-12-31 06:04:19 +00:00
aewing 14327e219d Fix error handling in Graph API endpoints - use 502 status and add logging 2025-12-31 03:06:02 +00:00
aewing 6dc58c2fc3 Update default port to 3005 for test instance 2025-12-31 02:58:57 +00:00
aewing 61ea64b13d watch added 2025-12-29 15:38:39 +00:00
aewing ccdfeb782d redis caching updated optimized loading and data readiness 2025-12-28 06:19:55 +00:00
aewing dd0eba8aee Manager Info UI improvements and voice search enhancements
- Removed duplicate Links section above notes
- Updated file icons to use SVG badges (w-3 h-3) - PDF red, Word blue, image icons
- Reduced notes viewing area height to 120px with vertical scroll
- Voice search: Clear text when all highlighted and mic clicked
- Voice search: Replace 'new' with 'latest' in dictations
- Voice search: Remove trailing 'job' from dictations
- Voice search: Auto-open Manager Info when exactly 1 result found
2025-12-28 05:55:03 +00:00
aewing eead6de627 manager info view job notes working correctly now. 2025-12-28 04:54:32 +00:00
aewing cb9df953e1 made updates to manager info view 2025-12-28 04:20:26 +00:00
aewing 07d8f83883 added manager info view 2025-12-28 03:10:53 +00:00
aewing a191db8449 fixed viewer and folder issues 2025-12-28 01:41:47 +00:00
aewing b11df8484f Bump version to 1.0.0-beta3 2025-12-28 00:09:00 +00:00
aewing c65a2000ac Add Redis/Valkey caching with sessionStorage client-side cache and improved asset loading 2025-12-28 00:02:45 +00:00
aewing d231a0b6ec fixed folder view title to remove doubles and display turncated job name if needed, but at least have a partial job name no matter what. 2025-12-27 22:49:35 +00:00
Golwhit 97d958a400 minor changes added voice to search. one touch highlight 2025-12-27 15:05:42 -06:00
aewing bc7d2e04fb created redis for data cache and added some directions in redis.txt on how I'd like to wire it in. but nothing built yet. 2025-12-23 17:58:06 +00:00
aewing 611bccbc51 Add file preloading, branded file icons, instant card clicks, and live reload dev mode 2025-12-22 22:06:51 +00:00
aewing 94e5079a60 many edits 2025-12-19 22:55:48 +00:00
aewing 56e1131622 added restart always to service 2025-12-19 21:51:46 +00:00
aewing cf57336c97 taskbar updates links to islannd in excel and links to gm dash board added and working. need to be updated to production soon 2025-12-18 19:11:02 +00:00
aewing 1565496407 added taskbar. needs work 2025-12-17 23:19:53 +00:00
aewing 560e30d93c added preferences to pull from user_preferences collection. seems to be working. 2025-12-17 19:58:39 +00:00
aewing 1d692ddb87 updated info modal: bold headings, added Job_Type and Job_Division 2025-12-17 19:14:29 +00:00
aewing 9b2c1d2b20 fixed active status issues bug 2025-12-17 19:07:51 +00:00