Skip to content

Conversation

@Aryan0102
Copy link
Contributor

Changes

Made the assign team rules tab, along with a few hooks (didn't end up using, but still useful). Made modifications to the rule row component to allow for passing in widths for the 3 sections as well as background colors for selections.

Notes

The assign team rules tab is currently using the placeholder rules, it is surprisingly difficult to use actual rulesets and rules until the ruleset and ruleset types page get fully completed. Most of the functionality was tested and works except populating previously assigned teams, and actually saving. I will be implementing those when the ruleset and ruleset types pages are complete.

Screenshots

Screenshot 2025-12-11 at 4 27 31 PM

To Do

  • Saving rule assignments
  • Getting the previously assigned teams
  • SHOULD BE OK TO MERGE, JUST HARD TO BUILD ABOVE FEATURES WITHOUT ACTUAL RULESETS/RULES

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #3825

Copy link
Contributor

@Zwendle Zwendle left a comment

Choose a reason for hiding this comment

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

Just some really small nits but otherwise looks amazing!

Copy link
Contributor

@cielbellerose cielbellerose left a comment

Choose a reason for hiding this comment

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

this looks so great! love how the team selection tabs on the right worked out, great idea. just a couple little comments and I second zach about making sure rule sections can be clicked and that would highlight/unhighlight all their children too

toast.success(`Placeholder: Would save ${toAdd.length} additions and ${toRemove.length} removals`);
}

history.push(routes.RULES);
Copy link
Contributor

Choose a reason for hiding this comment

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

could we go back to ruleset page instead of the ruleset types view

setAssignments(newAssignments);
};

const handleSaveAndExit = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like if there were no changes there should be like a toast message saying 'No rules selected to assign' instead of still jumping back to the other page - but up to you

return isLeaf && isRuleAssigned(r.ruleId) ? '#a05858' : '#5e5e5e';
}}
textColor="#000000"
onRowClick={(r) => handleRuleToggle(r.ruleId)}
Copy link
Contributor

Choose a reason for hiding this comment

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

its a bit odd that we can't click the right side of the ruleRow to select but not high priority to fix

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.

5 participants