Skip to content

Conversation

@Saby-Bishops
Copy link
Member

fixes #9297

Summary

  • migrate planet-rating forms to typed FormGroup models
  • update rate/comment controls and form interactions to align with typed values

Testing

  • npm run lint

https://chatgpt.com/codex/tasks/task_e_690508941d14832dafef79d397c28765

@Saby-Bishops Saby-Bishops marked this pull request as ready for review November 3, 2025 18:46
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

openDialog() {
this.popupForm.patchValue(this.rateForm.value);
this.isPopupOpen = true;
this.dialogsForm
.confirm($localize`Rating`, popupFormFields, this.popupForm)
.pipe(debug('Dialog confirm'))

P1 Badge Passing typed FormGroup breaks rating dialog

The newly typed popupForm is created with FormBuilder and passed to dialogsForm.confirm(...). DialogsFormService.confirm only recognises UntypedFormGroup instances as existing forms; a typed FormGroup fails that check and is rewrapped via UntypedFormBuilder.group(formGroup), which treats the FormGroup object as configuration and produces controls named controls, value, etc rather than rate/comment. When the modal template later looks up rate or comment, the dialog will render without those controls or throw “Cannot find control 'rate'”, preventing users from submitting a comment. The dialog service or call site needs to accept typed groups without recreating them.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Saby-Bishops Saby-Bishops requested a review from Mutugiii November 3, 2025 18:54
@Mutugiii Mutugiii removed the triage label Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

src/app/shared/forms/planet-rating.component.ts

5 participants