Skip to content
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

SAK-50348 Microsoft Integration: Visual and logical improvements #12781

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

mollerentornos
Copy link
Contributor

Jira: https://sakaiproject.atlassian.net/browse/SAK-50348

This feature introduces several essential modifications to provide users with more insight into the status of Microsoft integration and to manage bindings with an improved UI/UX. Additionally, it includes changes to the logical structure by adding batch requests to enhance performance.

This development has been sponsored by Universitat de Lleida (UdL)

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

<div class="row form-group">
<div class="col-sm-5 text-end text-bold" th:text="#{sync_start_date}"></div>
<input type="date" id="syncDateFrom" th:value="${syncDateFrom}" th:aria-label="#{index.start_date}" />
<div class="col-sm-4">
<input type="date" id="syncDateFrom" th:value="${syncDateFrom}" th:aria-label="#{index.start_date}" />
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

</div>
<div class="row form-group">
<div class="col-sm-5 text-end text-bold" th:text="#{sync_end_date}"></div>
<input type="date" id="syncDateTo" th:value="${syncDateTo}" th:aria-label="#{index.end_date}" />
<div class="col-sm-4">
<input type="date" id="syncDateTo" th:value="${syncDateTo}" th:aria-label="#{index.end_date}" />
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="row table-space table-row">

<div class="col-sm-5">
<select name="new_group" id="selectedGroupId">
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

</div>

<div class="col-sm-5">
<select name="new_channel" id="selectedChannelId">
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

</div>

<div class="col-sm-2 text-center">
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="col-sm-5" th:text="${groupsMap[entry.groupId]?.title} ?: '???'"></div>
<div class="col-sm-5" th:text="${channelsMap[entry.channelId]?.name ?: '???'}"></div>
<div th:if="${entry.channelId != ''}" class="col-sm-2 text-center" >
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="col-lg-4" th:title="#{group.id(${grouprow.groupId})}" style="display: flex;justify-content: center; gap: 3px;">
<span th:text="${groupsMap[grouprow.groupId]?.title} ?: '???'"></span>
<div th:if="${T(org.sakaiproject.microsoft.api.data.SynchronizationStatus).ERROR == grouprow.status}" style="position: relative;">
<i class="fa fa-info" style="color: red;" role="button" th:onclick="toggleErrorsDropdown('dropdown-' +[[${grouprow.groupId}]])"></i>
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

if(payload.getSiteIdList() == null || payload.getSiteIdList().size() == 0 || payload.getSyncDateFrom() == null || payload.getSyncDateTo() == null) {
Model model) throws Exception {

if (payload.getSiteIdList() == null || payload.getSiteIdList().isEmpty() ||
Copy link
Contributor

Choose a reason for hiding this comment

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

CollectionUtils.isEmpty(payload.getSiteIdList())

try {
handleExistingTeamBinding(autoConfigSessionBean, site, (SiteSynchronization) o, syncDateFrom, syncDateTo, credentials);
} catch (Exception e) {
autoConfigSessionBean.addError(siteId, site.getTitle(), e.getMessage());
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we here put a log.error too?

}

if (o instanceof String) {
autoConfigSessionBean.addStatus(1, site.getTitle());
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the status: 0, 1, 2, 3, etc should be defined as constants. But is ok

private ConcurrentHashMap<String, Object> newGroupLock = new ConcurrentHashMap<>();

//private static final int MAX_CHANNELS = 3;
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete comment

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

@mollerentornos
Copy link
Contributor Author

PR updated

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

<div class="col-sm-5" th:text="${groupsMap[entry.groupId]?.title} ?: '???'"></div>
<div class="col-sm-5" th:text="${channelsMap[entry.channelId]?.name ?: '???'}"></div>
<div th:if="${entry.channelId != ''}" class="col-sm-2 text-center" >
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

<div class="col-sm-5" th:text="${groupsMap[entry.groupId]?.title} ?: '???'"></div>
<div class="col-sm-5" th:text="${channelsMap[entry.channelId]?.name ?: '???'}"></div>
<div th:if="${entry.channelId != ''}" class="col-sm-2 text-center" >
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

<div class="col-sm-5" th:text="${groupsMap[entry.groupId]?.title} ?: '???'"></div>
<div class="col-sm-5" th:text="${channelsMap[entry.channelId]?.name ?: '???'}"></div>
<div th:if="${entry.channelId != ''}" class="col-sm-2 text-center" >
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="col-lg-4" th:title="#{group.id(${grouprow.groupId})}" style="display: flex;justify-content: center; gap: 3px;">
<span th:text="${groupsMap[grouprow.groupId]?.title} ?: '???'"></span>
<div th:if="${T(org.sakaiproject.microsoft.api.data.SynchronizationStatus).ERROR == grouprow.status}" style="position: relative;">
<i class="fa fa-info" style="color: red;" th:aria-label="#{error.user_synchronization}" role="button" th:onclick="toggleErrorsDropdown('dropdown-' +[[${grouprow.groupId}]])"></i>
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

<div class="col-sm-5" th:text="${groupsMap[entry.groupId]?.title} ?: '???'"></div>
<div class="col-sm-5" th:text="${channelsMap[entry.channelId]?.name ?: '???'}"></div>
<div th:if="${entry.channelId != ''}" class="col-sm-2 text-center" >
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="col-lg-4" th:title="#{group.id(${grouprow.groupId})}" style="display: flex;justify-content: center; gap: 3px;">
<span th:text="${groupsMap[grouprow.groupId]?.title} ?: '???'" th:aria-label="#{group.id(${grouprow.groupId})}"></span>
<div th:if="${T(org.sakaiproject.microsoft.api.data.SynchronizationStatus).ERROR == grouprow.status}" style="position: relative;">
<i class="fa fa-info" style="color: red;" th:aria-label="#{error.user_synchronization}" role="button" th:onclick="toggleErrorsDropdown('dropdown-' +[[${grouprow.groupId}]])"></i>
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

<div class="col-sm-5" th:text="${groupsMap[entry.groupId]?.title} ?: '???'"></div>
<div class="col-sm-5" th:text="${channelsMap[entry.channelId]?.name ?: '???'}"></div>
<div th:if="${entry.channelId != ''}" class="col-sm-2 text-center" >
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="col-lg-4" th:title="#{group.id(${grouprow.groupId})}" style="display: flex;justify-content: center; gap: 3px;">
<span th:text="${groupsMap[grouprow.groupId]?.title} ?: '???'" th:aria-label="#{group.id(${grouprow.groupId})}"></span>
<div th:if="${T(org.sakaiproject.microsoft.api.data.SynchronizationStatus).ERROR == grouprow.status}" style="position: relative;">
<i class="fa fa-info" style="color: red;" th:aria-label="#{error.user_synchronization}" role="button" th:onclick="toggleErrorsDropdown('dropdown-' +[[${grouprow.groupId}]])"></i>
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

<div class="col-sm-5" th:text="${groupsMap[entry.groupId]?.title} ?: '???'"></div>
<div class="col-sm-5" th:text="${channelsMap[entry.channelId]?.name ?: '???'}"></div>
<div th:if="${entry.channelId != ''}" class="col-sm-2 text-center" >
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="col-lg-4" th:title="#{group.id(${grouprow.groupId})}" style="display: flex;justify-content: center; gap: 3px;">
<span th:text="${groupsMap[grouprow.groupId]?.title} ?: '???'" th:aria-label="#{group.id(${grouprow.groupId})}"></span>
<div th:if="${T(org.sakaiproject.microsoft.api.data.SynchronizationStatus).ERROR == grouprow.status}" style="position: relative;">
<i class="fa fa-info" style="color: red;" th:aria-label="#{error.user_synchronization}" role="button" th:onclick="toggleErrorsDropdown('dropdown-' +[[${grouprow.groupId}]])"></i>
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

<div class="col-sm-5" th:text="${groupsMap[entry.groupId]?.title} ?: '???'"></div>
<div class="col-sm-5" th:text="${channelsMap[entry.channelId]?.name ?: '???'}"></div>
<div th:if="${entry.channelId != ''}" class="col-sm-2 text-center" >
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="col-lg-4" th:title="#{group.id(${grouprow.groupId})}" style="display: flex;justify-content: center; gap: 3px;">
<span th:text="${groupsMap[grouprow.groupId]?.title} ?: '???'" th:aria-label="#{group.id(${grouprow.groupId})}"></span>
<div th:if="${T(org.sakaiproject.microsoft.api.data.SynchronizationStatus).ERROR == grouprow.status}" style="position: relative;">
<i class="fa fa-info" style="color: red;" th:aria-label="#{error.user_synchronization}" role="button" th:onclick="toggleErrorsDropdown('dropdown-' +[[${grouprow.groupId}]])"></i>
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

<div class="col-sm-5" th:text="${groupsMap[entry.groupId]?.title} ?: '???'"></div>
<div class="col-sm-5" th:text="${channelsMap[entry.channelId]?.name ?: '???'}"></div>
<div th:if="${entry.channelId != ''}" class="col-sm-2 text-center" >
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="col-lg-4" th:title="#{group.id(${grouprow.groupId})}" style="display: flex;justify-content: center; gap: 3px;">
<span th:text="${groupsMap[grouprow.groupId]?.title} ?: '???'" th:aria-label="#{group.id(${grouprow.groupId})}"></span>
<div th:if="${T(org.sakaiproject.microsoft.api.data.SynchronizationStatus).ERROR == grouprow.status}" style="position: relative;">
<i class="fa fa-info" style="color: red;" th:aria-label="#{error.user_synchronization}" role="button" th:onclick="toggleErrorsDropdown('dropdown-' +[[${grouprow.groupId}]])"></i>
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

@mollerentornos
Copy link
Contributor Author

@jesusmmp PR updated with requested changes

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

</div>
</div>
<div id="row-container" class="row-list">
<div class="row table-space table-row">
<div class="col-sm-5">
<select name="new_group" id="selectedGroupId" th:aria-label="#{new_group}">
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

</div>

<div class="col-sm-5">
<select name="new_channel" id="selectedChannelId" th:aria-label="#{new_channel}">
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

</div>

<div class="col-sm-2 text-center">
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="col-lg-4" th:title="#{group.id(${grouprow.groupId})}" style="display: flex;justify-content: center; gap: 3px;">
<span th:text="${groupsMap[grouprow.groupId]?.title} ?: '???'" th:aria-label="#{group.id(${grouprow.groupId})}"></span>
<div th:if="${T(org.sakaiproject.microsoft.api.data.SynchronizationStatus).ERROR == grouprow.status}" style="position: relative;">
<i class="fa fa-info" style="color: red;" role="button" th:aria-label="#{error.user_synchronization}" th:onclick="toggleErrorsDropdown('dropdown-' +[[${grouprow.groupId}]])"></i>
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

</div>
</div>
<div id="row-container" class="row-list">
<div class="row table-space table-row">
<div class="col-sm-5">
<select name="new_group" id="selectedGroupId" th:aria-label="#{new_group}">
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

</div>

<div class="col-sm-5">
<select name="new_channel" id="selectedChannelId" th:aria-label="#{new_channel}">
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

</div>

<div class="col-sm-2 text-center">
<i role="button"
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

<div class="col-lg-4" th:title="#{group.id(${grouprow.groupId})}" style="display: flex;justify-content: center; gap: 3px;">
<span th:text="${groupsMap[grouprow.groupId]?.title} ?: '???'" th:aria-label="#{group.id(${grouprow.groupId})}"></span>
<div th:if="${T(org.sakaiproject.microsoft.api.data.SynchronizationStatus).ERROR == grouprow.status}" style="position: relative;">
<i class="fa fa-info" style="color: red;" role="button" th:aria-label="#{error.user_synchronization}" th:onclick="toggleErrorsDropdown('dropdown-' +[[${grouprow.groupId}]])"></i>
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

@jesusmmp jesusmmp merged commit 3b9fa25 into sakaiproject:master Dec 11, 2024
3 of 4 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.

2 participants