File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -256,16 +256,25 @@ export class TranscriptManager extends SyncedManager {
256256
257257 this . segments . mutate ( ( s ) => s . push ( segment ) ) ;
258258
259- // Notify FileManager
259+ // Notify FileManager and update availableDates
260+ const today = this . getTimeManager ( ) . today ( ) ;
260261 const fileManager = this . getFileManager ( ) ;
261262 if ( fileManager ) {
262- const today = this . getTimeManager ( ) . today ( ) ;
263263 if ( ! wasRecording ) {
264264 fileManager . onTranscriptStarted ( today ) ;
265265 }
266266 fileManager . onSegmentAdded ( today , this . segments . length ) ;
267267 }
268268
269+ // Ensure today appears in availableDates for the Transcripts tab
270+ if ( ! wasRecording && ! this . availableDates . includes ( today ) ) {
271+ this . availableDates . mutate ( ( dates ) => {
272+ if ( ! dates . includes ( today ) ) {
273+ dates . unshift ( today ) ;
274+ }
275+ } ) ;
276+ }
277+
269278 this . pendingSegments . push ( {
270279 text : segment . text ,
271280 timestamp : segment . timestamp ,
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export function NotesPage() {
111111 return (
112112 < div className = "flex h-full flex-col bg-[#FAFAF9] relative overflow-hidden" >
113113 { /* Header */ }
114- < div className = "flex flex-col pt-6 gap-2 px-6 shrink-0" >
114+ < div className = "flex flex-col pt-3 gap-2 px-6 shrink-0" >
115115 < div className = { `text-[11px] tracking-widest uppercase leading-3.5 text-[#DC2626] font-red-hat font-bold` } >
116116 MENTRA NOTES
117117 </ div >
@@ -237,7 +237,7 @@ export function NotesPage() {
237237 return (
238238 < div className = "flex h-full flex-col bg-[#FAFAF9] relative overflow-hidden" >
239239 { /* Header */ }
240- < div className = "flex flex-col pt-6 gap-2 px-6 shrink-0" >
240+ < div className = "flex flex-col pt-3 gap-2 px-6 shrink-0" >
241241 < div className = { `text-[11px] tracking-widest uppercase leading-3.5 text-[#DC2626] font-red-hat font-bold` } >
242242 Mentra Notes
243243 </ div >
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ export function SearchPage() {
249249 ) }
250250
251251 { /* Scrollable results */ }
252- < div className = "flex-1 overflow-y-auto flex jsutify-center " >
252+ < div className = "flex-1 overflow-y-auto flex flex-col jsutify-center " >
253253 { /* Loading */ }
254254 { isSearching && (
255255 < div className = "flex flex-col items-center justify-center flex-1 min-h-[300px]" >
You can’t perform that action at this time.
0 commit comments