Skip to content

Refactor/selected speaker event activity dropdowns - #1135

Merged
ako3131 merged 13 commits into
masterfrom
refactor/selected-speaker-event-activity-dropdowns
Oct 23, 2026
Merged

ako3131 merged 13 commits into
masterfrom
refactor/selected-speaker-event-activity-dropdowns

Conversation

@ako3131

@ako3131 ako3131 commented Oct 20, 2026

Copy link
Copy Markdown

ref: https://app.clickup.com/t/9014802374/86bcgwtr3

UI Changes:

  • Category and Selection Plan moved into the Activity Type row.
  • Category list is grouped into "With a selection plan for {type}" and "Without a selection plan".
  • Selection Plan lists only plans that accept the chosen type and category; it's disabled until a category is picked.
  • Changing the type or category clears a selected plan that no longer accepts them.
  • A saved plan that no longer matches still shows on load, so it can be replaced or cleared.
  • On a saved presentation, non-presentation types are greyed out. The old disabled flag was ignored by react-select, so the now-unreachable downgrade popup is removed.
  • handleChangeSelectionPlan copies errors instead of writing into the parent's prop.

@ako3131
ako3131 requested a balanced review from Copilot October 20, 2026 23:03
@ako3131 ako3131 self-assigned this Oct 20, 2026
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e9e9377a-d30d-456d-bbdb-0429385285d8
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

Static review identified no blocking issues in the dropdown changes or accompanying tests; tests were not executed.

No open issues 🎉

What changed in this PR

Refines activity dropdowns so category and selection-plan choices reflect the selected activity type.

Changes:

  • Groups categories and filters selection plans by compatibility.
  • Clears incompatible plans after changes while preserving saved plans on load.
  • Prevents saved presentation downgrades and adds regression coverage.
File Description
src/​i18n/​en.json Adds dropdown labels and removes obsolete downgrade text.
src/​components/​forms/​event-form/​index.js Updates dropdown layout, matching, and selection handling.
src/​components/​forms/​event-form/​__tests__/​event-form.test.js Tests matching, saved selections, type restrictions, and error-prop immutability.
src/​components/​forms/​event-form/​__tests__/​event-form-notify.test.js Updates selection-plan fixtures with event types.

Review effort: Balanced

@santipalenque santipalenque left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM , I added a guard on track to prevent a crash

@ako3131
ako3131 merged commit 9310d96 into master Oct 23, 2026
9 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.

3 participants