-
- {selectedProjects.length === 0
- ? 'Select repositories to view pull requests'
- : 'No pull requests found in selected repositories'}
-
- {selectedProjects.length === 0 && (
-
- Use the repository selector above to choose which repositories to view
-
+
+ {emptyStateKind === 'no-repos' ? (
+ <>
+
+ Select one or more repositories to view pull requests
+
+
+ Use the repository selector above to choose which repositories to include.
+
+ >
+ ) : emptyStateKind === 'no-prs' ? (
+ <>
+
+ No pull requests were found in the selected repositories
+
+
+ Try a different repository selection or come back after new pull requests are opened.
+
+ >
+ ) : (
+ <>
+
+ No pull requests match the current search or state filters
+
+
+ Clear the search or state filter to bring rows back into view.
+
+
+ >
)}
)}
@@ -326,4 +417,4 @@ function formatTimeAgo(dateString: string): string {
if (diffDays < 30) return `${diffDays} ${diffDays === 1 ? 'day' : 'days'} ago`;
if (diffMonths < 12) return `${diffMonths} ${diffMonths === 1 ? 'month' : 'months'} ago`;
return `${diffYears} ${diffYears === 1 ? 'year' : 'years'} ago`;
-}
\ No newline at end of file
+}
diff --git a/vite.config.ts b/vite.config.ts
index e64a756..a8de1a7 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,10 +1,13 @@
///
import { defineConfig } from 'vitest/config'
import path from 'path'
+import { fileURLToPath } from 'url'
import tailwindcss from '@tailwindcss/vite'
import react from '@vitejs/plugin-react'
import { visualizer } from 'rollup-plugin-visualizer'
+const __dirname = path.dirname(fileURLToPath(import.meta.url))
+
export default defineConfig({
plugins: [
// The React and Tailwind plugins are both required for Make, even if
diff --git a/vitest.config.ts b/vitest.config.ts
index 58cd122..7233427 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -1,6 +1,9 @@
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import path from 'path';
+import { fileURLToPath } from 'url';
+
+const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
plugins: [react()],