Skip to content

Comments

[Issue #591] Fix fire danger levels for DeSoto Parish.#592

Merged
LouisFettet merged 1 commit intomainfrom
louis/591/fix-fire-danger-for-desoto-parish
Nov 7, 2025
Merged

[Issue #591] Fix fire danger levels for DeSoto Parish.#592
LouisFettet merged 1 commit intomainfrom
louis/591/fix-fire-danger-for-desoto-parish

Conversation

@LouisFettet
Copy link
Member

Fixes #591

DeSoto Parish is named "Desoto" in the fire danger data and was named "De Soto" in the TopoJSON, which caused the data for the parish to not render on the map (since a match could not be made).

Additionally, LaSalle Parish was rendering as "La Salle".

Proposed changes

  • Update the TopoJSON with the official parish names so that the map renders the names appropriately.
  • Normalize the names in both the fire danger data and the TopoJSON (by removing spaces and periods and converting the strings to lowercase) prior to matching them.

Screenshots

Before

Screenshot from 2025-11-07 10-34-22

After

Screenshot from 2025-11-07 10-34-30

Acceptance criteria validation

  • DeSoto Parish fire danger data rendering correctly.

Other details

Alternate solutions

Ideally we would match the parishes based on a unique identifier, but continuing to match by name was the quicker solution here.

Possible drawbacks

N/A

Requested feedback

N/A

…y normalizing parish names from both fire weather data and TopoJSON. Ensure that all rendered parish names match official names.

Signed-off-by: Louis Fettet <louis@pelicanstate.digital>
@vercel
Copy link

vercel bot commented Nov 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ldaf Ready Ready Preview Comment Nov 7, 2025 4:36pm

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Coverage after merging louis/591/fix-fire-danger-for-desoto-parish into main will be

72.61%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src/lib/components/Accordion
   Accordion.svelte100%100%100%100%
   AccordionItem.svelte94.12%55.56%100%100%23, 33, 46, 48
   context.ts100%100%100%100%
   index.ts100%100%100%100%
src/lib/components/Alert
   Alert.svelte94.74%57.14%100%100%34, 41, 41
   alertOptions.ts0%0%0%0%1, 1–3
   index.ts0%0%0%0%1, 1–3
src/lib/components/Analytics
   Analytics.svelte0%0%0%0%1, 1, 10–19, 2, 20–29, 3, 30, 4–9
   index.ts0%0%0%0%1, 1
src/lib/components/AnnouncementBanner
   AnnouncementBanner.svelte100%100%100%100%
   index.ts0%0%0%0%1, 1
src/lib/components/Breadcrumbs
   Breadcrumbs.svelte100%100%100%100%
   index.ts0%0%0%0%1, 1–2
src/lib/components/Button
   Button.svelte96.77%50%100%100%41, 50
   buttonOptions.ts100%100%100%100%
   index.ts100%100%100%100%
src/lib/components/Card
   Card.svelte97.50%0%100%100%7
   CardGroup.svelte100%100%100%100%
   index.ts100%100%100%100%
src/lib/components/ConditionalWrapper
   ConditionalWrapper.svelte100%100%100%100%
   index.ts100%100%100%100%
src/lib/components/ContactCard
   ContactCard.svelte98.91%93.75%100%100%54
   Section.svelte100%100%100%100%
   index.ts100%100%100%100%
src/lib/components/ContentfulLoginLink
   ContentfulLoginLink.svelte0%0%0%0%1, 1, 10–19, 2, 20–29, 3, 30–37, 4–9
   index.ts0%0%0%0%1, 1
src/lib/components/ContentfulRichText
   ContentfulRichText.svelte97.87%0%100%100%25
   context.ts98%80%100%100%8
   headings.ts93.18%50%100%95.12%37–39
   index.ts0%0%0%0%1, 1
   predicates.ts90.76%100%70%94.12%68, 76, 79, 82, 85
   types.ts0%0%0%0%1, 1, 10–19, 2, 20–29, 3, 30–39, 4, 40–49, 5, 50–59, 6, 60–69, 7, 70–79, 8, 80–89, 9, 90–95
src/lib/components/ContentfulRichText/nodes
   AssetHyperlink.svelte100%100%100%100%
   Blockquote.svelte100%100%100%100%
   EmbeddedAssetBlock.svelte87.50%0%100%100%12, 16, 20, 29, 36–38
   EmbeddedEntry.svelte100%100%100%100%
   EmbeddedEntryBlock.svelte100%100%100%100%
   EntryHyperlink.svelte100%100%100%100%
   Heading1.svelte100%100%100%100%
   Heading2.svelte100%100%100%100%
   Heading3.svelte100%100%100%100%
   Heading4.svelte100%100%100%100%
   Heading5.svelte100%100%100%100%
   Heading6.svelte100%100%100%100%
   Hr.svelte100%100%100%100%
   Hyperlink.svelte100%100%100%100%
   ListItem.svelte100%100%100%100%
   Node.svelte93.33%0%100%100%7
   OrderedList.svelte100%100%100%100%
   Paragraph.svelte100%100%100%100%
   Table.svelte100%100%100%100%
   TableCell.svelte100%100%100%100%
   TableHeaderCell.svelte100%100%100%100%
   TableRow.svelte100%100%100%100%
   Text.svelte100%100%100%100%
   UnorderedList.svelte100%100%100%100%
   index.ts100%100%100%100%
src/lib/components/CopyToClipboard
   CopyToClipboard.svelte97.62%60%100%100%75, 75
   index.ts100%100%100%100%
src/lib/components/Date
   Date.svelte0%0%0%0%1, 1, 10–18, 2–9
   index.ts0%0%0%0%1, 1
src/lib/components/DotGovBanner
   DotGovBanner.svelte0%0%0%0%1, 1, 10, 100–109, 11, 110–119, 12, 120–121, 13–19, 2, 20–29, 3, 30–39, 4, 40–49, 5, 50–59, 6, 60–69, 7, 70–79, 8, 80–89, 9, 90–99
   index.ts0%0%0%0%1, 1
src/lib/components/Event
   Event.svelte0%0%0%0%1, 1, 10–19, 2, 20–29, 3, 30–39, 4, 40–49, 5, 50–59, 6, 60–69, 7, 70–74, 8–9
   index.ts0%0%0%0%1, 1
src/lib/components/Footer
   Footer.server.ts0%0%0%0%1, 1, 10, 100–107, 11–19, 2, 20–29, 3, 30–39, 4, 40–49, 5, 50–59, 6, 60–69, 7, 70–79, 8, 80–89, 9, 90–99
   Footer.svelte97.22%68.75%100%100%36, 61, 67, 67, 73
   index.ts0%0%0%0%1, 1
src/lib/components/Header
   Header.svelte98.75%83.33%100%100%45
   index.ts0%0%0%0%1, 1
src/lib/components/Header/Nav
   Nav.server.ts0%0%0%0%1, 1, 10, 100–109, 11, 110–119, 12, 120–129, 13, 130–139, 14, 140–143, 15–19, 2, 20–29, 3, 30–39, 4, 40–49, 5, 50–59, 6, 60–69, 7, 70–79, 8, 80–89, 9, 90–99
   Nav.svelte97.06%83.33%100%100%19
   NavItem.svelte100%100%100%100%
   NavLink.svelte100%100%100%100%
   NavMenu.svelte96.40%70.59%100%100%100, 77, 79, 88, 98
   index.ts100%100%100%100%
src/lib/components/Header/Title
   Title.svelte97.44%0%100%100%15
   index.ts100%100%100%100%
src/lib/components/Header/User
   User.svelte94.74%0%100%100%10
   index.ts100%100%100%100%
src/lib/components/Icon
   Icon.svelte87.50%20%100%100%19, 19, 24, 24
   index.ts100%100%100%100%
src/lib/components/Image
   BlurhashRenderer.svelte100%100%100%100%
   Image.svelte90.91%68.25%66.67%96.36%116, 150, 166, 168–169, 202, 207, 212–216, 242–246, 246, 268–269, 33, 35, 38, 50, 61, 61–62, 72–74
   drawBlurhash.ts0%0%0%0%1, 1, 10–13, 2–9
   index.ts100%100%100%100%
   renderBlurhash.ts100%100%100%100%
src/lib/components/IntersectionObserver
   IntersectionObserver.svelte94.74%75%100%100%36–37, 39
   RootIntersectionObserver.svelte85.19%0%100%92%14–17
   index.ts100%100%100%100%
   key.ts100%100%100%100%
   observe.ts99.03%93.33%100%100%73
src/lib/components/Link
   Link.svelte100%100%100%100%
   index.ts100%100%100%100%
src/lib/components/LoadingSpinner
   LoadingSpinner.svelte0%0%0%0%1, 1–5
   index.ts0%0%0%0%1, 1
src/lib/components/LoginLink
   LoginLink.svelte0%0%0%0%1, 1, 10–19, 2, 20–21, 3–9
   index.ts0%0%0%0%1, 1
src/lib/components/Logo
   Logo.svelte100%100%100%100%
   index.ts100%100%100%100%
   logoOptions.ts100%100%100%100%
src/lib/components/LogoutLink
   LogoutLink.svelte100%100%100%100%
   index.ts100%100%100%100%
src/lib/components/NewsEntry
   

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

@LouisFettet LouisFettet requested a review from Copilot November 7, 2025 16:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the parish name matching logic in the fire danger map by introducing a normalization function to handle inconsistent naming conventions between the TopoJSON geographic data and the fire weather API data.

Key changes:

  • Added a normalizeParishName function that removes periods and spaces, and converts to lowercase for consistent matching
  • Updated the parish matching logic to use normalized names from both datasets
  • Renamed "De Soto" to "DeSoto" in the TopoJSON data

Reviewed Changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
parishes.json Updated TopoJSON data with corrected parish name spelling (De Soto → DeSoto)
+page.svelte Added name normalization function with documentation and updated parish matching logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@LouisFettet LouisFettet merged commit 9031384 into main Nov 7, 2025
14 checks passed
@LouisFettet LouisFettet deleted the louis/591/fix-fire-danger-for-desoto-parish branch November 7, 2025 16:57
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.

DeSoto Parish not rendering fire weather data properly.

1 participant