• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jcubic / 10xDevs / 18543522652

15 Oct 2025 09:43PM UTC coverage: 23.472% (+1.5%) from 21.938%
18543522652

push

github

jcubic
Base UI

64 of 98 branches covered (65.31%)

Branch coverage included in aggregate %.

228 of 853 new or added lines in 12 files covered. (26.73%)

2 existing lines in 2 files now uncovered.

439 of 2045 relevant lines covered (21.47%)

2.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

3.45
/src/components/notes/MainNotesLayout.tsx
1
import type { Note } from '@prisma/client';
1✔
NEW
2
import { getNotes, getNote } from '@/app/actions/notes';
×
NEW
3
import { NotesProvider } from './NotesContext';
×
NEW
4
import MainNotesClient from './MainNotesClient';
×
NEW
5
import styles from './MainNotesLayout.module.css';
×
6

7
interface MainNotesLayoutProps {
8
  selectedNoteId?: number;
9
  lineNumber?: number;
10
}
11

NEW
12
export default async function MainNotesLayout({
×
NEW
13
  selectedNoteId,
×
NEW
14
  lineNumber
×
NEW
15
}: MainNotesLayoutProps) {
×
NEW
16
  const notes = await getNotes();
×
17

18
  // Get the selected note if provided
NEW
19
  let selectedNote: Note | null = null;
×
NEW
20
  if (selectedNoteId) {
×
NEW
21
    try {
×
NEW
22
      selectedNote = await getNote(selectedNoteId);
×
NEW
23
    } catch (error) {
×
NEW
24
      console.error('Failed to load selected note:', error);
×
NEW
25
    }
×
NEW
26
  }
×
27

NEW
28
  return (
×
NEW
29
    <div className={styles.layout}>
×
NEW
30
      <NotesProvider initialNote={selectedNote}>
×
NEW
31
        <MainNotesClient
×
NEW
32
          notes={notes}
×
NEW
33
          initialSelectedNoteId={selectedNoteId}
×
NEW
34
          lineNumber={lineNumber}
×
NEW
35
        />
×
NEW
36
      </NotesProvider>
×
NEW
37
    </div>
×
38
  );
NEW
39
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc