chore(deps): update pre-commit config and apply bulk formatting

- build(pre-commit): upgrade hooks (django-upgrade 1.29.1, uv 0.9.7, ruff 0.14.3, bandit 1.8.6)
- build(pre-commit): add uv-lock hook, tombi TOML formatter, prettier-plugin-packagejson
- build(pre-commit): disable Django check hooks (commented out)
- build(pre-commit): switch npx → bunx for prettier execution
- build(node): add bun.lock, update prettier config with schema + packagejson plugin
- style: apply ruff format to all Python files (comments, spacing, imports)
- style: apply prettier format to all JS/CSS files (comment styles, spacing)
- style: apply tombi format to pyproject.toml (reordered sections, consistent formatting)
- chore: remove emoji from bash script comments for consistency

BREAKING CHANGE: Django check and migration check hooks disabled in pre-commit config
This commit is contained in:
2025-11-05 14:34:08 +01:00
parent b1b5207888
commit c106792e78
35 changed files with 615 additions and 328 deletions

View File

@@ -1,10 +1,11 @@
/**
* dashboard.css - Styles specific to dashboard functionality
* dashboard.css - Styles specific to dashboard functionality
*/
/* Theme variables */
/*Theme variables */
:root {
/* Light theme (default) */
/* Light theme (default)*/
--bg-color: #f8f9fa;
--text-color: #212529;
--card-bg: #ffffff;
@@ -26,7 +27,7 @@
color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Dark theme */
/*Dark theme*/
[data-bs-theme="dark"] {
--bg-color: #212529;
--text-color: #f8f9fa;
@@ -47,7 +48,7 @@
--icon-color: #6ea8fe;
}
/* Apply theme variables */
/*Apply theme variables*/
body {
background-color: var(--bg-color);
color: var(--text-color);
@@ -91,7 +92,7 @@ body {
background-color: var(--sidebar-bg) !important;
}
/* Sidebar navigation styling with dark mode support */
/*Sidebar navigation styling with dark mode support*/
.sidebar .nav-link {
color: var(--text-color);
transition: all 0.2s ease;
@@ -168,7 +169,7 @@ body {
color: var(--text-color);
}
/* Footer */
/*Footer*/
footer {
background-color: var(--card-bg);
border-top: 1px solid var(--border-color);
@@ -182,7 +183,7 @@ footer {
background-color: var(--navbar-bg);
}
/* Dashboard grid layout */
/*Dashboard grid layout*/
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
@@ -193,7 +194,7 @@ footer {
/* Increased gap */
}
/* Dashboard widget cards */
/*Dashboard widget cards*/
.dashboard-widget {
display: flex;
@@ -254,7 +255,7 @@ footer {
/* Consistent padding */
}
/* Chart widgets */
/*Chart widgets*/
.chart-widget .card-body {
display: flex;
flex-direction: column;
@@ -270,7 +271,7 @@ footer {
/* Ensure it takes full width of card body */
}
/* Stat widgets / Stat Cards */
/*Stat widgets / Stat Cards*/
.stat-card {
text-align: center;
padding: 1.5rem;
@@ -319,7 +320,7 @@ footer {
margin-bottom: 0;
}
/* Dashboard theme variations */
/*Dashboard theme variations*/
.dashboard-theme-light .card {
background-color: #fff;
}
@@ -344,7 +345,7 @@ footer {
color: #adb5bd;
}
/* Time period selector */
/*Time period selector*/
.time-period-selector {
display: flex;
align-items: center;
@@ -367,7 +368,7 @@ footer {
font-size: 0.875rem;
}
/* Custom metric selector */
/*Custom metric selector*/
.metric-selector {
max-width: 100%;
overflow-x: auto;
@@ -388,7 +389,7 @@ footer {
border-radius: 0.25rem;
}
/* Dashboard loading states */
/*Dashboard loading states*/
.widget-placeholder {
min-height: 300px;
background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
@@ -413,7 +414,7 @@ footer {
}
}
/* Dashboard empty states */
/*Dashboard empty states*/
.empty-state {
padding: 2.5rem;
@@ -449,7 +450,7 @@ footer {
margin-top: 1rem;
}
/* Responsive adjustments */
/*Responsive adjustments*/
@media (width <=767.98px) {
.dashboard-grid {
grid-template-columns: 1fr;
@@ -471,7 +472,7 @@ footer {
}
}
/* Preserve colored background for stat cards in both themes */
/*Preserve colored background for stat cards in both themes*/
.col-md-3 .card.stats-card.bg-primary {
background-color: var(--bs-primary) !important;
color: white !important;
@@ -507,7 +508,7 @@ footer {
color: var(--bs-dark) !important;
}
/* Stats Cards Alignment Fix (Bottom Align, No Overlap) */
/*Stats Cards Alignment Fix (Bottom Align, No Overlap)*/
.stats-row {
display: flex;
flex-wrap: wrap;

View File

@@ -1,8 +1,9 @@
/**
* style.css - Global styles for the application
* style.css - Global styles for the application
*/
/* General Styles */
/*General Styles*/
body {
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
@@ -25,14 +26,14 @@ body {
/* Ensures body takes at least full viewport height */
}
/* Navbar adjustments (if needed, Bootstrap usually handles this well) */
/*Navbar adjustments (if needed, Bootstrap usually handles this well)*/
.navbar {
box-shadow: 0 2px 4px rgb(0 0 0 / 5%);
/* Subtle shadow for depth */
}
/* Helper Classes */
/*Helper Classes*/
.text-truncate-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
@@ -49,7 +50,7 @@ body {
min-width: 150px;
}
/* Card styles */
/*Card styles*/
.card {
border: 1px solid #e0e5e9;
@@ -91,7 +92,7 @@ body {
font-weight: 600;
}
/* Sidebar enhancements */
/*Sidebar enhancements*/
.sidebar {
background-color: #fff;
@@ -159,7 +160,7 @@ body {
margin-top: 1rem;
}
/* Dashboard stats cards */
/*Dashboard stats cards*/
.stats-card {
border-radius: 0.5rem;
overflow: hidden;
@@ -176,14 +177,14 @@ body {
opacity: 0.8;
}
/* Chart containers */
/*Chart containers*/
.chart-container {
width: 100%;
height: 300px;
position: relative;
}
/* Loading overlay */
/*Loading overlay*/
.loading-overlay {
position: fixed;
top: 0;
@@ -197,7 +198,7 @@ body {
z-index: 9999;
}
/* Table enhancements */
/*Table enhancements*/
.table {
border-color: #e0e5e9;
}
@@ -224,7 +225,7 @@ body {
/* Consistent hover with sidebar */
}
/* Form improvements */
/*Form improvements*/
.form-control,
.form-select {
border-color: #ced4da;
@@ -246,7 +247,7 @@ body {
/* Bootstrap focus shadow */
}
/* Button styling */
/*Button styling*/
.btn {
border-radius: 0.375rem;
@@ -281,13 +282,13 @@ body {
border-color: #545b62;
}
/* Alert styling */
/*Alert styling*/
.alert {
border-radius: 0.375rem;
padding: 0.9rem 1.25rem;
}
/* Chat transcript styling */
/*Chat transcript styling*/
.chat-transcript {
background-color: #f8f9fa;
border: 1px solid #e9ecef;
@@ -304,7 +305,7 @@ body {
margin-bottom: 0;
}
/* Footer styling */
/*Footer styling*/
footer {
background-color: #fff;
@@ -318,7 +319,7 @@ footer {
/* Added for sticky footer */
}
/* Responsive adjustments */
/*Responsive adjustments*/
@media (width <=767.98px) {
.main-content {
margin-left: 0;
@@ -337,7 +338,7 @@ footer {
}
}
/* Print styles */
/*Print styles*/
@media print {
.sidebar,
.navbar,