feat: Implement upsell functionality with repository and service layers

This commit is contained in:
2026-05-02 23:30:23 +03:30
parent 4928901a08
commit 5930c1ad6f
26 changed files with 3130 additions and 126 deletions

View File

@@ -1,22 +1,296 @@
.wrap {
#sodino-app {
direction: rtl;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: #0f172a;
}
.sodino-admin-table th,
.sodino-admin-table td {
#sodino-app * {
box-sizing: border-box;
}
#sodino-app a {
color: inherit;
text-decoration: none;
}
#sodino-app .sd-app {
display: grid;
gap: 24px;
}
#sodino-app .sd-header {
background: #eef2ff;
border: 1px solid #c7d2fe;
border-radius: 1rem;
padding: 24px;
}
#sodino-app .sd-header-title {
font-size: 1.75rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
#sodino-app .sd-header-subtitle {
color: #475569;
line-height: 1.75;
}
#sodino-app .sd-page-layout {
display: grid;
gap: 24px;
}
@media (min-width: 1024px) {
#sodino-app .sd-page-layout {
grid-template-columns: 260px minmax(0, 1fr);
}
}
#sodino-app .sd-sidebar {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 1rem;
padding: 18px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
#sodino-app .sd-sidebar-title {
font-size: 1rem;
font-weight: 700;
margin-bottom: 1rem;
}
#sodino-app .sd-nav {
display: grid;
gap: 10px;
}
#sodino-app .sd-nav-link {
display: block;
padding: 0.85rem 1rem;
border-radius: 0.9rem;
font-weight: 600;
color: #334155;
background: #f8fafc;
border: 1px solid transparent;
transition: all 0.15s ease-in-out;
text-align: right;
}
.page-title-action {
float: left;
#sodino-app .sd-nav-link:hover,
#sodino-app .sd-nav-link.active {
background: #e0e7ff;
border-color: #c7d2fe;
color: #1e3a8a;
}
.rtl .page-title-action {
float: left;
#sodino-app .sd-nav-link.disabled {
color: #94a3b8;
pointer-events: none;
background: #f8fafc;
}
input.regular-text,
select.regular-text,
input.small-text {
direction: rtl;
#sodino-app .sd-main {
display: grid;
gap: 24px;
}
#sodino-app .sd-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 1.25rem;
padding: 24px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
#sodino-app .sd-stat-grid {
display: grid;
gap: 20px;
}
@media (min-width: 1024px) {
#sodino-app .sd-stat-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
#sodino-app .sd-card-title {
font-size: 1rem;
font-weight: 700;
color: #334155;
margin-bottom: 1rem;
}
#sodino-app .sd-card-amount {
font-size: 2rem;
font-weight: 700;
color: #0f172a;
}
#sodino-app .sd-btn {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 0.85rem;
padding: 0.75rem 1.2rem;
font-weight: 600;
transition: all 0.15s ease-in-out;
border: 1px solid transparent;
cursor: pointer;
}
#sodino-app .sd-btn-primary {
background: #4338ca;
color: #ffffff;
}
#sodino-app .sd-btn-primary:hover {
background: #3730a3;
}
#sodino-app .sd-btn-secondary {
background: #f8fafc;
color: #0f172a;
border-color: #e2e8f0;
}
#sodino-app .sd-btn-secondary:hover {
background: #eef2ff;
}
#sodino-app .sd-btn-danger {
background: #ef4444;
color: #ffffff;
}
#sodino-app .sd-btn-danger:hover {
background: #dc2626;
}
#sodino-app .sd-form-group {
display: grid;
gap: 12px;
margin-bottom: 18px;
}
#sodino-app .sd-label {
font-weight: 700;
text-align: right;
color: #0f172a;
}
#sodino-app .sd-input,
#sodino-app .sd-select,
#sodino-app .sd-textarea {
width: 100%;
border-radius: 1rem;
border: 1px solid #cbd5e1;
padding: 0.85rem 1rem;
background: #ffffff;
color: #0f172a;
outline: none;
}
#sodino-app .sd-input:focus,
#sodino-app .sd-select:focus,
#sodino-app .sd-textarea:focus {
border-color: #6366f1;
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
#sodino-app .sd-input[readonly],
#sodino-app .sd-select[disabled] {
background: #f8fafc;
}
#sodino-app .sd-helper {
color: #64748b;
font-size: 0.95rem;
}
#sodino-app .sd-table-wrapper {
overflow-x: auto;
}
#sodino-app table.sd-table {
width: 100%;
border-collapse: collapse;
min-width: 700px;
}
#sodino-app table.sd-table th,
#sodino-app table.sd-table td {
padding: 1rem 1.25rem;
text-align: right;
border-bottom: 1px solid #e2e8f0;
vertical-align: middle;
}
#sodino-app table.sd-table thead th {
background: #f8fafc;
color: #475569;
font-weight: 700;
}
#sodino-app table.sd-table tbody tr:nth-child(odd) {
background: #f8fafc;
}
#sodino-app table.sd-table tbody tr:hover {
background: #eef2ff;
}
#sodino-app .sd-badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.35rem 0.8rem;
border-radius: 9999px;
font-size: 0.85rem;
font-weight: 700;
}
#sodino-app .sd-badge--success {
background: #dcfce7;
color: #166534;
}
#sodino-app .sd-badge--danger {
background: #fee2e2;
color: #991b1b;
}
#sodino-app .sd-alert {
border-radius: 1rem;
padding: 18px 20px;
margin-bottom: 20px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
#sodino-app .sd-alert-success {
background: #ecfdf5;
color: #064e3b;
border: 1px solid #d1fae5;
}
#sodino-app .sd-alert-error {
background: #fef2f2;
color: #7f1d1d;
border: 1px solid #fecdd3;
}
#sodino-app .sd-grid-3 {
display: grid;
gap: 20px;
}
@media (min-width: 768px) {
#sodino-app .sd-grid-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
#sodino-app .sd-chart-card {
min-height: 300px;
}