Skip to content

Commit

Permalink
Minor fixes [SLE-88]
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgfeller committed Jun 6, 2023
1 parent 365c5a8 commit 4e7d339
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
1 change: 0 additions & 1 deletion public/assets/client/note/client-note.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@

.textarea-label {
margin: 0 0 7px 20px;
color: black;
font-weight: normal;
}

Expand Down
2 changes: 1 addition & 1 deletion public/assets/dashboard/dashboard-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ if (userPanel) {
let userActivityFilterParam = new URLSearchParams();
const paramsData = userPanel?.querySelectorAll('.filter-chip-active span');
for (const paramData of paramsData) {
// Add [] to param name so that its
// Add [] to param name so that it can be read as an array
userActivityFilterParam.append(paramData.dataset.paramName + '[]', paramData.dataset.paramValue);
// Add filter id to filterIds param
userActivityFilterParam.append('filterIds[]', paramData.dataset.filterId);
Expand Down
2 changes: 1 addition & 1 deletion public/assets/general/general-css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ especially elements from the layout.html.php */
color: #9B9B9B;
}
footer a:hover{
color: black;
color: var(--grey-secondary-text-color);
}
.footer-icon{
width: 1em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
.responsive-table th {
font-weight: 500;
white-space: nowrap;
color: black;
letter-spacing: 0.03em;
}
.responsive-table a{
Expand Down
15 changes: 9 additions & 6 deletions src/Application/Actions/User/Ajax/ListUserActivityAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public function __construct(
* @param ResponseInterface $response The response
* @param array $args
*
* @return ResponseInterface The response
* @throws \JsonException
*
* @return ResponseInterface The response
*/
public function __invoke(
ServerRequestInterface $request,
Expand All @@ -49,11 +49,14 @@ public function __invoke(

$userResultDataArray = $this->userActivityFinder->findUserActivityReport($userIds);

// Filter ids have to be saved too
$this->filterSettingSaver->saveFilterSettingForAuthenticatedUser(
$queryParams['filterIds'] ?? null,
FilterModule::DASHBOARD_USER_ACTIVITY
);
// Filter ids have to be saved too but only if there are query params
// otherwise the saved dashboard filter settings are deleted when loading user read
if (isset($queryParams['filterIds'])) {
$this->filterSettingSaver->saveFilterSettingForAuthenticatedUser(
$queryParams['filterIds'],
FilterModule::DASHBOARD_USER_ACTIVITY
);
}

return $this->responder->respondWithJson($response, $userResultDataArray);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Domain/User/Service/UserActivityFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private function findUserActivitiesGroupedByDate(int|array $userIds): array
// If there are multiple users, add the user name before time and action name
if (count($userIds) > 1) {
$userRow = $this->userFinderRepository->findUserById($userActivity->userId);
$userActivity->timeAndActionName = '<span style="color: black">' . $userRow['first_name'] . ' '
$userActivity->timeAndActionName = '<span style="color: var(--black-text-color)">' . $userRow['first_name'] . ' '
. $userRow['surname'] . '</span> • ' .
$userActivity->timeAndActionName;
}
Expand Down

0 comments on commit 4e7d339

Please sign in to comment.