Skip to content

[P3] Centralize the 'delta-' default and profile field normalization #146

Description

@eboudrant

Priority: P3 · Review finding: #17

The 'delta-' default and the profile field list are repeated across src/templates.js, src/scanner.js, and static/js/home.js (including f === 'delta_prefix' ? 'delta-' : '' ternaries in the profile editor). Any change to profile shape currently touches 4+ call sites.

Fix: one shared constant + a normalizeProfile() helper used by templateToProfile, createTemplate, processSingleModule, and the frontend editor defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions