Skip to content

Refactor: code cleanup and consistency improvements#218

Merged
ajeetchaulagain merged 1 commit intomasterfrom
refactor/code-cleanup-and-consistency
Mar 27, 2026
Merged

Refactor: code cleanup and consistency improvements#218
ajeetchaulagain merged 1 commit intomasterfrom
refactor/code-cleanup-and-consistency

Conversation

@ajeetchaulagain
Copy link
Copy Markdown
Owner

This pull request primarily refactors import paths for improved consistency and maintainability, corrects heading semantics, and updates component exports. The most important changes are grouped below:

Import Path Refactoring and Consistency

  • Updated relative import paths in several components (GetInTouchSection.tsx, MarkdownRenderer.tsx) to use relative paths instead of absolute ones, ensuring consistency and potentially resolving import issues. [1] [2]
  • Changed the export of InfoCallToAction in index.ts to properly include the component and removed unused exports, ensuring the component is available for imports elsewhere.

Component and Semantic Corrections

  • Fixed the semantic HTML tag for the Heading4 component from h3 to h4 in Heading.tsx, and ensured the correct break statement is present in the heading switch logic. [1] [2]
  • Removed unnecessary conditional assignment in the Icon component, simplifying the logic for retrieving the correct icon from IconMap.

Minor Internal Refactoring

  • Made the Container export in HeroBlank.tsx internal by removing the export keyword, possibly to restrict its usage to within the file.

- Fix Heading4 using styled.h3 instead of styled.h4 (wrong semantic element)
- Fix switch fallthrough: add missing break after case 'h4' in Heading component
- Remove redundant iconName guard in Icon.tsx (double-checked after early return)
- Remove unintended export of internal Container styled component in HeroBlank.tsx
- Replace social-media-icons/styles barrel export with InfoCallToAction export in components/index.ts
- Standardize sibling component imports to use relative paths in MarkdownRenderer and GetInTouchSection

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

Playwright test results

passed  30 passed

Details

stats  30 tests across 2 suites
duration  50.4 seconds
commit  12c31dd

@ajeetchaulagain ajeetchaulagain merged commit 2abdb92 into master Mar 27, 2026
6 checks passed
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