Skip to content
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

Add search result details component #11

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

chiatt
Copy link
Member

@chiatt chiatt commented Jan 16, 2025

Adds a component to display a simple report when a user select 'show more' in search result item. It is also displayed in lieu of a pop-up when a user clicks a feature on the map.

@chiatt chiatt requested a review from apeters January 16, 2025 23:55
Comment on lines 74 to 84
<template #item="image">
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
<div class="mb-4">
<div class="relative mx-auto">
<div style="padding: 3px">
<img :src="image.data" height="120px" width="120px" class="w-full rounded" />
</div>
</div>
</div>
</div>
</template>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be indented

function selectResult(resourceid: string) {
resultSelected.value = "";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line is unneeded if you're setting the value in the next line

@@ -15,13 +16,19 @@ const props = defineProps({
},
});

function highlightResult(resourceid: string) {
if (!resultSelected.value) {
resultsSelected.value = [];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need to assign an empty array if in the next line you're reassigning to a different array.

@apeters
Copy link
Member

apeters commented Jan 20, 2025

There's several build errors when running "build_development" that should be easy fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants