-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
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.
…based on select list. Implementing removeOldData method
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 theREADME.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:
client/README.md
: Created a README file for the Angular client, including instructions for development server setup, code scaffolding, building, and running tests.client/package.json
: Added dependencies and scripts necessary for building and running the Angular client.client/angular.json
: Configured the Angular project settings, including build and serve options.client/src/app/app-routing.module.ts
: Set up the routing module for the Angular application.client/src/app/app.component.html
: Implemented the main layout and components for the Angular client.client/src/app/app.component.scss
: Added styles for the Angular client components.client/src/app/app.component.spec.ts
: Created unit tests for the Angular client components.