@@ -95,7 +95,7 @@ export default async function HealthPage({ searchParams }: HealthPageProps) {
|
- No source configurations exist for this tenant yet.
+ No source configurations exist for this project yet.
|
diff --git a/frontend/app/admin/sources/page.tsx b/frontend/app/admin/sources/page.tsx
index 82d2c54c..4acdb254 100644
--- a/frontend/app/admin/sources/page.tsx
+++ b/frontend/app/admin/sources/page.tsx
@@ -1,15 +1,15 @@
import { AppShell } from "@/components/app-shell"
import { StatusBadge } from "@/components/status-badge"
import {
- getTenantIngestionRuns,
- getTenants,
- getTenantSourceConfigs,
+ getProjectIngestionRuns,
+ getProjects,
+ getProjectSourceConfigs,
} from "@/lib/api"
import {
formatDate,
getErrorMessage,
getSuccessMessage,
- selectTenant,
+ selectProject,
} from "@/lib/view-helpers"
type SourcesPageProps = {
@@ -33,27 +33,27 @@ const primaryButtonClass =
export default async function SourcesPage({ searchParams }: SourcesPageProps) {
const resolvedSearchParams = await searchParams
- const tenants = await getTenants()
- const selectedTenant = selectTenant(tenants, resolvedSearchParams)
+ const projects = await getProjects()
+ const selectedProject = selectProject(projects, resolvedSearchParams)
- if (!selectedTenant) {
+ if (!selectedProject) {
return (
- Create a tenant first in Django admin.
+ Create a project first in Django admin.
)
}
const [sourceConfigs, ingestionRuns] = await Promise.all([
- getTenantSourceConfigs(selectedTenant.id),
- getTenantIngestionRuns(selectedTenant.id),
+ getProjectSourceConfigs(selectedProject.id),
+ getProjectIngestionRuns(selectedProject.id),
])
const latestRunByPlugin = new Map
()
for (const ingestionRun of ingestionRuns) {
@@ -69,8 +69,8 @@ export default async function SourcesPage({ searchParams }: SourcesPageProps) {
{errorMessage ? (
{errorMessage}
@@ -87,11 +87,11 @@ export default async function SourcesPage({ searchParams }: SourcesPageProps) {
action="/api/source-configs"
method="POST"
>
-
+