carwin / carwin/generators

Flag attribute division name doesn't work in production mode.

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
HTML
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

When listing the divisions as part of the flag attributes content, the name of the divisions appear obscured. This is likely due to the fact that the division names are pulled by using the name of the constructor function, which gets minified in production mode on build.

As an example of the problem, `s` in the below block should read `Pales`.

```
Dimensions: 300x500
# of Divisions: 3
s
limit: 3
color:
color: #167a35
complement: #7a165b
splitComplement: #167a35,#16477a,#7a161f
triad: #167a35,#35167a,#7a3516
tetrad: #167a35,#16297a,#7a165b,#7a6716
analogous: #167a35,#1f7a16,#167a21,#167a35,#167a49,#167a5d
monochromatic:
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the code that builds the flag attributes content and the production build path that supplies division names. Reproduce the production-mode output shown in the issue, then trace why the division name becomes a minified constructor name. Done means the division is displayed as “Pales” rather than “s” in production output.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.