|
| 1 | +graph LR |
| 2 | + %% --- Style Definitions --- |
| 3 | + classDef new fill:#98fb98,color:#000 |
| 4 | + classDef changed fill:#add8e6,color:#000 |
| 5 | + classDef unchanged fill:#f0f0f0,color:#000 |
| 6 | + |
| 7 | + %% --- Subgraphs --- |
| 8 | + subgraph "Context Providers" |
| 9 | + direction TB |
| 10 | + A["gemini.tsx"] |
| 11 | + B["AppContainer.tsx"] |
| 12 | + end |
| 13 | + |
| 14 | + subgraph "Contexts" |
| 15 | + direction TB |
| 16 | + CtxSession["SessionContext"] |
| 17 | + CtxVim["VimModeContext"] |
| 18 | + CtxSettings["SettingsContext"] |
| 19 | + CtxApp["AppContext"] |
| 20 | + CtxConfig["ConfigContext"] |
| 21 | + CtxUIState["UIStateContext"] |
| 22 | + CtxUIActions["UIActionsContext"] |
| 23 | + end |
| 24 | + |
| 25 | + subgraph "Component Consumers" |
| 26 | + direction TB |
| 27 | + ConsumerApp["App"] |
| 28 | + ConsumerAppContainer["AppContainer"] |
| 29 | + ConsumerAppHeader["AppHeader"] |
| 30 | + ConsumerDialogManager["DialogManager"] |
| 31 | + ConsumerHistoryItem["HistoryItemDisplay"] |
| 32 | + ConsumerComposer["Composer"] |
| 33 | + ConsumerMainContent["MainContent"] |
| 34 | + ConsumerNotifications["Notifications"] |
| 35 | + end |
| 36 | + |
| 37 | + %% --- Provider -> Context Connections --- |
| 38 | + A -.-> CtxSession |
| 39 | + A -.-> CtxVim |
| 40 | + A -.-> CtxSettings |
| 41 | + |
| 42 | + B -.-> CtxApp |
| 43 | + B -.-> CtxConfig |
| 44 | + B -.-> CtxUIState |
| 45 | + B -.-> CtxUIActions |
| 46 | + B -.-> CtxSettings |
| 47 | + |
| 48 | + %% --- Context -> Consumer Connections --- |
| 49 | + CtxSession -.-> ConsumerAppContainer |
| 50 | + CtxSession -.-> ConsumerApp |
| 51 | + |
| 52 | + CtxVim -.-> ConsumerAppContainer |
| 53 | + CtxVim -.-> ConsumerComposer |
| 54 | + CtxVim -.-> ConsumerApp |
| 55 | + |
| 56 | + CtxSettings -.-> ConsumerAppContainer |
| 57 | + CtxSettings -.-> ConsumerAppHeader |
| 58 | + CtxSettings -.-> ConsumerDialogManager |
| 59 | + CtxSettings -.-> ConsumerApp |
| 60 | + |
| 61 | + CtxApp -.-> ConsumerAppHeader |
| 62 | + CtxApp -.-> ConsumerNotifications |
| 63 | + |
| 64 | + CtxConfig -.-> ConsumerAppHeader |
| 65 | + CtxConfig -.-> ConsumerHistoryItem |
| 66 | + CtxConfig -.-> ConsumerComposer |
| 67 | + CtxConfig -.-> ConsumerDialogManager |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + CtxUIState -.-> ConsumerApp |
| 72 | + CtxUIState -.-> ConsumerMainContent |
| 73 | + CtxUIState -.-> ConsumerComposer |
| 74 | + CtxUIState -.-> ConsumerDialogManager |
| 75 | + |
| 76 | + CtxUIActions -.-> ConsumerComposer |
| 77 | + CtxUIActions -.-> ConsumerDialogManager |
| 78 | + |
| 79 | + %% --- Apply Styles --- |
| 80 | + %% New Elements (Green) |
| 81 | + class B,CtxApp,CtxConfig,CtxUIState,CtxUIActions,ConsumerAppHeader,ConsumerDialogManager,ConsumerComposer,ConsumerMainContent,ConsumerNotifications new |
| 82 | + |
| 83 | + %% Heavily Changed Elements (Blue) |
| 84 | + class A,ConsumerApp,ConsumerAppContainer,ConsumerHistoryItem changed |
| 85 | + |
| 86 | + %% Mostly Unchanged Elements (Gray) |
| 87 | + class CtxSession,CtxVim,CtxSettings unchanged |
| 88 | + |
| 89 | + %% --- Link Styles --- |
| 90 | + %% CtxSession (Red) |
| 91 | + linkStyle 0,8,9 stroke:#e57373,stroke-width:2px |
| 92 | + %% CtxVim (Orange) |
| 93 | + linkStyle 1,10,11,12 stroke:#ffb74d,stroke-width:2px |
| 94 | + %% CtxSettings (Yellow) |
| 95 | + linkStyle 2,7,13,14,15,16 stroke:#fff176,stroke-width:2px |
| 96 | + %% CtxApp (Green) |
| 97 | + linkStyle 3,17,18 stroke:#81c784,stroke-width:2px |
| 98 | + %% CtxConfig (Blue) |
| 99 | + linkStyle 4,19,20,21,22 stroke:#64b5f6,stroke-width:2px |
| 100 | + %% CtxUIState (Indigo) |
| 101 | + linkStyle 5,23,24,25,26 stroke:#7986cb,stroke-width:2px |
| 102 | + %% CtxUIActions (Violet) |
| 103 | + linkStyle 6,27,28 stroke:#ba68c8,stroke-width:2px |
0 commit comments