Reveal invalid fields in collapsed directory filters
CI / test (pull_request) Successful in 11m10s
CI / Fingerprint diagnostics (production deployment temporarily disabled) (pull_request) Skipped

This commit is contained in:
codex committed 2026-11-16 15:44:51 +03:00
1 parent 1b58ab6b77
commit a4b0b50a0a
6 files changed
+12 -7

No files matched your search

+5
View File
@@ -148,6 +148,11 @@
}, 4000);
}
const directoryFilters = document.querySelector(".directory__filter-panel");
directoryFilters?.addEventListener("invalid", () => {
directoryFilters.open = true;
}, true);
setupColumns();
setupProgress();
})();
+1 -1
View File
@@ -175,5 +175,5 @@
</dialog>
{% endblock %}
{% block scripts %}
<script src="/static/admin.js"></script>
<script src="/static/admin.js?v={{ frontend_version }}"></script>
{% endblock %}
+3 -3
View File
@@ -1,3 +1,3 @@
APP_VERSION = "2.1.0"
FRONTEND_VERSION = "2.1.0"
BACKEND_VERSION = "2.1.0"
APP_VERSION = "2.1.1"
FRONTEND_VERSION = "2.1.1"
BACKEND_VERSION = "2.1.1"
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "miem-workers"
version = "2.1.0"
version = "2.1.1"
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.0"
assert response.json()["backend_version"] == "2.1.1"
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.0 · Frontend 2.1.0" in response.text
assert "Backend 2.1.1 · Frontend 2.1.1" 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