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 category and stage icons to project object list #1447

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/src/components/projectObject/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
timePeriodFragment,
} from '@backend/components/projectObject/index.js';
import { getPool } from '@backend/db.js';
import { logger } from '@backend/logging.js';

import {
ObjectsByProjectSearch,
Expand Down Expand Up @@ -58,6 +57,7 @@ function getProjectObjectSearchFragment({
po.end_date AS "endDate",
po.object_name AS "objectName",
(object_stage).id AS "objectStage",
(SELECT array_agg((object_category).id) FROM app.project_object_category WHERE po.id = project_object_category.project_object_id) AS "objectCategory",
jsonb_build_object(
'projectId', project.id,
'projectName', project.project_name,
Expand Down Expand Up @@ -252,6 +252,7 @@ export async function projectObjectSearch(input: ProjectObjectSearch) {
"endDate",
"objectName",
"objectStage",
"objectCategory",
project
${withGeometries ? sql.fragment`, search_results.geom` : sql.fragment``}
FROM search_results
Expand Down
11 changes: 10 additions & 1 deletion frontend/src/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,16 @@ function AboutDialog({ open, handleClose }: { open: boolean; handleClose: () =>

return (
<Dialog open={open} onClose={handleClose}>
<DialogTitle css={logoStyle}>Hanna</DialogTitle>
<DialogTitle
css={css`
${logoStyle} color: #4c4c4c;
:hover {
color: inherit;
}
`}
>
Hanna
</DialogTitle>
<DialogContent
css={css`
padding: 0 auto;
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/assets/icons/hulevedet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions frontend/src/assets/icons/leikkikentat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions frontend/src/assets/icons/liikuntareitit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions frontend/src/assets/icons/maa_ja_vesialueet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions frontend/src/assets/icons/rakentaminen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions frontend/src/assets/icons/satama.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions frontend/src/assets/icons/suunnittelu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions frontend/src/assets/icons/taitorakenteet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions frontend/src/assets/icons/tekniset_jarjestelmat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions frontend/src/assets/icons/tiet_ja_kadut.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions frontend/src/assets/icons/viheralueet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions frontend/src/assets/icons/ymparistorakenteet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 13 additions & 13 deletions frontend/src/components/Map/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ import Style, { StyleFunction, StyleLike } from 'ol/style/Style';
import Text from 'ol/style/Text';

import { theme } from '@frontend/Layout';
import detailplanClusterPointHover from '@frontend/assets/detailPlanClusterPointHover.png';
import detailplanClusterPoint from '@frontend/assets/detailplanClusterPoint.png';
import investmentClusterPoint from '@frontend/assets/investmentClusterPoint.png';
import investmentClusterPointHover from '@frontend/assets/investmentClusterPointHover.png';
import maintenanceClusterPoint from '@frontend/assets/maintenanceClusterPoint.png';
import maintenanceClusterPointHover from '@frontend/assets/maintenanceClusterPointHover.png';
import projectClusterPoint from '@frontend/assets/projectClusterPoint.png';
import projectClusterPointHover from '@frontend/assets/projectClusterPointHover.png';
import projectClusterPointSelected from '@frontend/assets/projectClusterPointSelected.png';
import projectObjectClusterPoint from '@frontend/assets/projectObjectClusterPoint.png';
import projectObjectClusterPointHover from '@frontend/assets/projectObjectClusterPointHover.png';
import projectObjectClusterPointSelected from '@frontend/assets/projectObjectClusterPointSelected.png';
import projectObjectPointSmall from '@frontend/assets/projectObjectPointSmall.png';
import detailplanClusterPointHover from '@frontend/assets/map/detailPlanClusterPointHover.png';
import detailplanClusterPoint from '@frontend/assets/map/detailplanClusterPoint.png';
import investmentClusterPoint from '@frontend/assets/map/investmentClusterPoint.png';
import investmentClusterPointHover from '@frontend/assets/map/investmentClusterPointHover.png';
import maintenanceClusterPoint from '@frontend/assets/map/maintenanceClusterPoint.png';
import maintenanceClusterPointHover from '@frontend/assets/map/maintenanceClusterPointHover.png';
import projectClusterPoint from '@frontend/assets/map/projectClusterPoint.png';
import projectClusterPointHover from '@frontend/assets/map/projectClusterPointHover.png';
import projectClusterPointSelected from '@frontend/assets/map/projectClusterPointSelected.png';
import projectObjectClusterPoint from '@frontend/assets/map/projectObjectClusterPoint.png';
import projectObjectClusterPointHover from '@frontend/assets/map/projectObjectClusterPointHover.png';
import projectObjectClusterPointSelected from '@frontend/assets/map/projectObjectClusterPointSelected.png';
import projectObjectPointSmall from '@frontend/assets/map/projectObjectPointSmall.png';
import { SelectedProjectColorCode } from '@frontend/stores/map';

import { ProjectType } from '@shared/schema/project/type';
Expand Down
Loading
Loading