Remove directory filter group headings
CI / Fingerprint diagnostics (production deployment temporarily disabled) (pull_request) Canceled after 0s
CI / test (pull_request) Canceled after 9m21s

This commit is contained in:
codex committed 2026-11-16 17:44:46 +03:00
1 parent 4fd6ed72e3
commit 8d332c7d60
6 files changed
+9 -20

No files matched your search

-8
View File
@@ -679,14 +679,6 @@
border: 0;
}
.directory__filter-legend {
grid-column: 1 / -1;
margin-bottom: 2px;
color: #374151;
font-size: 12px;
font-weight: 700;
}
.directory__field {
display: grid;
gap: 5px;
+3 -6
View File
@@ -50,8 +50,7 @@
<details class="directory__filter-panel">
<summary>Дополнительные фильтры{% if has_extra_filters %} · применены{% endif %}</summary>
<div class="directory__filters">
<fieldset class="directory__filter-group">
<legend class="directory__filter-legend">Статус и данные</legend>
<fieldset class="directory__filter-group" aria-label="Статус и данные">
<label class="directory__field">Статус<select class="directory__input" name="status">
<option value="" {% if not filters.status %}selected{% endif %}>Все статусы</option>
<option value="active" {% if filters.status == "active" %}selected{% endif %}>Работает</option>
@@ -69,8 +68,7 @@
<option value="false" {% if filters.has_academic_degree == "false" %}selected{% endif %}>Нет учёной степени</option>
</select></label>
</fieldset>
<fieldset class="directory__filter-group">
<legend class="directory__filter-legend">Повышение квалификации</legend>
<fieldset class="directory__filter-group" aria-label="Повышение квалификации">
<label class="directory__field">Курсы в профиле<select class="directory__input" name="has_training">
<option value="" {% if not filters.has_training %}selected{% endif %}>Любое</option>
<option value="true" {% if filters.has_training == "true" %}selected{% endif %}>Есть курсы</option>
@@ -81,8 +79,7 @@
</label>
<small class="directory__filter-hint" id="training-year-hint">Если указан только год, будут показаны сотрудники с курсами.</small>
</fieldset>
<fieldset class="directory__filter-group">
<legend class="directory__filter-legend">Период обнаружения</legend>
<fieldset class="directory__filter-group" aria-label="Период обнаружения">
<label class="directory__field">От<input class="directory__input" type="date" name="started_from" value="{{ filters.started_from }}"></label>
<label class="directory__field">До<input class="directory__input" type="date" name="started_to" value="{{ filters.started_to }}"></label>
</fieldset>
+3 -3
View File
@@ -1,3 +1,3 @@
APP_VERSION = "2.1.1"
FRONTEND_VERSION = "2.1.1"
BACKEND_VERSION = "2.1.1"
APP_VERSION = "2.1.2"
FRONTEND_VERSION = "2.1.2"
BACKEND_VERSION = "2.1.2"
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "miem-workers"
version = "2.1.1"
version = "2.1.2"
description = "MIEM employees parser, admin API, and web admin"
requires-python = ">=3.11"
dependencies = [
+1 -1
View File
@@ -22,7 +22,7 @@ def test_health_returns_versions():
response = TestClient(app).get("/api/health")
assert response.status_code == 200
assert response.json()["backend_version"] == "2.1.1"
assert response.json()["backend_version"] == "2.1.2"
def test_api_employees_and_stats_require_admin_session():
+1 -1
View File
@@ -230,7 +230,7 @@ def test_public_page_data_minimization_and_safe_links(db_session, export):
assert "javascript:" not in fragment.text and "private@example.org" not in fragment.text
assert "javascript:" not in response.text and "private@example.org" not in response.text
assert "/admin/employees/" not in response.text and "/admin/logout" not in response.text
assert "Backend 2.1.1 · Frontend 2.1.1" in response.text
assert "Backend 2.1.2 · Frontend 2.1.2" in response.text
assert "Вход в систему" in response.text
assert client.get("/admin/directory", follow_redirects=False).status_code in (302, 303, 401, 403)
assert "Сотрудники не найдены" in client.get("/admin/council?q=missing").text