Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heatmap UI w/Angular and OpenLayer #13

Merged
merged 81 commits into from
Mar 16, 2025
Merged

Heatmap UI w/Angular and OpenLayer #13

merged 81 commits into from
Mar 16, 2025

Conversation

MacMat01
Copy link
Collaborator

@MacMat01 MacMat01 commented Mar 13, 2025

This pull request includes several updates to the heatmap-iot-analytics project, focusing on improving the documentation, adding configuration files, and setting up the Angular client for the front-end application. The most important changes include updates to the README.md, the addition of .editorconfig and .gitignore files, and the setup of the Angular client.

Documentation improvements:

  • README.md: Updated the project description, added a new section for repository structure, and refined instructions for setting up the environment and running the application. [1] [2] [3]

Configuration additions:

  • client/.editorconfig: Added an EditorConfig file to standardize coding styles across different editors and IDEs.
  • client/.gitignore: Added a .gitignore file to exclude unnecessary files and directories from version control, such as compiled output, node_modules, and IDE-specific files.

Angular client setup:

MacMat01 and others added 16 commits March 8, 2025 11:54
Replaced the SingletonMeta pattern with a standard class implementation. Introduced thread-safe methods for loading, saving, and configuring data paths. This simplifies the design and improves readability while maintaining concurrency safety.
Introduce logging to provide detailed information on MongoDB connection success or failure. Replaced `print` statements with `logger` to standardize output and improve traceability. This enhances debugging and monitoring capabilities for the database connection process.
Reorganized and encapsulated functionality into the `DataIdMapper` class for better maintainability and clarity. Removed redundant functions and replaced print statements with logging for consistent logging practices. Updated the invoker to use the refactored `DataIdMapper` methods for data normalization.
Break down main functions into smaller, reusable modules for better readability and maintainability. Introduced error handling, logging improvements, type hints, and modernized list comprehensions. Simplified Spark data loading, preprocessing, aggregation, and configuration setup with enhanced structure.
Eliminated the explicit read mode ("r") when opening the config file, as it is the default behavior in Python. This simplifies the code without altering its functionality.
Expanded the .gitignore to include commonly ignored files and directories for Python, Angular, and Visual Studio Code. This ensures better handling of development artifacts while retaining coverage for existing tools like Spark and JetBrains IDEs.
This commit introduces the core setup for the Angular project, including `.editorconfig` for consistent coding styles, `.gitignore` for ignoring unnecessary files, and `angular.json` with project-specific configurations. Additionally, placeholder HTML content is included in the `app.component.html` to kickstart development.
Deleted the default template and associated styles in app.component.html to prepare for custom implementation. This cleanup ensures the base file is ready for project-specific development.
…lder. Implementation of switching logic of floor and the associated rooms.
@MacMat01 MacMat01 added documentation Improvements or additions to documentation ui All that concerns the visualization of data labels Mar 13, 2025
@MacMat01 MacMat01 linked an issue Mar 13, 2025 that may be closed by this pull request
MacMat01 and others added 6 commits March 13, 2025 09:59
Apply consistent code formatting to HTML, SCSS, TypeScript, and JSON files across the project. This improves readability, maintains standardized spacing and conventions, and ensures uniformity in code structure.
Refactored HTML to improve accessibility and readability by replacing repetitive `<div>` tags with `<label>` elements. Introduced SCSS variables and mixins for consistent styling and easier maintenance. Enhanced `HeatmapComponent` with `OnChanges` lifecycle, private methods, and improved type annotations for better code clarity and functionality. Updated `AppComponent` for stricter typing and modular methods like `fetchRooms` to simplify data handling.
Implemented `OnChanges` interface to dynamically handle input changes. Encapsulated map initialization and vector layer creation into private methods. Enhanced type safety and ensured consistent code styling throughout the component.
Downgraded pymongo to 4.8.0 and added geojson 3.2.0. These changes ensure compatibility with project requirements and enhance functionality.
Introduce a Flask-based API with endpoints for querying IoT analytics data and integrate it with an Angular data service for HTTP requests. Update dependencies to include Flask and Flask-CORS, and replace direct HTTP calls in the Angular component with the new data service.
MacMat01 and others added 13 commits March 15, 2025 11:30
Updated the repository URL in README files to the correct project name. Added a missing `cd` command in the web setup instructions and removed an unnecessary blank line for clarity.
Enhanced all README files with clearer instructions, better structure, and additional details for setup, environment configuration, and running components. Improved navigation with table of contents and expanded explanations for Angular, Python/Flask, and overall project setup.
This change relocates the config module under the src directory to improve the project's structure and maintainability. All references to the module should now point to its new location.
Renamed the environment in `environment.yml` and adjusted references in `README.md` accordingly. This change clarifies the project's focus on IoT analytics.
Eliminated the Flask-based API implementation and its related dependencies from the project. Updated imports and cleaned up configurations to reflect the removal. This streamlines the codebase for Spark-focused operations.
This commit introduces a `requirements.txt` file specifying Flask, Flask-CORS, and PyMongo as dependencies. These libraries are necessary for API development, handling CORS, and MongoDB integration respectively.
@MacMat01 MacMat01 linked an issue Mar 16, 2025 that may be closed by this pull request
@MacMat01 MacMat01 merged commit 2b93b3b into main Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation ui All that concerns the visualization of data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write README Documentation Setup UI with Angular/VueJS
3 participants