Spaces:
Running
Running
Sync from felladrin/MiniSearch@190c476 (part 2)
Browse files- docs/ui-components.md +1 -0
docs/ui-components.md
CHANGED
|
@@ -91,6 +91,7 @@ All state channels are defined in `client/modules/pubSub.ts`:
|
|
| 91 |
| `followUpQuestionPubSub` | `string` | Generated follow-up question | AiResponseSection |
|
| 92 |
| `suppressNextFollowUpPubSub` | `boolean` | One-shot flag set when restoring a saved AI response from history so the restored answer skips follow-up generation; cleared on first read by `ChatInterface` (cancelling any in-flight follow-up) and reset by `searchAndRespond` | ChatInterface, ChatInputArea |
|
| 93 |
| `isRestoringFromHistoryPubSub` | `boolean` | History restoration in progress | SearchForm, components |
|
|
|
|
| 94 |
| `menuExpandedAccordionsPubSub` | `string[]` | Expanded menu accordion IDs | MenuDrawer |
|
| 95 |
| `querySuggestionsPubSub` | `string[]` | Query suggestions history | SearchForm |
|
| 96 |
| `lastSearchTokenHashPubSub` | `string` | Hash of last search token | Security/validation |
|
|
|
|
| 91 |
| `followUpQuestionPubSub` | `string` | Generated follow-up question | AiResponseSection |
|
| 92 |
| `suppressNextFollowUpPubSub` | `boolean` | One-shot flag set when restoring a saved AI response from history so the restored answer skips follow-up generation; cleared on first read by `ChatInterface` (cancelling any in-flight follow-up) and reset by `searchAndRespond` | ChatInterface, ChatInputArea |
|
| 93 |
| `isRestoringFromHistoryPubSub` | `boolean` | History restoration in progress | SearchForm, components |
|
| 94 |
+
| `chatSessionPubSub` | `number` | Bumped when a history restore switches to another search; `AiResponseSection` keys `ChatInterface` on it, so the old chat unmounts, which aborts its follow-up and drops its pending suggestion | AiResponseSection, useHistoryRestore |
|
| 95 |
| `menuExpandedAccordionsPubSub` | `string[]` | Expanded menu accordion IDs | MenuDrawer |
|
| 96 |
| `querySuggestionsPubSub` | `string[]` | Query suggestions history | SearchForm |
|
| 97 |
| `lastSearchTokenHashPubSub` | `string` | Hash of last search token | Security/validation |
|