Lists and windows: a window with unsaved typing asks before a click outside it, Esc, its X or Cancel closes it; long lists keep their column headings at the top of the screen; active filters get a yellow edge with an x in the search box that clears them all; shift-click ticks a run of rows; and Compact rows in Preferences, with database 4.0.0

This commit is contained in:
johnnyq
2026-11-19 17:27:42 -05:00
parent 3cb42eaaa2
commit 3f00182d78
14 changed files with 475 additions and 7 deletions

View File

@@ -94,6 +94,8 @@ try {
<script src="<?= staticFileUrl('/js/ajax_modal.js') ?>"></script>
<script src="<?= staticFileUrl('/js/confirm_modal.js') ?>"></script>
<script src="<?= staticFileUrl('/js/date_filter.js') ?>"></script>
<script src="<?= staticFileUrl('/js/list_filters.js') ?>"></script>
<script src="<?= staticFileUrl('/js/sticky_table_head.js') ?>"></script>
<script src="<?= staticFileUrl('/js/global_search.js') ?>"></script>
<script src="<?= staticFileUrl('/js/notifications.js') ?>"></script>
<script src="<?= staticFileUrl('/js/ticket_timers.js') ?>"></script>

View File

@@ -75,7 +75,7 @@ header("X-Frame-Options: DENY");
moved to this body utility, so the migration dropped it silently. It matters
because --bs-card-bg is --bs-body-bg - without it every card is the exact
colour of the page and only its border separates the two. */ ?>
<body class="layout-fixed sidebar-expand-lg app-loaded bg-body-tertiary theme-<?= escapeHtml($config_theme) ?>" data-lte-primary="<?= escapeHtml($config_theme) ?>"
<body class="layout-fixed sidebar-expand-lg app-loaded bg-body-tertiary theme-<?= escapeHtml($config_theme) ?><?= !empty($user_config_compact_rows) ? ' itflow-compact' : '' ?>" data-lte-primary="<?= escapeHtml($config_theme) ?>"
data-itflow-phone-country="<?= escapeHtml($country_iso2_array[$session_company_country] ?? '') ?>">
<div class="app-wrapper text-sm">

View File

@@ -7,7 +7,7 @@ $session_user_id = intval($_SESSION['user_id']);
$sql = mysqli_query(
$mysqli,
"SELECT role_is_admin, role_name, user_archived_at, user_avatar, user_config_force_mfa," . (serviceAccountsReady() ? ' user_service_account,' : '') . "
user_config_records_per_page, user_config_theme_dark, user_email, user_name, user_role_id,
user_config_records_per_page, user_config_theme_dark," . (compactRowsReady() ? ' user_config_compact_rows,' : '') . " user_email, user_name, user_role_id,
user_password, user_status, user_token, user_type FROM users
LEFT JOIN user_settings ON users.user_id = user_settings.user_id
LEFT JOIN user_roles ON user_role_id = role_id
@@ -34,6 +34,7 @@ $session_is_admin = isset($row['role_is_admin']) && $row['role_is_admin'] == 1;
$session_user_config_force_mfa = intval($row['user_config_force_mfa']);
$user_config_records_per_page = max(1, intval($row['user_config_records_per_page']));
$user_config_theme_dark = intval($row['user_config_theme_dark']);
$user_config_compact_rows = intval($row['user_config_compact_rows'] ?? 0);
// Check user type is agent aka 1
if ($session_user_type !== 1) {