Skip to content

Commit ff382a6

Browse files
committed
ran tests
1 parent 6ecda67 commit ff382a6

File tree

7 files changed

+94
-101
lines changed

7 files changed

+94
-101
lines changed

apps/desktop/src/components/right-panel/components/chat/chat-input.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -388,15 +388,15 @@ export function ChatInput(
388388
onClick={isGenerating ? onStop : handleSubmit}
389389
disabled={isGenerating ? false : (!inputValue.trim())}
390390
>
391-
{isGenerating ? (
392-
<Square
393-
className="h-4 w-4"
394-
fill="currentColor"
395-
strokeWidth={0}
396-
/>
397-
) : (
398-
<ArrowUpIcon className="h-4 w-4" />
399-
)}
391+
{isGenerating
392+
? (
393+
<Square
394+
className="h-4 w-4"
395+
fill="currentColor"
396+
strokeWidth={0}
397+
/>
398+
)
399+
: <ArrowUpIcon className="h-4 w-4" />}
400400
</Button>
401401
</div>
402402
</div>

apps/desktop/src/components/right-panel/hooks/useChatLogic.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function useChatLogic({
6868
abortControllerRef.current.abort();
6969
abortControllerRef.current = null;
7070
}
71-
71+
7272
// Reset generation state for new session
7373
setIsGenerating(false);
7474
setIsStreamingText(false);
@@ -322,7 +322,6 @@ export function useChatLogic({
322322
let lastChunkType: string | null = null;
323323

324324
for await (const chunk of fullStream) {
325-
326325
if (lastChunkType === "text-delta" && chunk.type !== "text-delta" && chunk.type !== "finish-step") {
327326
setIsStreamingText(false); // Text streaming has stopped, more content coming
328327

@@ -478,11 +477,10 @@ export function useChatLogic({
478477
isGeneratingRef.current = false;
479478
abortControllerRef.current = null; // Clear the abort controller on successful completion
480479
} catch (error) {
481-
482480
console.error(error);
483481

484482
let errorMsg = "Unknown error";
485-
if (typeof error === 'string') {
483+
if (typeof error === "string") {
486484
errorMsg = error;
487485
} else if (error instanceof Error) {
488486
errorMsg = error.message || error.name || "Unknown error";
@@ -500,8 +498,7 @@ export function useChatLogic({
500498
+ "\n\n" + errorMsg;
501499
} else if (String(errorMsg).includes("Request cancelled") || String(errorMsg).includes("Request canceled")) {
502500
finalErrorMesage = "Request was cancelled mid-stream. Try again with a different message.";
503-
}
504-
else {
501+
} else {
505502
finalErrorMesage = "Sorry, I encountered an error. Please try again. " + "\n\n" + errorMsg;
506503
}
507504

apps/desktop/src/components/right-panel/hooks/useTranscript.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ export function useTranscript(sessionId: string | null) {
4444
setPartialWords([]);
4545
}, [existingWords.data]);
4646

47-
48-
49-
5047
useEffect(() => {
5148
if (ongoingSessionState.status !== "running_active" || ongoingSessionState.sessionId !== sessionId) {
5249
return;

apps/desktop/src/locales/en/messages.po

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,14 @@ msgstr "(Optional for localhost)"
264264
msgid "(Optional)"
265265
msgstr "(Optional)"
266266

267-
#. placeholder {0}: disabled ? "Wait..." : "Play again"
268-
#. placeholder {0}: disabled ? "Wait..." : "Play video"
267+
#. placeholder {0}: isViewingTemplate ? "Back" : "Save and close"
268+
#. placeholder {0}: isCompact ? "Go" : "Resume"
269269
#. placeholder {0}: disabled ? "Wait..." : isHovered ? (isCompact ? "Go" : "Resume") : (isCompact ? "End" : "Ended")
270+
#: src/components/settings/views/templates.tsx:217
270271
#: src/components/editor-area/note-header/listen-button.tsx:153
271272
#: src/components/editor-area/note-header/listen-button.tsx:231
272273
#: src/components/editor-area/note-header/listen-button.tsx:253
273274
#: src/components/editor-area/note-header/listen-button.tsx:273
274-
#: src/components/settings/views/templates.tsx:217
275275
msgid "{0}"
276276
msgstr "{0}"
277277

@@ -280,8 +280,8 @@ msgstr "{0}"
280280
msgid "{0} calendars selected"
281281
msgstr "{0} calendars selected"
282282

283-
#: src/components/settings/views/sound.tsx:64
284283
#: src/components/welcome-modal/audio-permissions-view.tsx:82
284+
#: src/components/settings/views/sound.tsx:64
285285
msgid "{buttonText}"
286286
msgstr "{buttonText}"
287287

@@ -318,9 +318,9 @@ msgstr "<0>Create Note</0>"
318318
msgid "Access granted"
319319
msgstr "Access granted"
320320

321-
#: src/components/settings/views/sound.tsx:44
322-
#: src/components/welcome-modal/audio-permissions-view.tsx:58
323321
#: src/components/welcome-modal/calendar-permissions-view.tsx:50
322+
#: src/components/welcome-modal/audio-permissions-view.tsx:58
323+
#: src/components/settings/views/sound.tsx:44
324324
msgid "Access Granted"
325325
msgstr "Access Granted"
326326

@@ -398,29 +398,29 @@ msgstr "and {0} more members"
398398
msgid "Anyone with the link can view this page"
399399
msgstr "Anyone with the link can view this page"
400400

401-
#: src/components/settings/components/ai/llm-custom-view.tsx:603
402401
#: src/components/welcome-modal/custom-endpoint-view.tsx:498
402+
#: src/components/settings/components/ai/llm-custom-view.tsx:603
403403
msgid "API Base URL"
404404
msgstr "API Base URL"
405405

406-
#: src/components/settings/components/ai/llm-custom-view.tsx:314
407-
#: src/components/settings/components/ai/llm-custom-view.tsx:409
408-
#: src/components/settings/components/ai/llm-custom-view.tsx:514
409-
#: src/components/settings/components/ai/llm-custom-view.tsx:625
410-
#: src/components/settings/views/integrations.tsx:203
411406
#: src/components/welcome-modal/custom-endpoint-view.tsx:294
412407
#: src/components/welcome-modal/custom-endpoint-view.tsx:361
413408
#: src/components/welcome-modal/custom-endpoint-view.tsx:438
414409
#: src/components/welcome-modal/custom-endpoint-view.tsx:518
410+
#: src/components/settings/views/integrations.tsx:203
411+
#: src/components/settings/components/ai/llm-custom-view.tsx:314
412+
#: src/components/settings/components/ai/llm-custom-view.tsx:409
413+
#: src/components/settings/components/ai/llm-custom-view.tsx:514
414+
#: src/components/settings/components/ai/llm-custom-view.tsx:625
415415
msgid "API Key"
416416
msgstr "API Key"
417417

418418
#: src/components/settings/views/profile.tsx:168
419419
msgid "Apple"
420420
msgstr "Apple"
421421

422-
#: src/components/left-sidebar/notes-list.tsx:269
423422
#: src/components/toolbar/buttons/delete-note-button.tsx:43
423+
#: src/components/left-sidebar/notes-list.tsx:269
424424
msgid "Are you sure you want to delete this note?"
425425
msgstr "Are you sure you want to delete this note?"
426426

@@ -464,8 +464,8 @@ msgstr "Base URL"
464464
#~ msgid "Billing features are currently under development and will be available in a future update."
465465
#~ msgstr "Billing features are currently under development and will be available in a future update."
466466

467-
#: src/components/settings/components/templates-sidebar.tsx:68
468467
#: src/components/settings/views/templates.tsx:319
468+
#: src/components/settings/components/templates-sidebar.tsx:68
469469
msgid "Built-in Templates"
470470
msgstr "Built-in Templates"
471471

@@ -601,12 +601,12 @@ msgstr "Connect your Obsidian vault to export notes"
601601
msgid "Contacts Access"
602602
msgstr "Contacts Access"
603603

604-
#: src/components/welcome-modal/audio-permissions-view.tsx:189
605-
#: src/components/welcome-modal/calendar-permissions-view.tsx:153
606-
#: src/components/welcome-modal/custom-endpoint-view.tsx:595
607-
#: src/components/welcome-modal/download-progress-view.tsx:255
608-
#: src/components/welcome-modal/llm-selection-view.tsx:94
609604
#: src/components/welcome-modal/model-selection-view.tsx:94
605+
#: src/components/welcome-modal/llm-selection-view.tsx:94
606+
#: src/components/welcome-modal/download-progress-view.tsx:255
607+
#: src/components/welcome-modal/custom-endpoint-view.tsx:595
608+
#: src/components/welcome-modal/calendar-permissions-view.tsx:153
609+
#: src/components/welcome-modal/audio-permissions-view.tsx:189
610610
msgid "Continue"
611611
msgstr "Continue"
612612

@@ -630,8 +630,8 @@ msgstr "Control how autonomous the AI enhancement should be."
630630
#~ msgid "Control how creative the AI enhancement should be"
631631
#~ msgstr "Control how creative the AI enhancement should be"
632632

633-
#: src/components/editor-area/note-header/chips/participants-chip.tsx:518
634633
#: src/routes/app.human.$id.tsx:535
634+
#: src/components/editor-area/note-header/chips/participants-chip.tsx:518
635635
msgid "Create"
636636
msgstr "Create"
637637

@@ -659,8 +659,8 @@ msgstr "Create your first template to get started"
659659
#~ msgid "Current Plan"
660660
#~ msgstr "Current Plan"
661661

662-
#: src/components/settings/views/ai-llm.tsx:671
663662
#: src/components/settings/views/ai-stt.tsx:66
663+
#: src/components/settings/views/ai-llm.tsx:671
664664
msgid "Custom"
665665
msgstr "Custom"
666666

@@ -676,18 +676,18 @@ msgstr "Custom"
676676
msgid "Custom Vocabulary"
677677
msgstr "Custom Vocabulary"
678678

679-
#: src/components/settings/views/ai-llm.tsx:668
680679
#: src/components/settings/views/ai-stt.tsx:63
680+
#: src/components/settings/views/ai-llm.tsx:668
681681
msgid "Default"
682682
msgstr "Default"
683683

684684
#: src/components/settings/components/ai/llm-view.tsx:149
685685
#~ msgid "Default (llama-3.2-3b-q4)"
686686
#~ msgstr "Default (llama-3.2-3b-q4)"
687687

688-
#: src/components/left-sidebar/notes-list.tsx:336
689-
#: src/components/settings/views/team.tsx:165
690688
#: src/components/settings/views/template.tsx:218
689+
#: src/components/settings/views/team.tsx:165
690+
#: src/components/left-sidebar/notes-list.tsx:336
691691
msgid "Delete"
692692
msgstr "Delete"
693693

@@ -873,10 +873,10 @@ msgstr "Grant both permissions to continue"
873873
#~ msgid "Help us improve the Hyprnote experience by providing feedback."
874874
#~ msgstr "Help us improve the Hyprnote experience by providing feedback."
875875

876-
#: src/components/individualization-modal/how-heard-view.tsx:33
877-
#: src/components/individualization-modal/industry-view.tsx:63
878-
#: src/components/individualization-modal/org-size-view.tsx:24
879876
#: src/components/individualization-modal/role-view.tsx:24
877+
#: src/components/individualization-modal/org-size-view.tsx:24
878+
#: src/components/individualization-modal/industry-view.tsx:63
879+
#: src/components/individualization-modal/how-heard-view.tsx:33
880880
msgid "Help us tailor your Hyprnote experience"
881881
msgstr "Help us tailor your Hyprnote experience"
882882

@@ -904,8 +904,8 @@ msgstr "Important Q&As"
904904
#~ msgid "Integration with other apps like Notion and Google Calendar"
905905
#~ msgstr "Integration with other apps like Notion and Google Calendar"
906906

907-
#: src/components/settings/views/integrations.tsx:124
908907
#: src/routes/app.settings.tsx:67
908+
#: src/components/settings/views/integrations.tsx:124
909909
msgid "Integrations"
910910
msgstr "Integrations"
911911

@@ -1047,22 +1047,22 @@ msgstr "Member"
10471047
msgid "Members"
10481048
msgstr "Members"
10491049

1050-
#: src/components/settings/views/sound.tsx:127
10511050
#: src/components/welcome-modal/audio-permissions-view.tsx:165
1051+
#: src/components/settings/views/sound.tsx:127
10521052
msgid "Microphone Access"
10531053
msgstr "Microphone Access"
10541054

1055-
#: src/components/settings/components/ai/llm-custom-view.tsx:334
1056-
#: src/components/settings/components/ai/llm-custom-view.tsx:429
1057-
#: src/components/settings/components/ai/llm-custom-view.tsx:534
10581055
#: src/components/welcome-modal/custom-endpoint-view.tsx:315
10591056
#: src/components/welcome-modal/custom-endpoint-view.tsx:382
10601057
#: src/components/welcome-modal/custom-endpoint-view.tsx:459
1058+
#: src/components/settings/components/ai/llm-custom-view.tsx:334
1059+
#: src/components/settings/components/ai/llm-custom-view.tsx:429
1060+
#: src/components/settings/components/ai/llm-custom-view.tsx:534
10611061
msgid "Model"
10621062
msgstr "Model"
10631063

1064-
#: src/components/settings/components/ai/llm-custom-view.tsx:650
10651064
#: src/components/welcome-modal/custom-endpoint-view.tsx:544
1065+
#: src/components/settings/components/ai/llm-custom-view.tsx:650
10661066
msgid "Model Name"
10671067
msgstr "Model Name"
10681068

@@ -1090,8 +1090,8 @@ msgstr "My Templates"
10901090
msgid "New note"
10911091
msgstr "New note"
10921092

1093-
#: src/components/left-sidebar/events-list.tsx:181
10941093
#: src/components/left-sidebar/notes-list.tsx:313
1094+
#: src/components/left-sidebar/events-list.tsx:181
10951095
msgid "New window"
10961096
msgstr "New window"
10971097

@@ -1187,9 +1187,9 @@ msgstr "Only works with Custom Endpoints. Please configure one of the above firs
11871187
msgid "Open finder view"
11881188
msgstr "Open finder view"
11891189

1190+
#: src/components/toolbar/buttons/new-window-button.tsx:35
11901191
#: src/components/left-sidebar/search-list.tsx:298
11911192
#: src/components/left-sidebar/search-list.tsx:368
1192-
#: src/components/toolbar/buttons/new-window-button.tsx:35
11931193
msgid "Open in new window"
11941194
msgstr "Open in new window"
11951195

@@ -1288,8 +1288,8 @@ msgstr "Recent Notes"
12881288
#~ msgid "Remove {0} from list"
12891289
#~ msgstr "Remove {0} from list"
12901290

1291-
#: src/components/settings/views/sound.tsx:61
12921291
#: src/components/welcome-modal/audio-permissions-view.tsx:79
1292+
#: src/components/settings/views/sound.tsx:61
12931293
msgid "Requesting..."
12941294
msgstr "Requesting..."
12951295

@@ -1343,8 +1343,8 @@ msgstr "Saving..."
13431343
msgid "Search names or emails"
13441344
msgstr "Search names or emails"
13451345

1346-
#: src/components/settings/components/template-list.tsx:43
13471346
#: src/components/settings/components/templates-sidebar.tsx:33
1347+
#: src/components/settings/components/template-list.tsx:43
13481348
msgid "Search templates..."
13491349
msgstr "Search templates..."
13501350

@@ -1488,8 +1488,8 @@ msgstr "Summary language"
14881488
#~ msgid "Synchronization across multiple devices"
14891489
#~ msgstr "Synchronization across multiple devices"
14901490

1491-
#: src/components/settings/views/sound.tsx:137
14921491
#: src/components/welcome-modal/audio-permissions-view.tsx:175
1492+
#: src/components/settings/views/sound.tsx:137
14931493
msgid "System Audio Access"
14941494
msgstr "System Audio Access"
14951495

@@ -1653,8 +1653,8 @@ msgstr "Vault Name"
16531653
msgid "View calendar"
16541654
msgstr "View calendar"
16551655

1656-
#: src/components/editor-area/note-header/chips/event-chip.tsx:209
16571656
#: src/components/left-sidebar/events-list.tsx:193
1657+
#: src/components/editor-area/note-header/chips/event-chip.tsx:209
16581658
msgid "View in calendar"
16591659
msgstr "View in calendar"
16601660

@@ -1726,7 +1726,7 @@ msgstr "Your LinkedIn username (the part after linkedin.com/in/)"
17261726
msgid "Your Name"
17271727
msgstr "Your Name"
17281728

1729-
#: src/components/settings/components/templates-sidebar.tsx:45
17301729
#: src/components/settings/views/templates.tsx:255
1730+
#: src/components/settings/components/templates-sidebar.tsx:45
17311731
msgid "Your Templates"
17321732
msgstr "Your Templates"

0 commit comments

Comments
 (0)