Skip to content

Conversation

@halsk
Copy link
Contributor

@halsk halsk commented May 5, 2025

Extract text rendering logic into a dedicated utility

Changes

  • Created a new utility file textRenderer.tsx to centralize text rendering logic
  • Extracted the following functions from TeamAnalysisResultPage.tsx:
    • renderPlainText: Renders text with support for markdown-like syntax
    • extractSectionContent: Extracts content from specific sections in markdown
    • isObviouslyNotJson: Utility to check if a string is not in JSON format
  • Removed duplicate utility functions from TeamAnalysisResultPage.tsx
  • Updated imports and references to use the centralized utility

Testing

  • Verified that the application renders text content correctly
  • Ensured all text formatting features continue to work as expected

Link to Devin run

https://app.devin.ai/sessions/bd312646e7764096b101a07e6c521532

Requested by: Hal Seki (hal@code4japan.org)

devin-ai-integration bot and others added 2 commits May 4, 2025 23:18
Co-Authored-By: Hal Seki <hal@plants-web.jp>
Co-Authored-By: Hal Seki <hal@plants-web.jp>
@halsk halsk merged commit 1b97d31 into hackdays-io:main May 5, 2025
1 check passed
@halsk halsk deleted the devin/1746400423-issue-5 branch May 6, 2025 05:19
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