-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(studio)(qc-iot)(qc-sensor-details)[PWA]: Design mobile view for IoT popup details #398
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
…lick, added necessary functions needed for iot sensor details redesign in .ts
… double tap, non-mobile view unchanged
…to double click the plotted sensor to see graph details--for mobile view
ramoncomendadorjr
changed the title
NOAH Website Mobile View Feature Enhancement: IOT Sensor Details
feat(studio)(qc-iot)(qc-summary)[PWA]: Design mobile view for IoT summary dashboard
Aug 8, 2024
bon-carpo
requested review from
bon-carpo and
kennethliporada
and removed request for
bon-carpo and
kennethliporada
August 8, 2024 15:05
ramoncomendadorjr
changed the title
feat(studio)(qc-iot)(qc-summary)[PWA]: Design mobile view for IoT summary dashboard
feat(studio)(qc-iot)(qc-sensor-details)[PWA]: Design mobile view for IoT popup details
Aug 9, 2024
5 tasks
bon-carpo
reviewed
Aug 15, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update icon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
map-playground.component.ts
getScreenSize(event?)
Description: Monitors window resize events and updates the component's screen dimensions (
screenWidth
andscreenHeight
) whenever the window size changes.Functions for IOT Sensor Details
getFormattedIoTtype(item: any): string
Description: Returns a user-friendly string representation of the IoT type ("Rain" for
'rain'
, "Flood" for'flood'
)getFormattedCategory(item: any): string
Description: Categorizes the data based on the
latest_data
field and IoT type. For rain sensors, it categorizes the intensity as "LIGHT," "HEAVY," "INTENSE," or "TORRENTIAL." For flood sensors, it categorizes the level as "LOW," "MEDIUM," or "HIGH."getStatusDynamicStyle(item: any): { [key: string]: string }
Description: Returns a dynamic style object for the status text based on the sensor's status. Colors: Green for "Active," Grey for "Inactive," and Black for unknown status.
getCategoryDynamicStyle(item: any): { [key: string]: string }
Description: Returns a dynamic style object for the category text based on the sensor's latest data. Colors vary depending on the intensity or level for rain and flood sensors.
Sensor Details in Popup for Mobile Setup
Sensor Graph in Popup for Mobile Setup
async showQcChartMobile(pk: number, appID: string, qcSensorType: QuezonCitySensorType)
**Description: ** Similar function to showQcChart but targeted div is
'qc-mobile-chart'
instead of'graph-dom'
.Main function for adding popup
showQcDataPoints(qcSensorType: QuezonCitySensorType)
Images
Current Design
New Design