Skip to content

Conversation

@roseeichelmann
Copy link
Contributor

@roseeichelmann roseeichelmann commented Oct 29, 2025

Associated issues

Closes cityofaustin/atd-data-tech#24972

Testing

URL to test:
Local

Steps to test:

  1. Go to the Fatalities tab, click on a crash id hyperlink to route to that Fatality details page
  2. See the summary card with the 4 fields and the map, compare to the issue mock up
  3. By default the map should be using the color streets basemap. Test using all the map controls and updating the basemap type
  4. See that all the maps in the app now use the colorful basemap when app is on light mode

Ship list

  • Check migrations for any conflicts with latest migrations in main branch
  • Confirm Hasura role permissions for necessary access
  • Code reviewed
  • Product manager approved

@roseeichelmann roseeichelmann added the WIP Work in progress label Oct 29, 2025
@netlify
Copy link

netlify bot commented Oct 29, 2025

Deploy Preview for atd-vze-staging failed. Why did it fail? →

Name Link
🔨 Latest commit 1a6363c
🔍 Latest deploy log https://app.netlify.com/projects/atd-vze-staging/deploys/69026a3471f90b0008136200

@roseeichelmann roseeichelmann changed the base branch from main to rose/create_fatality_page_24771 October 29, 2025 19:25
? mapStyleOptions.darkStreets
: mapStyleOptions.lightStreets;
if (useColorStreets) {
return mapStyleOptions.colorStreets;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding the third option of using the colorful streets basemap instead of light vs dark

also -- im not fuly convinced that we shouldnt just make the colorful street map what you see on light mode? so the crashes list page would should the colorful streetmap on light mode too, and dark mode would still show the dark street map on all the maps. 🤷 @johnclary thoughts?

Copy link
Member

@johnclary johnclary Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am in total agreement, and actually wrote this into the issue 😎

As part of the this work—replace the light/dark basemaps with the color street map (streets-v12) on the Location details, crash details, and EMS details pages as well

I wasn't sure about keeping the dark basemap, but I am convinced now that it's the way to go. So yeah, what you said!

Edit: ah, i see i left out the list pages from the scope. I think we should get ride of the light basemap everywhere 👍

Copy link
Contributor Author

@roseeichelmann roseeichelmann Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay i went ahead and updated the light mode streets basemap to use the colorful one for all maps 💯

if (!value || typeof value !== "string") {
return "";
}
return format(parseISO(value), "MM/dd/yyyy h:mm a — E") || "";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this marys preferred formatting with the slashes //'s ? it strays from our other date formatting and i remember once xavier talking about streamlining all or date formatting more

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is. Thanks for flagging it. We have at least 3 different ways of formatting date + time in the app right now. I'd like to get down to just one standard way before we ship this. I'll scope that!

Copy link
Member

@johnclary johnclary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, Rose! I guess I'll hold my approval if you're going to replace the light maps from the list views.

: "TxDOT"}
</td>
</tr>
</tbody>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. If we need to repeat this pattern again, I think we should extract a DataCardBody component from the DataCard component and drop that in as a replacement.

if (!value || typeof value !== "string") {
return "";
}
return format(parseISO(value), "MM/dd/yyyy h:mm a — E") || "";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is. Thanks for flagging it. We have at least 3 different ways of formatting date + time in the app right now. I'd like to get down to just one standard way before we ship this. I'll scope that!

@roseeichelmann roseeichelmann removed the WIP Work in progress label Nov 3, 2025
Copy link
Member

@chiaberry chiaberry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its coming together! I like the colorful basemap

Copy link
Contributor

@mddilley mddilley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love seeing this view getting built out! I flagged one issue with the roadway owner field, but this all looks great. The basemap update looks ✨! 🎨

Roadway owner
</td>
<td>
{crash.is_coa_roadway === true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roseeichelmann I couldn't find a crash that showed City of Austin, and I think it is because it is missing from the query and response (and maybe permissions?). Code to handle looks great!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch Mike!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for catching this!! usually there is an error when you try to access a property that doesnt exist... i wonder why that didnt happen? is it bc the type for Crash.is_coa_roadway is boolean OR null?

Copy link
Member

@frankhereford frankhereford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great Rose, thank you! I think your change of using the colorful map in light mode across the board is a big level up - looks fantastic!

@chiaberry chiaberry self-requested a review November 24, 2025 21:16
Copy link
Contributor

@mddilley mddilley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retested with the latest update, and I can the corresponding roadway owners when looking at on- or off-system records. 🚢 😎

Copy link
Member

@chiaberry chiaberry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! ✅

Copy link
Contributor

@mateoclarke mateoclarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fatality details page: Create summary/map card

6 participants