-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdmin_FlowchartDiagram
More file actions
61 lines (51 loc) · 1.46 KB
/
Admin_FlowchartDiagram
File metadata and controls
61 lines (51 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
flowchart TB
%% =========================
%% ADMIN ENTRY
%% =========================
A[Open Admin Panel] --> B{Admin already logged in}
B -- No --> L[Admin Login]
B -- Yes --> D[Admin Dashboard]
L --> LOK{Login success}
LOK -- No --> LERR[Show error and retry] --> L
LOK -- Yes --> D
%% =========================
%% DASHBOARD ACTIONS
%% =========================
D -->|Manage Food Items| F[Food Management]
D -->|Manage Restaurants| R[Restaurant Management]
D -->|Run Data Refresh| DR[Trigger Data Refresh]
D -->|View Logs| LOG[View System Logs]
%% =========================
%% FOOD MANAGEMENT
%% =========================
F -->|Add New| FA[Add Food Item]
F -->|Edit Existing| FE[Edit Food Item]
F -->|Deactivate| FD[Deactivate Food Item]
FA --> FS{Save}
FE --> FS
FD --> FS
FS -- Success --> F
FS -- Error --> FERR[Show validation or save error] --> F
%% =========================
%% RESTAURANT MANAGEMENT
%% =========================
R -->|Add New| RA[Add Restaurant]
R -->|Edit Existing| RE[Edit Restaurant]
R -->|Deactivate| RD[Deactivate Restaurant]
RA --> RS{Save}
RE --> RS
RD --> RS
RS -- Success --> R
RS -- Error --> RERR[Show error] --> R
%% =========================
%% DATA REFRESH
%% =========================
DR --> CONF{Confirm refresh}
CONF -- Yes --> RUN[Run ingestion pipeline]
CONF -- No --> D
RUN --> DONE[Show refresh status] --> D
%% =========================
%% LOG VIEW
%% =========================
LOG -->|Filter by date or service| LOGV[View logs]
LOGV --> D