Skip to content

Comments

Map zoom#8

Merged
BenCretois merged 4 commits intomainfrom
map_zoom
Sep 10, 2025
Merged

Map zoom#8
BenCretois merged 4 commits intomainfrom
map_zoom

Conversation

@BenCretois
Copy link
Collaborator

No description provided.

- Add privacy protection settings with hardcoded zoom limits (public: level 7, team: level 18)
- Implement password-based authentication system for detailed map access
- Integrate with AUTH_PASSWORD environment variable for production deployment
- Add session-based authorization management with UI controls
- Update map visualization to use dynamic zoom levels based on user access
- Fix code quality issues: line length, security annotations, and linting errors
- Maintain backward compatibility while adding enterprise-grade privacy features

Features:
- Public users: Limited to zoom level 7 for privacy protection
- Project team: Full zoom access (level 18) with password authentication
- Seamless integration with existing Docker/Portainer AUTH_PASSWORD setup
- Real-time access status display and controls
- Session persistence for user convenience
- Remove duplicate 'device_name' column creation in load_device_status()
- The issue was that device_name was created manually on line 137 and then
  renamed again from 'device' column on line 150, causing pandas ValueError
- Keep manual creation and remove the conflicting rename operation
- This fixes the 502 Bad Gateway errors on Portainer deployment
- Dashboard now loads and sorts correctly without column conflicts

Error resolved: ValueError: The column label 'device_name' is not unique
@BenCretois BenCretois merged commit 8fdca84 into main Sep 10, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant