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

Release 2025-01-23 #138

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c1c6cd9
Introduce contact table
tordans Oct 28, 2024
a44f942
Update Packages (Minor)
tordans Jan 22, 2025
469036a
Packages: Update nuqs to version 2
tordans Jan 22, 2025
fea6834
DB: Use postgres 16 everywhere
tordans Jan 22, 2025
4560e84
Packages: Updates some major versions
tordans Jan 22, 2025
5aa1837
Imprint: remove twitter link, update wording
JohannaPeanut Jan 23, 2025
339d174
Marketingpage: remove twitter link
JohannaPeanut Jan 23, 2025
14b3921
Merge branch 'main' into develop
JohannaPeanut Jan 23, 2025
8be11f1
Project: add field isExportApi, update form and schema
JohannaPeanut Jan 28, 2025
8e59ad2
Project: create geo export api
JohannaPeanut Jan 28, 2025
465eeb9
Subsubsection: update zod schema structure
JohannaPeanut Jan 28, 2025
918024a
Subsection: add fields estimatedCompletionDate and status, update for…
JohannaPeanut Jan 29, 2025
988596f
Project: include ids, date and status in geo export api response
JohannaPeanut Jan 29, 2025
6adc5f1
Project: standardize error logs in geo export api
JohannaPeanut Jan 29, 2025
313a78d
Project: rename field export enabled
JohannaPeanut Jan 30, 2025
5678933
Form: standardize LabeledCheckboxes
JohannaPeanut Jan 30, 2025
454865f
Project: remove error cases, replace console.error with .log in geo e…
JohannaPeanut Jan 30, 2025
f481e06
Project: update response object in geo export
JohannaPeanut Jan 30, 2025
80d4567
Project: replace enableExport checkbox
JohannaPeanut Jan 30, 2025
cd1d4ca
Subsection: update admin geo import with placemark
JohannaPeanut Feb 4, 2025
c475f03
Project: update placeholder/hint in form
JohannaPeanut Feb 4, 2025
643c135
Subsection: update column estimatedCompletionDateString
JohannaPeanut Feb 4, 2025
cdb4b0c
Update schema.prisma
JohannaPeanut Feb 4, 2025
eb8a68e
Merge branch 'develop' into project-export-api
JohannaPeanut Feb 4, 2025
b13c188
Add project export (#141)
JohannaPeanut Feb 4, 2025
7980f94
Project: add cors headers for export
JohannaPeanut Feb 5, 2025
3f70768
Project: accept .json ending in export
JohannaPeanut Feb 5, 2025
dd093cb
Breadcrumb: update Link
JohannaPeanut Feb 12, 2025
eb6e615
Project: use Placemark Play for subsections update
JohannaPeanut Feb 12, 2025
bed6777
ContactsTable: add back link
JohannaPeanut Feb 12, 2025
08aa67e
SurveyResponse: add icon in atlas link
JohannaPeanut Feb 18, 2025
9472f8d
Admin: update wording
JohannaPeanut Feb 18, 2025
b255bb0
Admin: update wording
JohannaPeanut Feb 18, 2025
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: 0 additions & 3 deletions .env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ S3_UPLOAD_ROOTFOLDER=upload-localdev
S3_UPLOAD_KEY=AAAAAAAAAAAAAAAAAAAA
S3_UPLOAD_SECRET=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

# Get from https://felt.com/ => Settings
FELT_TOKEN=felt_pat_AAAAAAAAAAAAAAAAAAAAAA

# Admin mail address, mails are sent to
[email protected]

Expand Down
2 changes: 0 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
| | | |
| `ADMIN_EMAIL` | `vars.ADMIN_EMAIL` | |
| | | |
| `FELT_TOKEN` | `secrets.FELT_TOKEN` | |
| | | |
| `S3_UPLOAD_KEY` | `secrets.S3_UPLOAD_KEY` | |
| `S3_UPLOAD_SECRET` | `secrets.S3_UPLOAD_SECRET` | |
| `S3_UPLOAD_ROOTFOLDER` | `.env`-variable | In `.env` as composite value |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/setup-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ jobs:

ADMIN_EMAIL='${{ vars.ADMIN_EMAIL }}'

FELT_TOKEN='${{ secrets.FELT_TOKEN }}'

S3_UPLOAD_KEY='${{ secrets.S3_UPLOAD_KEY }}'
S3_UPLOAD_SECRET='${{ secrets.S3_UPLOAD_SECRET }}'
S3_UPLOAD_ROOTFOLDER='upload-${{ inputs.ENVIRONMENT }}'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Project" ADD COLUMN "isExportApi" BOOLEAN NOT NULL DEFAULT false;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- AlterTable
ALTER TABLE "Subsection" ADD COLUMN "estimatedCompletionDate" TIMESTAMP(3),
ADD COLUMN "subsubsectionStatusId" INTEGER;

-- AddForeignKey
ALTER TABLE "Subsection" ADD CONSTRAINT "Subsection_subsubsectionStatusId_fkey" FOREIGN KEY ("subsubsectionStatusId") REFERENCES "SubsubsectionStatus"("id") ON DELETE SET NULL ON UPDATE CASCADE;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
Warnings:

- You are about to drop the column `isExportApi` on the `Project` table. All the data in the column will be lost.

*/
-- AlterTable
ALTER TABLE "Project" DROP COLUMN "isExportApi",
ADD COLUMN "exportEnabled" BOOLEAN NOT NULL DEFAULT false;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
Warnings:

- You are about to drop the column `felt_subsection_geometry_source_url` on the `Project` table. All the data in the column will be lost.

*/
-- AlterTable
ALTER TABLE "Project" DROP COLUMN "felt_subsection_geometry_source_url",
ADD COLUMN "placemarkUrl" TEXT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
Warnings:

- You are about to drop the column `estimatedCompletionDate` on the `Subsection` table. All the data in the column will be lost.

*/
-- AlterTable
ALTER TABLE "Subsection" DROP COLUMN "estimatedCompletionDate",
ADD COLUMN "estimatedCompletionDateString" TEXT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Warnings:

- You are about to drop the column `placemarkUrl` on the `Project` table. All the data in the column will be lost.

*/
-- AlterTable
ALTER TABLE "Project" DROP COLUMN "placemarkUrl";
72 changes: 39 additions & 33 deletions db/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ model Token {
// }

model Project {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
//
slug String @unique // shortTitle and URL Slug
subTitle String?
description String?
logoSrc String?
partnerLogoSrcs String[]
felt_subsection_geometry_source_url String?
slug String @unique // shortTitle and URL Slug
subTitle String?
description String?
logoSrc String?
partnerLogoSrcs String[]
exportEnabled Boolean @default(false)
//
manager User? @relation(fields: [managerId], references: [id])
managerId Int?
manager User? @relation(fields: [managerId], references: [id])
managerId Int?

surveyResponseTopics SurveyResponseTopic[]
subsections Subsection[]
Expand Down Expand Up @@ -238,28 +238,33 @@ model Operator {
}

model Subsection {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
//
slug String // shortTitle and URL Slug
start String
end String
order Int @default(autoincrement())
geometry Json
labelPos LabelPositionEnum @default(top)
description String?
lengthKm Float // Kilometer
priority PriorityEnum @default(OPEN) // Priorität
//
project Project @relation(fields: [projectId], references: [id])
projectId Int
manager User? @relation(fields: [managerId], references: [id])
managerId Int?
operator Operator? @relation(fields: [operatorId], references: [id])
operatorId Int?
networkHierarchy NetworkHierarchy? @relation(fields: [networkHierarchyId], references: [id])
networkHierarchyId Int?
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
//
slug String // shortTitle and URL Slug
start String
end String
order Int @default(autoincrement())
geometry Json
labelPos LabelPositionEnum @default(top)
description String?
lengthKm Float // Kilometer
priority PriorityEnum @default(OPEN) // Priorität
estimatedCompletionDateString String? // Jahresquartal der geplanten Fertigstellung als string Form "1-2023"

//
project Project @relation(fields: [projectId], references: [id])
projectId Int
manager User? @relation(fields: [managerId], references: [id])
managerId Int?
operator Operator? @relation(fields: [operatorId], references: [id])
operatorId Int?
networkHierarchy NetworkHierarchy? @relation(fields: [networkHierarchyId], references: [id])
networkHierarchyId Int?
SubsubsectionStatus SubsubsectionStatus? @relation(fields: [subsubsectionStatusId], references: [id])
subsubsectionStatusId Int?
//

subsubsections Subsubsection[]
stakeholdernotes Stakeholdernote[]
Expand Down Expand Up @@ -390,6 +395,7 @@ model SubsubsectionStatus {
project Project @relation(fields: [projectId], references: [id])
projectId Int
subsubsections Subsubsection[]
Subsection Subsection[]

@@unique([projectId, slug])
}
Expand Down
8 changes: 4 additions & 4 deletions db/seeds/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,35 @@ const seedProjects = async () => {
Sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr.`,
managerId: null,
logoSrc: "rsv8-logo.png",
felt_subsection_geometry_source_url: null,
partnerLogoSrcs: ["rsv8-logo.png", "test.png"],
exportEnabled: false,
},
{
slug: "rs3000",
subTitle: "Radschnellverbindung 3000",
description: null,
managerId: null,
logoSrc: null,
felt_subsection_geometry_source_url: null,
partnerLogoSrcs: [],
exportEnabled: false,
},
{
slug: "rs0v1",
subTitle: "Radschnellverbindung No Section",
description: null,
managerId: null,
logoSrc: null,
felt_subsection_geometry_source_url: null,
partnerLogoSrcs: [],
exportEnabled: false,
},
{
slug: "rs0v2",
subTitle: "Radschnellverbindung No Subsection",
description: null,
managerId: null,
logoSrc: null,
felt_subsection_geometry_source_url: null,
partnerLogoSrcs: [],
exportEnabled: false,
},
]

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3"
services:
db:
image: postgres:14-alpine
image: postgres:16-alpine
environment:
POSTGRES_PASSWORD: password
LANG: en_US.UTF-8
Expand Down
Loading
Loading