Skip to content

Update Seed templates with KCRHA needs#156

Open
ihsankahveci wants to merge 10 commits intokc-pit-2026-testfrom
seed-templates
Open

Update Seed templates with KCRHA needs#156
ihsankahveci wants to merge 10 commits intokc-pit-2026-testfrom
seed-templates

Conversation

@ihsankahveci
Copy link
Copy Markdown
Collaborator

📄 Description

This PR updates the KCRHA Point-in-Time Count seed PDF generation with:

  1. Improved PDF Layout:

    • Replaced "KCRHA" text header with logo image (kcrha_logo.png, 150px width)
    • Optimized spacing between sections to fit content on single page
    • Changed positioning logic to use Math.min for text/QR sections to bring locations closer to top
    • Positioned footer at bottom of page for consistent layout across all templates
  2. Standardized Template Structure: - Allows to create different seed templates for each subregion using a seed_templates.json

    • Split combined subheaders into separate subheader and subsubheader fields
    • Added subsubheaderEn and subsubheaderEs to all template regions
    • Ensures consistent structure across all 7 regions: seattle, north, east, snoqualmie valley, southeast, south, Vashon
    • Cleaned up trailing spaces in template headers
  3. Updated PDF Filename Format:

    • New format: kcrha-pit-2026-{templatekey}-{count}-seeds-{timestamp}.pdf
    • Example: kcrha-pit-2026-seattle-150-seeds-20260122143025.pdf
    • Includes year, template region, seed count, and timestamp for better organization

✅ Checklist

  • Tests added/updated where needed
  • Docs added/updated if applicable
  • I have linked the issue this PR closes (if any)

🔗 Related Issues

N/A

💡 Type of change

Type Checked?
🐞 Bug fix [ ]
✨ New feature [x]
📝 Documentation [ ]
♻️ Refactor [x]
🛠️ Build/CI [ ]
Other (explain) [ ]

🧪 How to test

  1. Generate seeds for any template region
  2. Verify the generated PDF has KCRHA logo at top, fits on single page, and footer at bottom
  3. Check filename format: kcrha-pit-2026-{region}-{count}-seeds-{timestamp}.pdf
  4. Test with different template regions to verify consistency

ihsankahveci and others added 4 commits January 20, 2026 17:57
…rdized templates

- Replace KCRHA text header with logo image (kcrha_logo.png)
- Improve PDF layout spacing and positioning
- Use Math.min for text/QR positioning to bring locations closer to top
- Position footer at bottom of page for consistent layout
- Update PDF filename format to: kcrha-pit-2026-{templatekey}-{count}-seeds-{timestamp}.pdf
- Standardize all template regions with consistent subheader/subsubheader structure
- Split long subheaders into separate subheader and subsubheader fields
- Add subsubheaderEn/Es to all templates (north, east, snoqualmie valley, southeast, south, Vashon)
- Clean up trailing spaces in template headers

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ihsankahveci ihsankahveci changed the base branch from main to test January 22, 2026 22:37
@anantmittal anantmittal changed the base branch from test to kc-pit-2026-test January 23, 2026 22:25
ihsankahveci and others added 6 commits January 30, 2026 16:26
…rdized templates

- Replace KCRHA text header with logo image (kcrha_logo.png)
- Improve PDF layout spacing and positioning
- Use Math.min for text/QR positioning to bring locations closer to top
- Position footer at bottom of page for consistent layout
- Update PDF filename format to: kcrha-pit-2026-{templatekey}-{count}-seeds-{timestamp}.pdf
- Standardize all template regions with consistent subheader/subsubheader structure
- Split long subheaders into separate subheader and subsubheader fields
- Add subsubheaderEn/Es to all templates (north, east, snoqualmie valley, southeast, south, Vashon)
- Clean up trailing spaces in template headers

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

1 participant