ProfessionalWiki / ProfessionalWiki/Rules

Normalize condition categories

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
PHP
Stars
3
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Follow-up to https://github.com/ProfessionalWiki/Rules/issues/48

The autocomplete UI in https://github.com/ProfessionalWiki/Rules/pull/39 adds categories using "text format" (with spaces), but the config can still be saved with categories in "database format" (with underscore).

AC: Either rewrite the config JSON on save to ensure all categories are normalized to "text format", or else normalize upon deserialization.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading issue 48 and pull request 39 to understand the existing category formats and autocomplete behavior. Trace where the configuration JSON is saved or deserialized, then choose one of the stated normalization points. Done means categories consistently use text format with spaces regardless of how the config was originally stored.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.