- 
                Notifications
    
You must be signed in to change notification settings  - Fork 5
 
Port assignable page to TypeScript (CORE-1256) #2779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even in the first commit this was done as delete-and-create. There's not much here.
I had to move the dynamic imports to their own JS file because they break Jest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and other "sections" files show as changes in the individual commits. Beyond adding types and formatting, nothing has changed in them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated to the assignable page, but it's a change that needs to be made to a bunch of tests to make them quieter. I happened to refer to this file for some testing ideas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't test the frontend but changes seem alright
- Convert 7 JavaScript files to TypeScript with comprehensive type definitions - Add proper prop typing for all React components following Roy's guidelines - Maintain existing functionality while adding type safety - Create test file with TypeScript type validation tests - Support complex nested data structures with proper typing Files converted: - assignable.js -> assignable.tsx (main page component) - sections/banner/banner.js -> banner.tsx - sections/about/about.js -> about.tsx - sections/courses/courses.js -> courses.tsx - sections/faq/faq.js -> faq.tsx - sections/overlapping-quote/overlapping-quote.js -> overlapping-quote.tsx - sections/cta/cta.js -> cta.tsx 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
8d88c35    to
    f6b86b1      
    Compare
  
    
Summary
Files converted
assignable.js->assignable.tsx(main page component with complete data type)sections/banner/banner.tsx(with image metadata and heading props)sections/about/about.tsx(with carousel image array typing)sections/courses/courses.tsx(with BookData and CourseList typing)sections/faq/faq.tsx(with FAQItem and accordion item typing)sections/overlapping-quote/overlapping-quote.tsx(with CTA props)sections/cta/cta.tsx(with link and button text props)Test plan
Resolves CORE-1256
🤖 Generated with Claude Code