jaktapp1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v4View latest version
Release Date: June 25, 2025
Type: Major Feature Update
- NEW: Predefined hunter dropdown selection
- Hunters: Ole, Erik, Lars, Magnus, Gunnar, Bjørn, Knut, Per
- Applied to: Both observations and harvest logging
- Validation: Ensures only valid hunters can be selected
- NEW: Weight input for harvested deer (in kilograms)
- Features:
- Decimal support (e.g., 85.5 kg)
- Optional field with validation
- Stored with harvest data for analytics
- NEW: Location capture for harvest positions
- Features:
- Manual latitude/longitude input
- "Use GPS" button for automatic location capture
- High accuracy positioning with error handling
- Location accuracy display (±X meters)
- Mobile device compatibility
- NEW: Photo upload and capture capability
- Features:
- Camera integration for mobile devices
- Photo preview before submission
- Base64 encoding for data storage
- Image file validation
- Touch-friendly interface
// Harvest object now includes:
{
id: "unique_id",
area: "Nordgard",
deerType: "bukk",
hunter: "Ole",
weight: 85.5, // NEW
coordinates: { // NEW
lat: 60.1234,
lng: 5.1234
},
photo: "base64_data", // NEW
notes: "Clean shot",
date: "2025-06-25",
time: "08:45",
timestamp: "2025-06-25T08:45:00.000Z"
}
- Enhanced:
POST /api/log-harvest
endpoint - Added: Hunter validation against predefined list
- Added: Weight, coordinates, and photo data handling
- Improved: Error handling and validation messages
- Enhanced: Harvest logging form with new fields
- Added: GPS location capture button
- Added: Real-time photo preview
- Improved: Form validation and user feedback
- Enhanced: Mobile responsiveness for new features
- Native camera access on mobile devices
- Touch-optimized photo capture
- Automatic image optimization
- High-accuracy location services
- Battery-efficient positioning
- Offline capability for coordinates
- Enter deer weight in the "Weight (kg)" field
- Supports decimal values (e.g., 85.5)
- Optional - leave blank if unknown
- Automatic: Click "📍 Use GPS" button
- Manual: Enter latitude and longitude manually
- Location accuracy is displayed when using GPS
- Click "Choose File" or camera icon
- Take photo or select from gallery
- Preview appears automatically
- Photo is included with harvest data
- Fixed form clearing after successful harvest logging
- Improved error handling for invalid data
- Enhanced mobile touch responsiveness
- Better validation feedback messages
- Optimized photo handling and compression
- Faster GPS acquisition with timeout handling
- Reduced API response times
- Better memory management for photo data
The enhanced harvest data now supports:
- Weight-based statistics and analytics
- Location-based hunting pattern analysis
- Photo documentation for record keeping
- Hunter performance tracking
- Existing harvest data remains unchanged
- New fields are optional and backward compatible
- No data migration required
- Previous harvest entries will show null values for new fields
- Enhanced Quick Actions
- Advanced Statistics Dashboard
- Management Tools
- Photo Gallery View
- Export functionality
Tested on: Chrome, Safari, Firefox (Desktop & Mobile)
Platform: Val Town HTTP Val
Deployment: Single-file architecture for easy maintenance