feat: add TourProgressController and related entities for user tour progress tracking

- Implemented TourProgressController to handle API endpoints for tracking guided tours seen by users.
- Created UserTourProgress entity to store the highest version of tours seen by each user.
- Developed UserTourProgressRepository for database interactions related to user tour progress.
- Introduced TourProgressService to manage business logic for marking tours as seen and retrieving seen maps.
- Added comprehensive tests for API endpoints and entity behavior to ensure functionality and data integrity.
This commit is contained in:
hamed
2026-08-10 09:34:14 +03:30
parent 7716b40f6a
commit 20c8eaaad9
27 changed files with 16088 additions and 477 deletions
+47
View File
@@ -1096,3 +1096,50 @@ html, body { max-width: 100%; overflow-x: hidden; }
[data-theme="dark"] .ck.ck-icon,
[data-theme="dark"] .ck.ck-icon :is(path, polygon, rect, circle, ellipse) { fill: currentColor; }
[data-theme="dark"] .ck.ck-button.ck-on .ck-icon :is(path, polygon, rect, circle, ellipse) { fill: var(--primary); }
/* ── تور راهنما ───────────────────────────────────────────────────────────
driver.js استایل خودش را دارد؛ اینجا با توکن‌های پنل بازنویسی می‌شود تا در
تم روشن و تیره یکسان و خوانا بماند. */
.driver-popover.cp-tour {
background: var(--surface);
color: var(--text);
border: 1px solid var(--border);
border-radius: var(--r);
box-shadow: var(--shadow-lg);
font-family: inherit;
max-width: 320px;
}
.driver-popover.cp-tour .driver-popover-title {
color: var(--text);
font-size: 14px;
font-weight: 700;
}
.driver-popover.cp-tour .driver-popover-description {
color: var(--text-2);
font-size: 13px;
line-height: 1.9;
}
.driver-popover.cp-tour .driver-popover-progress-text {
color: var(--text-3);
font-size: 12px;
}
.driver-popover.cp-tour .driver-popover-close-btn { color: var(--text-3); }
.driver-popover.cp-tour .driver-popover-navigation-btns button {
background: var(--surface-2);
color: var(--text-2);
border: 1px solid var(--border);
border-radius: var(--r-sm);
font-family: inherit;
font-size: 12px;
text-shadow: none;
padding: 5px 12px;
}
.driver-popover.cp-tour .driver-popover-navigation-btns button:last-child {
background: var(--primary);
color: var(--on-primary);
border-color: var(--primary);
}
.driver-popover.cp-tour .driver-popover-arrow-side-top { border-top-color: var(--surface); }
.driver-popover.cp-tour .driver-popover-arrow-side-bottom { border-bottom-color: var(--surface); }
.driver-popover.cp-tour .driver-popover-arrow-side-left { border-left-color: var(--surface); }
.driver-popover.cp-tour .driver-popover-arrow-side-right { border-right-color: var(--surface); }