Skip to content

fix(local): satisfy strictTemplates for keyboard and chat handlers#2697

Open
Sunilsbcloud wants to merge 1 commit into
login-refactorfrom
feature/7jul26-local-fix
Open

fix(local): satisfy strictTemplates for keyboard and chat handlers#2697
Sunilsbcloud wants to merge 1 commit into
login-refactorfrom
feature/7jul26-local-fix

Conversation

@Sunilsbcloud

Copy link
Copy Markdown
Collaborator

Summary

  • Fix Angular strictTemplates compile errors blocking ng serve in the local Docker stack.
  • Use Event with instanceof KeyboardEvent narrowing in keyboard-accessible handlers (review-list, badges-certificates, chat-room preview).
  • Make switchStatus event optional in review-list to match the template binding.
  • Allow openEditMessagePopup to accept a Message object (template) or numeric index (existing tests), resolving the Message vs number type error.

Test plan

  • npx ng build v3 -c development
  • docker compose / TUI: practera-app container reaches watch mode on port 4200
  • Smoke: badges list keyboard activation, chat edit message popup opens

Made with Cursor

Widen keyboard event parameters to Event with runtime narrowing and allow
openEditMessagePopup to accept a Message or index so v3 builds cleanly under
Angular strict template checking in the local Docker dev server.

Co-authored-by: Cursor <cursoragent@cursor.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