You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great! 9d5d5aa implements the Bottom Sheet properly and is able to display incidents.
A couple more fixes:
Incidents don't seem to be exactly the 5 most recent incidents. Looking at firebase, the last 5 incidents should be from the last 2 weeks. It might be because of the way the 5 incidents are being grabbed incidents.slice(0, 5) is just grabbing the first 5 incidents in the incidents list and if the incidents list is ordered from creation date in ascending order, this would just grab the first 5 incidents every time
Ensure this list is updated every time a new incident is added
First incident at the top should be the most recent incident. Currently, it seems to display the oldest incidents instead.
Use the incident and severity labels from import { INCIDENT_TYPE_LABELS, SEVERITY_LEVEL_LABELS, PIN_COLORS } from '@/constants/Incidents' rather than displaying the raw severity and incident type fields. This just ensures we're using the same labels throughout all the screens
Latest Incidents Bottom Sheet that displays latest incidents near user
Bottom Sheets: https://m3.material.io/components/bottom-sheets/overview
Ones used for React Native: https://github.com/gorhom/react-native-bottom-sheet
The text was updated successfully, but these errors were encountered: