If you didn’t request this email, you can safely ignore it.
@@ -94,5 +94,5 @@ function domnaHtml({
}
function plainText({ url, host }: { url: string; host: string }) {
- return `Sign in to Domna IQ\n${url}\n\nIf you did not request this email, you can safely ignore it.\n`;
+ return `Sign in to Ara by Domna\n${url}\n\nIf you did not request this email, you can safely ignore it.\n`;
}
diff --git a/src/app/onboarding/page.tsx b/src/app/onboarding/page.tsx
index 756014f..fdfabdc 100644
--- a/src/app/onboarding/page.tsx
+++ b/src/app/onboarding/page.tsx
@@ -176,7 +176,7 @@ export default function OnboardingPage() {
-
Welcome to Domna IQ
+
Welcome to Ara
Help us get to know you so we can tailor your experience.
+ );
+};
diff --git a/src/app/portfolio/[slug]/building-passport/[propertyId]/documents/page.tsx b/src/app/portfolio/[slug]/building-passport/[propertyId]/documents/page.tsx
index 799142a..4901fa0 100644
--- a/src/app/portfolio/[slug]/building-passport/[propertyId]/documents/page.tsx
+++ b/src/app/portfolio/[slug]/building-passport/[propertyId]/documents/page.tsx
@@ -1,7 +1,11 @@
import { getPropertyMeta } from "@/app/portfolio/[slug]/building-passport/[propertyId]/utils";
-import { eq } from "drizzle-orm";
+import { and, eq } from "drizzle-orm";
import { DocumentsTable } from "./DocumentsTable";
+import { GenericDocumentsTable } from "./GenericDocumentsTable";
import { surveyDB } from "@/app/db/surveyDB/connection";
+import { db } from "@/app/db/db";
+import { filesFromSurveyor } from "@/app/db/schema/files_from_surveyor";
+import type { FilesFromSurveyor } from "@/app/db/schema/files_from_surveyor";
import { uploadedFiles } from "@/app/db/surveyDB/schema/surveyDB";
import { type getUploadedFiles } from "@/app/db/surveyDB/schema/surveyDB";
@@ -13,6 +17,23 @@ async function getDocuments(uprn: number): Promise {
return result;
}
+async function getSurveyorDocuments(
+ portfolioId: string,
+ propertyId: string
+): Promise {
+ const files = await db
+ .select()
+ .from(filesFromSurveyor)
+ .where(
+ and(
+ eq(filesFromSurveyor.portfolioId, BigInt(portfolioId)),
+ eq(filesFromSurveyor.propertyId, BigInt(propertyId))
+ )
+ );
+
+ return files;
+}
+
export default async function DocumentsPage(props: {
params: Promise<{ slug: string; propertyId: string }>;
}) {
@@ -26,7 +47,8 @@ export default async function DocumentsPage(props: {
const propertyMeta = await getPropertyMeta(propertyId);
const uploadedFiles = await getDocuments(propertyMeta.uprn);
- console.log("Uploaded files:", uploadedFiles);
+ // We also fetch surveyor documents, which is a temp solution
+ const surveyorDocuments = await getSurveyorDocuments(params.slug, propertyId);
return (
<>
@@ -40,6 +62,18 @@ export default async function DocumentsPage(props: {
uploadedFilesData={uploadedFiles}
/>
+
+
+
+ Surveyor Uploaded Documents
+
+
+
+
+
Coordination
diff --git a/src/app/portfolio/[slug]/building-passport/[propertyId]/upload/page.tsx b/src/app/portfolio/[slug]/building-passport/[propertyId]/upload/page.tsx
index 5d74ef0..dbb9ef2 100644
--- a/src/app/portfolio/[slug]/building-passport/[propertyId]/upload/page.tsx
+++ b/src/app/portfolio/[slug]/building-passport/[propertyId]/upload/page.tsx
@@ -26,7 +26,6 @@ const UploadPage: React.FC = () => {
);
if (res.ok) {
const data = await res.json();
- console.log(data, "hello");
setFiles(data.files);
}
};
diff --git a/src/app/portfolio/[slug]/plan-loading/page.tsx b/src/app/portfolio/[slug]/plan-loading/page.tsx
index be2f040..2e721e7 100644
--- a/src/app/portfolio/[slug]/plan-loading/page.tsx
+++ b/src/app/portfolio/[slug]/plan-loading/page.tsx
@@ -144,7 +144,7 @@ export default function LoadingPage(props: {
Building your retrofit plan
- Domna IQ is analysing your data and generating your plan summary.
+ Ara is analysing your data and generating your plan summary.
diff --git a/src/app/portfolio/[slug]/remote-assessment/RemoteAssessmentClient.tsx b/src/app/portfolio/[slug]/remote-assessment/RemoteAssessmentClient.tsx
index 389d471..e2552bc 100644
--- a/src/app/portfolio/[slug]/remote-assessment/RemoteAssessmentClient.tsx
+++ b/src/app/portfolio/[slug]/remote-assessment/RemoteAssessmentClient.tsx
@@ -67,7 +67,7 @@ export default function RemoteAssessmentClient({
{/* Hero text split to use horizontal space better */}
- Domna IQ analyses your property data, models retrofit options, and
+ Ara analyses your property data, models retrofit options, and
estimates potential funding — all without an on-site survey.