Skip to content

Switched from checkboxes to Radio buttons in Organization Management #2043

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Lemeri123
Copy link
Contributor

Pull Requests Requirements

  • The PR title includes a brief description of the work done, including the
    Issue number if applicable.
  • The PR includes a video showing the changes for the work done.
  • The PR title follows conventional commit label standards.
  • The changes confirm to the OpenElis Global x3 Styleguide and design
    documentation.
  • The changes include tests or are validated by existing tests.
  • I have read and agree to the Contributing Guidelines of this project.

Summary

Screenshots

[Add relevant screenshots here if applicable]
Screencast from 2025-06-05 13-28-03.webm

Related Issue

[Add a link to the related issue or mention it here if applicable]
closes #2038

Other

[Add any additional information or notes here]

Comment on lines -273 to +271
setSelectedRowIds([...selectedRowIds, row.id]);
}
}}
/>
<TableCell key={cell.id} style={{ textAlign: "center" }}>
<RadioButton
id={`radio-${row.id}`}
name="organization-radio-group"
checked={selectedRowIds.includes(row.id)}
onChange={() => {
setSelectedRowIds([row.id]);
const isActiveCell = row.cells.find((cell) =>
cell.id.endsWith(":active"),
);
let isActiveValue = "";
if (isActiveCell) {
isActiveValue = isActiveCell.value;
}
setDeactivateButton(isActiveValue !== "Y");
}}
labelText=""
style={{ margin: "0 auto" }}
/>
</TableCell>
Copy link
Contributor

Choose a reason for hiding this comment

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

image

so while i was rewriting this page initally i thought why there is now whole list select button when we can select and delete multiple orgs using the API. Hence that was the purpose of adding MultiSelect Check Boxes just because API supports it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ohhh so basing on the backend implementation, we need to keep them as checkboxes??

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@Lemeri123 Lemeri123 Jun 7, 2025

Choose a reason for hiding this comment

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

Ohhh makes sense @adityadeshlahre. I guess maybe @mozzy11 can tell us what to do.

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.

Switch from CheckBoxes to Radio Buttons on the Organization Managment Page
2 participants