Formalize the definition of Project::$categories

Created on 5 August 2025, 8 days ago

Problem/Motivation

The Project object's categories property is very poorly defined. The intention, based on my reading of the Svelte code, is that it's meant to be an array like [$some_id => ['name' => 'Foo'], ...], but that's overcomplicated and weird.

Proposed resolution

Formally define Project::$categories as a simple associative array. The keys are category IDs (int or string), and the values are strings with the human-facing name of that category. We'll need to adjust the Svelte code to match, and likely a couple of sources will need some minor changes for this too.

Since this is an API refinement (although not exactly a "change"), it is a stable blocker.

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
  • API clean-up

    Refactors an existing API or subsystem for consistency, performance, modularization, flexibility, third-party integration, etc. May imply an API change. Frequently used during the Code Slush phase of the release cycle.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024