Spaces:
Sleeping
Sleeping
Commit History
-
Fix UI blocking in form page initialization by loading data async
b2d2448
-
Fix syntax error and remove all emojis from console logs\n\n- Fixed duplicate cacheKey variable declaration causing SyntaxError\n- Removed all emojis from console.log statements in map.js and auth-manager.js\n- Cleaned up performance comments\n- Map should now load properly with trees displaying
62e311a -
EMERGENCY FIX: Restore working map by removing broken ES6 module imports
🚨 Critical Issues Fixed: - Removed broken ES6 import statements that caused map to freeze - Restored traditional script loading in map.html - Fixed map tree loading with working batch mechanism - Temporarily disabled background data service to prevent module errors 🐛 Root Problems Identified: - Mixed ES6 modules + traditional scripts don't work without proper setup - Import statements were breaking JavaScript execution - Background loading was working but map couldn't render trees - Module loading paradigm was inconsistent across the app ✅ Map Now Works: - Trees load and display properly with clustering - Spiderfy spiral view restored and functional - Proper zoom levels maintained (15 initial, 17 max) - All clustering behavior preserved ⚠️ Technical Debt: - Background data service code still exists but disabled - Need proper module architecture for future optimization - Authentication works, tree loading works, map functionala6bca2b -
Implement preemptive data loading and remove image loading from tooltips
🚀 Performance Optimizations: - Added BackgroundDataService for preemptive tree data loading - Background loading starts immediately after user authentication - Map uses cached data when available (instant loading) - Removed image loading from tree tooltips for better performance - Optimized batch processing (100 trees/batch, 10ms delays) - Auto-clear cache on logout for fresh sessions 📱 Map Improvements: - ES6 module imports for better code organization - Fixed module loading and exports - Reduced popup size (removed images, cleaner UI) - Faster map initialization with cached data - Progress indicators during background loading 🔧 Technical Changes: - Background loading happens parallel to user interaction - Smart caching prevents redundant API calls - Graceful fallback if background loading fails - Console logging with emojis for better debugging4c36de1 -
Fixed color scheme and navigation consistency across all pages
- Updated form page (index.html) from blue to green nature theme - Updated map page (map.html) to use consistent green color scheme - Changed background gradients to off-white to green throughout - Fixed 'Add Tree' button in map page to correctly link to form page - Added conditional 'Back to Welcome' button only for demo users - Implemented proper user role detection in both form and map pages - Enhanced glassmorphism effects and visual consistency - Maintained design system integrity with nature-inspired palette324a397 -
Improve demo user UX: disable save button with friendly messaging
- Add demo user detection in AuthManager - Disable submit button for demo users with professional styling - Replace emoji with clean 'i' icon in circular badge - Improve demo notice with welcoming tone and blue color scheme - Add user-friendly messaging for form submission attempts - Maintain all functionality for testing while preventing data saves - Update button text to 'Try TreeTrack - Demo Mode' - Enhance tooltips and error messages for better UXb25b478
-
chore: remove Granim and telemetry UI from frontend; switch Leaflet CSS to prefetch; git rm static/telemetry.html
c3aaa58 -
perf(ui): preconnect/prefetch map assets, client-side sort by created_at; annotate Ishita’s today entries; defer heavy map work
7db38a6 -
feat(telemetry): admin-only link in header; map page view telemetry
b4a1b37 -
feat(telemetry): add admin UI, server/client auth telemetry; grant admin to Ishita
0dbb26a -
fix(edit): stop showing 'Edit cancelled' after successful update; show ft units on map popup
79b15bc -
fix(ui): include location_name in POST/PUT JSON and display it in Recent Trees
f0004a7 -
feat: switch measurements to feet, add recorder UI, and persist telemetry to Supabase
- UI: Height (ft), Girth/DBH (ft), conversion note, recorder controls - API: validators updated to feet; stats return average_height_ft/average_girth_ft - Telemetry: client sends success/error; server writes to Supabase telemetry_events (file fallback) - DB support: location_name field supported end-to-end; trees DDL adjusted in repo7f8f9a6
-
Fix cancel button styling in edit mode
- Change cancel button CSS classes from 'btn btn-outline' to 'tt-btn tt-btn-outline' - This ensures consistent styling with the reset and submit buttons - All buttons in the form-actions now use the proper design system classes613d6e8 -
Fix critical async/await bug in Supabase database methods
- Fix get_tree() method to be async (was causing 500 error) - Fix update_tree() method to be async - Fix delete_tree() method to be async - Add missing _check_connection() calls for consistency - Remove debugging code from frontend This fixes the 'object dict can't be used in await expression' error that was preventing tree editing from working properly.6499080 -
Fix tree edit functionality and improve popup close button positioning
- Fix edit tree flow from map tooltips to main form - Add checkForEditTree() to automatically load trees for editing from localStorage - Simplify map.js editTree method to just store ID and redirect - Fix Leaflet popup close button positioning with proper CSS - Update service worker cache version to force asset refresh - Update cache timestamps for map.js to ensure latest version delivery Fixes the 'error fetching tree data' issue when editing trees from map view. Users can now seamlessly edit trees directly from map marker popups.fa7e64a
-
Major refactoring: Modular architecture implementation (v5.0.0)
- Refactored monolithic 1,244-line JavaScript into 6 specialized modules - Implemented professional modular architecture with clean separation of concerns - Created modules: AuthManager, ApiClient, UIManager, FormManager, AutoCompleteManager, MediaManager - Enhanced performance with debounced search, Promise.all(), and optimized DOM queries - Removed all emojis for professional field research environment - Added comprehensive error handling and validation - Maintained backward compatibility - no breaking changes - Updated documentation (README.md, llm.txt) to reflect new architecture - Created backup of original app.js file Benefits: ✓ Better maintainability and testability ✓ Improved performance and error handling ✓ Professional emoji-free interface ✓ Scalable modular design ✓ Enterprise-grade code organizationafc0068