dotCMS / dotCMS/core

libs/ui: dead ComponentStore shares its exported name with the live signalStore in dot-ai-image-prompt

Open Beginner friendly
#37,422 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Team : Modernization
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Two different files export the same symbol, DotAiImagePromptStore:

  • core-web/libs/ui/src/lib/components/dot-ai-image-prompt/ai-image-prompt.store.ts — a legacy ComponentStore, not imported by anything
  • core-web/libs/ui/src/lib/components/dot-ai-image-prompt/store/ai-image-prompt.store.ts — the live signalStore, which the component actually provides

Neither is exported from the @dotcms/ui barrel, so this is internal only, but a same-named dead file one directory up is an easy thing to edit by mistake.

Found while auditing dotAI service usage for #37417. Deliberately not deleted there — unrelated to that feature and it deserves its own review.

Contributor guide

Open the contributing guide

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

Compare core-web/libs/ui/src/lib/components/dot-ai-image-prompt/ai-image-prompt.store.ts with store/ai-image-prompt.store.ts, starting by checking the legacy file's imports and usages. Confirm the component uses the signalStore, then remove or otherwise resolve the unused duplicate while leaving the live store intact.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.