Commit graph

33 commits

Author SHA1 Message Date
0d46b89c68
Use Sentry Loader script to handle CORS errors gracefully
- Replaced direct Sentry SDK script tag with the Sentry Loader
- The loader handles CORS/network failures gracefully without breaking the app
- Moved Sentry configuration to use the onLoad callback
- Maintains the same configuration (100% sampling, BrowserTracing, etc.)

The Sentry Loader is a small inline script that:
1. Captures errors immediately (even before SDK loads)
2. Loads the SDK asynchronously
3. Handles load failures gracefully
4. Replays captured errors once SDK is loaded

This approach avoids CORS errors breaking the page load while still
providing error tracking when the SDK is accessible.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-18 15:51:21 -05:00
1da12cf665
Remove debug console.log statements from JavaScript files
- Removed all console.log debugging statements from app.js (theme changes, chart rendering)
- Removed all console.log statements from map.ts (map initialization, data processing)
- Removed all console.debug statements from map_helpers.ts
- Removed all console.debug statements from map_fixes.ts
- Kept essential console.error and console.warn statements for error handling
- Reduced bundle size by ~1.4kb

This cleanup removes unnecessary debug output while maintaining error reporting
for production debugging via console.error and Sentry.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-18 15:37:05 -05:00
3c1aa29f82
Configure Sentry to sample 100% of errors and transactions
- Set tracesSampleRate to 1.0 for 100% transaction sampling
- Set sampleRate to 1.0 for 100% error sampling
- Ensures all JavaScript errors and performance data are captured

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-18 15:18:19 -05:00
dade93ee5c
Implement Sentry JavaScript integration with proper CSP configuration
- Restored Sentry JavaScript SDK script tag
- Created custom ContentSecurityPolicy plug to allow Sentry domains
- Added proper CSP headers allowing:
  - js.sentry-cdn.com for the SDK
  - *.ingest.sentry.io and *.sentry.io for error reporting
- Initialized Sentry in app.js with:
  - Proper DSN configuration
  - Browser tracing integration
  - 10% transaction sampling rate
  - Filter for non-critical ResizeObserver errors
- Added CSP plug to router pipeline after put_secure_browser_headers

This properly integrates Sentry for JavaScript error tracking while
maintaining security through explicit CSP configuration.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-18 15:17:35 -05:00
4b159ba0b7
cleanup 2025-07-18 14:44:52 -05:00
1d1195ae87
js refactor 2025-07-16 09:23:33 -05:00
1b428cbf78
add spider cluster 2025-07-11 13:00:32 -05:00
8eb1e90622
use postgis for testing 2025-07-09 16:48:55 -05:00
5820400052
fix page layout when navigating between pages 2025-07-08 15:30:04 -05:00
1406ae97f0
performance improvements 2025-07-05 14:34:34 -05:00
eafa0feff5
js tweak 2025-07-05 13:16:37 -05:00
d5bc00fc86
js tweak 2025-07-05 13:07:14 -05:00
3464cf5b66
js tweak 2025-07-05 13:00:34 -05:00
8c06f1f8fa
more typescript and update weather charts in real time 2025-07-05 12:47:11 -05:00
ed545467c5
daisyui tweaks 2025-07-05 09:41:08 -05:00
53dc32f8fc
use daisyui components 2025-07-05 09:22:47 -05:00
802c6982c7
change to chart.js 2025-07-04 12:37:03 -05:00
c8ee465015
weather charts 2025-07-03 11:29:01 -05:00
03c20ebfd8
mobile 2025-06-21 20:26:08 -05:00
3903c1b26c
refactor 2025-06-19 15:20:18 -05:00
369ce05f1a
typescript 2025-06-18 12:26:13 -05:00
c5d7a32b60
map debugging 2025-06-16 14:35:04 -05:00
210f866374
map debugging 2025-06-16 13:56:21 -05:00
c480aa7eb1
more liveview and add procfile 2025-06-15 21:43:40 -05:00
f9fa765e32
add oban tables 2025-06-15 21:32:37 -05:00
7a57739ed7
tweaks 2025-06-15 21:14:10 -05:00
1ce7f91eed add geolocation 2025-06-15 10:27:18 -05:00
761eb66d1f add spot clustering 2025-06-13 16:28:20 -05:00
c5b5d0762a map improvements 2025-06-13 16:17:35 -05:00
f69f110a56 update phoenix and add docker compose config 2023-02-15 12:33:27 -06:00
246cb43244 initial packets working 2023-01-31 13:08:17 -06:00
5bec256a62 wip map 2023-01-30 13:25:14 -06:00
d40567dfeb initial 2023-01-26 13:20:23 -06:00