A modern React-based dashboard application for supervision authorities (Tilsynstilsynet) in Norway. This demo application provides comprehensive visualization and management tools for supervision reports, coordination activities, and regulatory compliance data.
- Organization Lookup: Search and display detailed organization information
- Supervision Reports: Comprehensive reporting and filtering capabilities
- Geographic Visualization: Interactive Norway map showing violation distribution
- Trend Analysis: Visual charts and statistics for supervision activities
- Data Export: CSV and JSON export functionality for all data types
- Authority Filtering: Filter data by specific supervision authorities
- Responsive Design: Modern UI that works on all devices
- Frontend: React 19 with Vite 8
- Styling: Tailwind CSS 4
- Charts: Recharts for data visualization
- Maps: Custom SVG-based Norway map with TopoJSON
- Icons: Lucide React
- Animations: Framer Motion
- Build Tool: Vite
- Deployment: GitHub Pages
Requires Node.js 20.19 or newer (24 LTS recommended), as needed by Vite 8 and Tailwind CSS 4.
-
Clone the repository:
git clone https://github.com/yourusername/tilda-demo.git cd tilda-demo -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:5173 to view it in the browser.
npm run buildThe build artifacts will be stored in the dist/ directory.
This project is configured for automatic deployment to GitHub Pages using GitHub Actions. Every push to the main branch will trigger a new deployment.
To deploy manually:
-
Build the project:
npm run build
-
Deploy the
dist/folder to your hosting provider.
src/
├── components/ # React components
│ ├── charts/ # Chart components
│ ├── layout/ # Layout components
│ ├── tabs/ # Tab components
│ └── ui/ # UI components
├── data/ # Data generation and aggregation
├── utils/ # Utility functions
└── constants.js # Application constants
- GeneralInfoTab: Organization details and overview statistics
- ReportsTab: Supervision reports with filtering
- TrendsTab: Trend analysis and charts
- ExperimentsTab: Geographic visualization with Norway map
- DownloadTab: Data export functionality
- NorwayMap: Interactive SVG-based map component
The application uses the following environment variables:
NODE_ENV: Environment mode (development/production)VITE_BASE_URL: Base URL for the application (automatically set for GitHub Pages)
The vite.config.js file is configured for:
- React support
- Path aliases
- GitHub Pages deployment with correct base path
The application generates realistic demo data including:
- Norwegian organization details
- Supervision reports with weighted violation severity
- Geographic distribution across Norwegian cities
- Temporal trends and statistics
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with modern React and Vite
- Uses Norwegian administrative data structures
- Designed for Norwegian supervision authorities
- Geographic data from Natural Earth
Note: This is a demonstration application with generated data. It is not connected to real supervision systems or databases.