fix(appointments): give the resource strip a way back to the doctor
Returning from a resource to the doctor's own booking meant clicking the doctor tab in the row above, which nobody found. The resource strip now leads with a "نوبتهای خود پزشک" tab that clears the resource, so going in and coming back happen in the same row. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -888,9 +888,14 @@ export default function AppointmentsPage() {
|
||||
(پزشک ناظر)، پس کاربر بین نوبتهای پزشک و دستگاههای تحت نظرش جابهجا میشود. */}
|
||||
{supervisedResources.length > 0 && (
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 10, padding: '0 16px', borderBottom: '1px solid var(--border)' }}>
|
||||
<span style={{ fontSize: 12, color: 'var(--text-3)', flexShrink: 0 }}>منابعِ این پزشک</span>
|
||||
<span style={{ fontSize: 12, color: 'var(--text-3)', flexShrink: 0 }}>نوبتدهی</span>
|
||||
{/* تب نخست راهِ بازگشت است: بدون آن، برگشتن از منبع به خودِ پزشک فقط با
|
||||
کلیک روی تب بالایی ممکن بود و کاربر دنبالش میگشت. */}
|
||||
<DoctorTabs
|
||||
doctors={supervisedResources.map((r) => ({ uuid: r.uuid, name: r.name }))}
|
||||
doctors={[
|
||||
{ uuid: '', name: 'نوبتهای خود پزشک' },
|
||||
...supervisedResources.map((r) => ({ uuid: r.uuid, name: r.name })),
|
||||
]}
|
||||
selected={selectedResourceUuid}
|
||||
onSelect={selectResource}
|
||||
showAll={false}
|
||||
|
||||
Reference in New Issue
Block a user