-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
54 make dashboard for before aplication #61
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
5a9bbaf
feat: skeleton code for the dashboard
ArtemisAaroe bfebadf
feat: dashboard partialy done. including
ArtemisAaroe 4045b83
Merge branch 'main' into 54-make-dashboard-for-before-aplication
ArtemisAaroe ace7e23
fix add local dev port to alaw orphand
ArtemisAaroe f08bc67
fix: lint warnings
ArtemisAaroe 6dbcc30
style: making ul more intuitive
ArtemisAaroe 41a757a
fix: wird merge ting
ArtemisAaroe c1a566c
Merge remote-tracking branch 'origin/main' into 54-make-dashboard-for…
ArtemisAaroe c7e44fa
usertest build
ArtemisAaroe cea4987
added ink to arkivgpt
ArtemisAaroe 38d2482
added link to dashboard
ArtemisAaroe 872d32b
feat: added text to make purpuse clarer
ArtemisAaroe d45c341
style: trying to make responsiv
ArtemisAaroe 2d49ebd
refactor: removed files that should not be there
ArtemisAaroe 957b372
feat: local storage atempth
ArtemisAaroe d3ef877
Fix: Fix build failures
magnusgiverin ec2414e
refactor: separated dashboard logic in to componant
ArtemisAaroe 249efdc
fix: layout bug were the d3 house box was misbehaving
ArtemisAaroe 399bac7
fix: made cadaid mock respons sem more naturale
ArtemisAaroe f3a1a4d
Update webapp/src/app/under-soknad/byggeideer/dashbord/arkivgpt/page.tsx
ArtemisAaroe c7b2543
Update webapp/src/app/for-soknad/byggeideer/dashbord/cadaid/page.tsx
ArtemisAaroe 4c5933c
Update webapp/src/app/for-soknad/byggeideer/dashbord/arkivgpt/page.tsx
ArtemisAaroe 26a6458
Update webapp/src/components/ArkivGPTWidget.tsx
ArtemisAaroe 93ddfca
Update webapp/src/components/PickAddress.tsx
ArtemisAaroe d837146
Update webapp/src/components/PickAddress.tsx
ArtemisAaroe cac1374
Update webapp/src/components/PickAddress.tsx
ArtemisAaroe 354a9b7
fix: pr response
ArtemisAaroe 822b45b
fix: under-soknad/byggeideer/dashord/cadaid/page fix
ArtemisAaroe 12cc301
Fix: Fix HTML and shortcut name
magnusgiverin b559e8b
som more e2e tests
ArtemisAaroe 8790d0f
Merge branch 'main' of github.com:kartAI/ntnu-kpro-ai-assistant into …
ArtemisAaroe edb76fa
Merge branch 'main' into 54-make-dashboard-for-before-aplication
ArtemisAaroe 0b36f6e
added planprat to dashbord
ArtemisAaroe 9f7b5e7
more e2e tests
ArtemisAaroe 702664e
all tests added
ArtemisAaroe 3c7ffd5
fix: bracking ui on userDashboard
ArtemisAaroe cf2b51a
fix: all tests run
ArtemisAaroe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
describe("for-soknad-dashbord e2e Tests", () => { | ||
const ROUTES = ["for-soknad/byggeideer/dashbord", "for-soknad/byggeideer/dashbord"] | ||
|
||
ROUTES.forEach((route) => { | ||
describe(`Route: ${route}`, () => { | ||
beforeEach(() => { | ||
// Visit the UserDashboard page before each test | ||
cy.visit(`/${route}`); | ||
cy.clearLocalStorage(); | ||
}); | ||
|
||
it("should render content", () => { | ||
cy.get('[data-cy="title"]').should("be.visible"); | ||
cy.get('[data-cy="pick-address"]').should("be.visible"); | ||
cy.get('[data-cy="todo-list"]').should("be.visible"); | ||
cy.get('[data-cy="planprat"]').should("be.visible"); | ||
cy.get('[data-cy="cadaid-widget"]').should("be.visible"); | ||
cy.get('[data-cy="digital-tiltaksdata-widget"]').should("be.visible"); | ||
cy.get('[data-cy="3d-visning-widget"]').should("be.visible"); | ||
cy.get('[data-cy="document-overview"]').should("be.visible"); | ||
cy.get('[data-cy="arkiv-gpt"]').should("be.visible"); | ||
cy.get('[data-cy="start-application-button"]').should("be.visible"); | ||
}); | ||
|
||
it("should have navigation to correct cadaid page", () => { | ||
cy.get('[data-cy="cadaid-widget"]').click(); | ||
cy.url().should("include", route + "/cadaid"); | ||
}); | ||
|
||
it("should have navigationg to correct arkivGPT page", () => { | ||
cy.get('[data-cy="arkiv-gpt"]').click(); | ||
cy.url().should("include", route + "/arkivgpt"); | ||
}) | ||
|
||
it("should be able to open and close pick address overlay whitout changing anyting", () => { | ||
cy.contains("Ingen addresse valgt").should("be.visible"); | ||
cy.contains("Ingen tomt valgt").should("be.visible"); | ||
cy.contains("Velg adresse og eiendom").click(); | ||
cy.get('[data-cy="overlay-cancel-button"]').click(); | ||
cy.get('[data-cy="pick-address-overlay"]').should("not.exist"); | ||
cy.contains("Ingen addresse valgt").should("be.visible"); | ||
cy.contains("Ingen tomt valgt").should("be.visible"); | ||
}) | ||
|
||
it("should be able to choose adress and property", () => { | ||
cy.contains("Ingen addresse valgt").should("be.visible"); | ||
cy.contains("Ingen tomt valgt").should("be.visible"); | ||
cy.contains("Velg adresse og eiendom").click(); | ||
cy.get('[data-cy="pick-address-overlay"]').should("be.visible") | ||
cy.get('[data-cy="input-address"]').clear().type('TestAdresse'); | ||
cy.get('[data-cy="input-bnr"]').clear().type('TestBnr'); | ||
cy.get('[data-cy="input-gnr"]').clear().type('TestGnr'); | ||
cy.get('[data-cy="overlay-confirm-button"').click(); | ||
cy.contains("TestAdresse").should("be.visible"); | ||
cy.contains("Gnr. TestGnr, Bnr. TestBnr").should("be.visible") | ||
}) | ||
|
||
it("should be able to close popup for analyze build area without any data being saved to local storage", () => { | ||
cy.get('[data-cy="digital-tiltaksdata-widget"]').click(); | ||
cy.get('[data-cy="cancel-3d-widget"]').click(); | ||
cy.window().then((window) => { | ||
const data = window.localStorage.getItem('hasInputDigitalTiltaksdataWidget'); | ||
cy.wrap(data).should('be.null'); | ||
}); | ||
}) | ||
|
||
it("should be able to pick building area and receive feedback", () => { | ||
cy.get('[data-cy="map-feedback"]').should("not.exist"); | ||
cy.get('[data-cy="digital-tiltaksdata-widget"]').click(); | ||
cy.get('[data-cy="mock-map"]').click(); | ||
cy.get('[data-cy="map-feedback"]').should("be.visible"); | ||
}) | ||
|
||
it('"Gjøremål" should change accoring to actions taken by user', () => { | ||
cy.get('[data-cy="address-text"]').should("be.visible"); | ||
cy.get('[data-cy="cadaid-text"]').should("be.visible"); | ||
cy.get('[data-cy="digital-tilraksdata-text"]').should("be.visible"); | ||
cy.get('[data-cy="three-d-visning-text"]').should("be.visible"); | ||
cy.get('[data-cy="planprat-text"]').should("be.visible"); | ||
cy.get('[data-cy="cadaid-widget"]').click(); | ||
cy.visit(`/${route}`); | ||
cy.get('[data-cy="cadaid-text"]').should('not.exist'); | ||
cy.contains("Velg adresse og eiendom").click(); | ||
cy.get('[data-cy="input-address"]').clear().type('TestAdresse'); | ||
cy.get('[data-cy="input-bnr"]').clear().type('TestBnr'); | ||
cy.get('[data-cy="input-gnr"]').clear().type('TestGnr'); | ||
cy.get('[data-cy="overlay-confirm-button"').click(); | ||
cy.get('[data-cy="address-text"]').should("not.exist"); | ||
cy.get('[data-cy="arkivgpt-text"]').should("be.visible"); | ||
cy.get('[data-cy="3d-visning-widget"]').click(); | ||
cy.get('[data-cy="apply-3d-url-button"]').click(); | ||
cy.get('[data-cy="three-d-visning-text"]').should("not.exist"); | ||
cy.get('[data-cy="digital-tiltaksdata-widget"]').click(); | ||
cy.get('[data-cy="mock-map"]').click(); | ||
cy.get('[data-cy="digital-tilraksdata-text"]').should("not.exist"); | ||
}) | ||
|
||
|
||
|
||
}); | ||
}); | ||
}); |
Binary file modified
BIN
-923 KB
(15%)
...able displays data properly -- test landingpage has navigation bar (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-948 KB
(16%)
...on landing page get you to intended target -- test Mottakskontroll (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-964 KB
(15%)
...vbar on landing page get you to intended target -- test før søknad (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-947 KB
(16%)
...ar on landing page get you to intended target -- test under søknad (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-264 KB
...splay No data available when inputting negative or invalid numbers (failed).png
Binary file not shown.
Binary file removed
BIN
-371 KB
...ould open a PDF view when clicking the link element for a response (failed).png
Binary file not shown.
Binary file removed
BIN
-320 KB
...-- should return results when clicking CALL API with valid numbers (failed).png
Binary file not shown.
Binary file modified
BIN
-186 KB
(40%)
...ute for-soknadcadaid -- should be responsive on mobile devices (failed) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-184 KB
(42%)
...- Route for-soknadcadaid -- should be responsive on mobile devices (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+149 KB
...dcadaid -- should display file preview when a file is selected (failed) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+155 KB
...oknadcadaid -- should display file preview when a file is selected (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+125 KB
...Route for-soknadcadaid -- should remove a file and its results (failed) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-174 KB
(42%)
... -- Route for-soknadcadaid -- should remove a file and its results (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+212 KB
...onent Tests -- ArchiveGPT Component Tests -- Has ArchiveGPT header (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+164 KB
... Tests -- should navigate to the detailed report page when clicked (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+209 KB
...s correctly -- ArchiveGPT Component Tests -- Has ArchiveGPT header (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+157 KB
...Tests -- should load the iframe without errors -- before each hook (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+207 KB
...Tests -- should have clickable links for each document dynamically (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+157 KB
...Tests -- should load the iframe without errors -- before each hook (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+200 KB
...correctly sum the total points and update the progress dynamically (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+204 KB
...ectly -- should have clickable links for each document dynamically (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-48.9 KB
...ad-dashbord e2e Tests -- should render content -- before each hook (failed).png
Binary file not shown.
Binary file modified
BIN
-126 KB
(37%)
...orrectly -- renders the correct number of rows -- before each hook (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-76.9 KB
(40%)
...Tests -- should load the iframe without errors -- before each hook (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-153 KB
(39%)
...s/test_embedded_frame.cy.ts/The page must -- should load the title (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+137 KB
...able to go in and out of 3d widget witout any data being saved (failed) (1).png
Oops, something went wrong.
Binary file added
BIN
+141 KB
... be able to go in and out of 3d widget witout any data being saved (failed).png
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
webapp/src/app/for-soknad/byggeideer/dashbord/arkivgpt/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import ArkivGPTPage from "~/components/ArkivGPT"; | ||
|
||
export default async function ArkivGPT() { | ||
return ( | ||
<ArkivGPTPage/> | ||
); | ||
} |
9 changes: 9 additions & 0 deletions
9
webapp/src/app/for-soknad/byggeideer/dashbord/cadaid/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import CadaidPage from "~/components/CADAiD"; | ||
|
||
export default async function PlantegningsAnalyse() { | ||
return ( | ||
<CadaidPage/> | ||
); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"use client"; | ||
import UserDashboard from "~/components/UserDashboard"; | ||
|
||
export default function Dashboard() { | ||
const BASE_URL = "/for-soknad/byggeideer/dashbord"; | ||
return( | ||
<UserDashboard BASE_URL={BASE_URL}/> | ||
); | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
webapp/src/app/under-soknad/byggeideer/dashbord/arkivgpt/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import ArkivGPTPage from "~/components/ArkivGPT"; | ||
|
||
export default async function ArkivGPT() { | ||
return ( | ||
<ArkivGPTPage /> | ||
); | ||
} |
7 changes: 7 additions & 0 deletions
7
webapp/src/app/under-soknad/byggeideer/dashbord/cadaid/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import CadaidPage from "~/components/CADAiD"; | ||
|
||
export default async function PlantegningsAnalyse() { | ||
return ( | ||
<CadaidPage /> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"use client"; | ||
import UserDashboard from "~/components/UserDashboard"; | ||
|
||
export default function Dashboard() { | ||
const BASE_URL = "/under-soknad/byggeideer/dashbord"; | ||
return( | ||
<UserDashboard BASE_URL={BASE_URL}/> | ||
); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,41 @@ | ||||||
"use client"; | ||||||
import React from "react"; | ||||||
import Image from "next/image"; | ||||||
import { useRouter } from 'next/navigation'; | ||||||
interface ArkivGPTWidgetProps { | ||||||
hasInputPickAddress: boolean; | ||||||
} | ||||||
|
||||||
export function ArkivGPTWidget({hasInputPickAddress}: ArkivGPTWidgetProps) { | ||||||
const router = useRouter(); | ||||||
|
||||||
const handleNavigation = () => { | ||||||
router.push('/for-soknad/byggeideer/dashbord/arkivgpt'); | ||||||
}; | ||||||
|
||||||
|
||||||
return( | ||||||
<section data-cy="arkiv-gpt" | ||||||
className="border rounded-md p-4 shadow-md hover:shadow-lg transition-all cursor-pointer lg:col-span-2" | ||||||
onClick={handleNavigation}> | ||||||
<div className="flex justify-between items-center"> | ||||||
<h1 className="font-bold text-xlwebapp/src/app/for-soknad/byggeideer/dashbord/page.tsx">Tomtens arkiv historikk</h1> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
<Image src={hasInputPickAddress? "/Ikoner/Dark/SVG/Check, Success.svg" : "/Ikoner/Dark/SVG/Warning.svg"} | ||||||
alt={hasInputPickAddress? "hake" : "varselsymbol"} | ||||||
className="bg-kartAI-blue rounded-sm p-1" | ||||||
width={30} | ||||||
height={30}/> | ||||||
|
||||||
</div> | ||||||
{hasInputPickAddress? | ||||||
<div> | ||||||
<p className="underline">KLIKK HER:</p> | ||||||
<p>Les tidligere saker relatert til tomten</p> | ||||||
</div> | ||||||
: | ||||||
<p>Ingen arkiv funnet</p>} | ||||||
|
||||||
</section> | ||||||
|
||||||
) | ||||||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,87 @@ | ||||||
"use client"; | ||||||
import React, { use, useEffect, useState } from "react"; | ||||||
import Image from "next/image"; | ||||||
import { useRouter } from 'next/navigation'; | ||||||
interface CadaidWidgetProps { | ||||||
setHasInputCadaidWidget: (value: boolean) => void; | ||||||
hasInputCadaidWidget: boolean; | ||||||
reportUrl: string; | ||||||
} | ||||||
interface response { | ||||||
message: string; | ||||||
type: string; | ||||||
} | ||||||
|
||||||
export function CadaidWidget({setHasInputCadaidWidget, hasInputCadaidWidget, reportUrl }: CadaidWidgetProps) { | ||||||
const [cadaidRespons, setCadaidRespons] = useState<response[]>([]) | ||||||
const router = useRouter(); | ||||||
|
||||||
const handleNavigation = () => { | ||||||
router.push(reportUrl); | ||||||
}; | ||||||
|
||||||
const hardcodedRespons = [{message: "Du har fasade", type: "CONFIRMED"}, | ||||||
{message: "Du mangler snit", type: "MISSING"}, | ||||||
{message: "Du mangler situasjons kart", type: "MISSING" }] | ||||||
|
||||||
const handleClick = () => { | ||||||
handleNavigation(); | ||||||
if (!hasInputCadaidWidget) { | ||||||
setHasInputCadaidWidget(true); | ||||||
localStorage.setItem("CadaidRespons", JSON.stringify(hardcodedRespons)) ; | ||||||
|
||||||
} | ||||||
} | ||||||
useEffect(() => { | ||||||
if (cadaidRespons.length > 0) { | ||||||
localStorage.setItem("CadaidRespons", JSON.stringify(cadaidRespons)) ; | ||||||
} | ||||||
}, [cadaidRespons] ) | ||||||
|
||||||
useEffect(() => { | ||||||
const storedCadaidRespons = localStorage.getItem("CadaidRespons") | ||||||
|
||||||
if (storedCadaidRespons) { | ||||||
try { | ||||||
const parsedRespons: response[] = JSON.parse(storedCadaidRespons) as response[]; | ||||||
setCadaidRespons(parsedRespons); | ||||||
|
||||||
if (parsedRespons.length > 0) { | ||||||
setHasInputCadaidWidget(true); | ||||||
} | ||||||
|
||||||
} catch { | ||||||
console.error("respons could not be parsed") | ||||||
} | ||||||
} | ||||||
}, [setHasInputCadaidWidget]) | ||||||
|
||||||
return( | ||||||
<section data-cy="cadaid-widget" | ||||||
className="border rounded-md p-4 shadow-md hover:shadow-lg transition-all cursor-pointer lg:col-span-2" | ||||||
onClick={handleClick}> | ||||||
<div className="flex justify-between items-center"> | ||||||
<h1 className="font-bold text-xlwebapp/src/app/for-soknad/byggeideer/dashbord/page.tsx">Få oversikt over plantegninger</h1> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
<Image src={hasInputCadaidWidget? "/Ikoner/Dark/SVG/Check, Success.svg" : "/Ikoner/Dark/SVG/Warning.svg"} | ||||||
alt={hasInputCadaidWidget? "hake" : "varselsymbol"} | ||||||
className="bg-kartAI-blue rounded-sm p-1" | ||||||
width={30} | ||||||
height={30}/> | ||||||
|
||||||
</div> | ||||||
{hasInputCadaidWidget? | ||||||
<ul> | ||||||
{cadaidRespons.map((response , index) => ( | ||||||
<li className={`${response.type === "MISSING" ? "text-red-600" : "text-black"}`} | ||||||
key={index}>{response.message}</li> | ||||||
))} | ||||||
</ul> | ||||||
: | ||||||
<div> | ||||||
<p className="underline">KLIKK HER: </p> | ||||||
<p>Laste opp plantegning for å få se hva som må legges til før du skriver søknad</p> | ||||||
</div>} | ||||||
|
||||||
</section> | ||||||
) | ||||||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hva gjør webapp/src/app/for-soknad/byggeideer/dashbord/page.tsx her?