Add business workshop management UI with Jalali scheduling and shared dashboard polish.

Includes workshop list/edit/details, registrations modal, category tree, shared EmptyState/RichTextEditor/toasts, and fixes for the Jalali date picker and thumbnail field layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-22 12:22:27 +03:30
co-authored by Cursor
parent 89269dff04
commit d5aca8bea7
76 changed files with 4719 additions and 974 deletions
@@ -0,0 +1,251 @@
.wrapper {
width: 100%;
max-width: 100%;
min-width: 0;
border: 1px solid rgba(148, 163, 184, 0.35);
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.7);
overflow: visible;
transition: border-color 0.2s, box-shadow 0.2s;
box-sizing: border-box;
}
.wrapper:focus-within {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
}
.toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 2px;
padding: 4px 6px;
border-bottom: 1px solid rgba(148, 163, 184, 0.2);
background: rgba(248, 250, 252, 0.8);
position: relative;
z-index: 2;
}
.toolbar button {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
color: var(--text-secondary);
transition: background 0.15s, color 0.15s;
}
.toolbar button:hover:not(:disabled) {
background: rgba(var(--primary-rgb) / 0.1);
color: var(--primary);
}
.toolbar button:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.dirBtn {
width: auto;
min-width: 34px;
padding: 0 6px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.02em;
}
.divider {
width: 1px;
height: 20px;
background: rgba(148, 163, 184, 0.3);
margin: 0 4px;
}
.colorPickerWrap {
position: relative;
width: 28px;
height: 28px;
}
.colorBtn {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
width: 28px;
height: 28px;
border-radius: 6px;
color: var(--text-secondary);
transition: background 0.15s, color 0.15s;
}
.colorBtn:hover,
.colorBtnActive {
background: rgba(var(--primary-rgb) / 0.1);
color: var(--primary);
}
.colorSwatch {
width: 14px;
height: 3px;
margin-top: 1px;
border-radius: 2px;
background: var(--text-primary);
}
.colorPopover {
position: absolute;
top: calc(100% + 6px);
left: 50%;
transform: translateX(-50%);
z-index: 20;
display: flex;
flex-direction: column;
gap: 8px;
min-width: 168px;
padding: 10px;
border: 1px solid rgba(148, 163, 184, 0.35);
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.98);
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.colorVisualInput {
width: 100%;
height: 32px;
padding: 0;
border: 1px solid rgba(148, 163, 184, 0.35);
border-radius: 6px;
cursor: pointer;
background: transparent;
}
.hexField {
display: flex;
flex-direction: column;
gap: 4px;
}
.hexLabel {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
color: var(--text-muted);
}
.hexInput {
min-height: var(--field-height);
padding: var(--field-padding-y) var(--field-padding-x);
border: 1px solid rgba(148, 163, 184, 0.35);
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.9);
font-size: var(--field-font-size);
font-family: var(--font-ui);
color: var(--text-primary);
text-transform: uppercase;
}
.hexInput:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
}
.editorShell {
position: relative;
width: 100%;
max-width: 100%;
min-width: 0;
overflow: hidden;
}
.editor {
width: 100%;
max-width: 100%;
min-width: 0;
min-height: 140px;
padding: var(--field-padding-y) var(--field-padding-x);
padding-bottom: 40px;
font-size: var(--field-font-size);
line-height: 1.5;
color: var(--text-primary);
outline: none;
box-sizing: border-box;
overflow-x: hidden;
overflow-wrap: break-word;
word-break: break-word;
unicode-bidi: isolate;
}
.editor:empty::before {
content: attr(data-placeholder);
color: var(--text-muted);
pointer-events: none;
}
.editor > * {
max-width: 100%;
box-sizing: border-box;
}
.editor ul,
.editor ol {
padding-inline-start: 1.5em;
padding-inline-end: 0;
margin: 0.5em 0;
}
.editor p {
margin: 0 0 0.5em;
}
.editor p:last-child {
margin-bottom: 0;
}
.editor blockquote {
margin: 0.5em 0;
margin-inline-start: 1.5em;
margin-inline-end: 0;
padding: 0;
border: 0;
}
.editor img {
max-width: 100%;
height: auto;
border-radius: var(--radius-sm);
margin: 0.5em 0;
cursor: pointer;
}
.editor img.richTextImageSelected {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
.resizeHandle {
position: absolute;
width: 12px;
height: 12px;
border: 2px solid white;
border-radius: 3px;
background: var(--primary);
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
cursor: nwse-resize;
z-index: 2;
padding: 0;
}
.uploadError {
margin: 0;
padding: 6px 10px;
font-size: 12px;
color: #b91c1c;
background: rgba(239, 68, 68, 0.08);
border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}