Skip to content

Commit a5a633c

Browse files
Make project field an array
This allows items to belong to multiple projects while ensuring at least one project is always specified. The changes also include updates to route handling and filtering logic to work with the new array-based project field.
1 parent 7f73de5 commit a5a633c

File tree

36 files changed

+48
-44
lines changed

36 files changed

+48
-44
lines changed

src/content.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@ const roadmapItems = defineCollection({
3131
heroImage: image(),
3232
heroImageFit: z.optional(z.enum(["fill", "contain", "cover"])),
3333
status: z.enum(["under-consideration", "in-progress", "released"]),
34-
project: z
34+
project: z.array(
35+
z
3536
.enum([
3637
"general",
3738
"maplibre-native",
3839
"maplibre-gl-js",
3940
"maplibre-tile-format",
4041
"martin-tile-server",
4142
])
42-
.default("general"),
43+
.default("general")
44+
)
45+
.nonempty(),
4346
bountyLink: z.optional(z.string()),
4447
bountyActive: z.optional(z.boolean()),
4548
released: z.optional(

src/content/roadmap/general/community-governance/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Community & Governance
33
heroImage: "./image.png"
4-
project: general
4+
project: [ general ]
55
status: released
66
released: January 2021
77
---

src/content/roadmap/general/project-website/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Project Website
33
heroImage: "./image.png"
4-
project: general
4+
project: [ general ]
55
status: released
66
released: June 2021
77
---

src/content/roadmap/maplibre-gl-js/blending-modes/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Blending Modes
33
heroImage: "./image.png"
4-
project: maplibre-gl-js
4+
project: [ maplibre-gl-js ]
55
status: under-consideration
66
bountyActive: true
77
bountyLink: https://github.com/maplibre/maplibre/issues/269

src/content/roadmap/maplibre-gl-js/globe-view/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Globe View
33
heroImage: "./image.png"
4-
project: maplibre-gl-js
4+
project: [ maplibre-gl-js ]
55
status: released
66
bountyActive: true
77
bountyLink: https://github.com/maplibre/maplibre/issues/190

src/content/roadmap/maplibre-gl-js/js-docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: JS Documentation Website
33
heroImage: "./image.png"
4-
project: maplibre-gl-js
4+
project: [ maplibre-gl-js ]
55
status: released
66
released: April 2021
77
---

src/content/roadmap/maplibre-gl-js/luma-gl-refactor/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Refactor Rendering to luma.gl
33
heroImage: "./luma.png"
4-
project: maplibre-gl-js
4+
project: [ maplibre-gl-js ]
55
status: in-progress
66
---
77

src/content/roadmap/maplibre-gl-js/non-mercator-projection/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Non-Mercator Projection
33
heroImage: "./image.png"
4-
project: maplibre-gl-js
4+
project: [ maplibre-gl-js ]
55
status: under-consideration
66
bountyActive: true
77
bountyLink: https://github.com/maplibre/maplibre/issues/272

src/content/roadmap/maplibre-gl-js/svg-symbol-source/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: SVG Symbol Source
33
heroImage: "./image.png"
4-
project: maplibre-gl-js
4+
project: [ maplibre-gl-js ]
55
status: under-consideration
66
bountyActive: true
77
bountyLink: https://github.com/maplibre/maplibre/issues/271

src/content/roadmap/maplibre-gl-js/terrain3d/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Terrain3D
33
heroImage: "./image.png"
4-
project: maplibre-gl-js
4+
project: [ maplibre-gl-js ]
55
status: released
66
released: May 2022
77
---

0 commit comments

Comments
 (0)