ReqoreProgress: under an inherited custom theme the track takes the surface colour (the intent check misfires), so an empty bar vanishes
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start in src/components/Progress/index.tsx and inspect getProgressColor, then trace how the intent prop and inherited theme values are used. Reproduce with the provided ReqoreModal and ReqoreProgress value={0} example; done means a no-intent track remains visibly neutral under a custom theme while intent-colored bars still work. No test file is named in the issue, so check for nearby progress tests.
Written by the indexing model from the issue text.
Description
What happens
getProgressColor (src/components/Progress/index.tsx) takes an intent as applied when theme.main !== theme.originalMain. A ReqoreProgress without an intent inside a ReqoreModal / ReqoreDrawer that has a customTheme inherits that custom theme: the drawer wraps its content in ReqoreThemeProvider, and useReqoreTheme inherits by default. So main differs from originalMain although no intent was set.
The track is then painted rgba(main, 0.2), the surface's own colour, on that surface. An empty bar (value={0}) disappears; a filled bar without an intent is drawn in the surface colour too.
<ReqoreModal isOpen customTheme={{ main: '#17171f' }}>
<ReqoreProgress value={0} />
</ReqoreModal>
The track is invisible inside the modal and visible outside it. Seen with @qoretechnologies/reqore 0.78.0 (beta).
What the landing page needs
qorus.cloud's wizards show their steps as a row of progress bars, one per step (done, current, to come). In the problem dialog and the early-access dialog (ReqoreModals with the card colour as customTheme), the steps still to come vanished.
Without an intent, the track should take the readable neutral it takes outside a custom theme. For example, the bar could tell an intent from the intent prop rather than from main !== originalMain.
What we did meanwhile
inheritCustomTheme={false} on each bar: src/components/wizard/WizardProgress.tsx in qorus-saas-landing, marked TODO(reqore) (PR https://github.com/qoretechnologies/qorus-saas-landing/pull/19).
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 0
- Avg merge
- 16h 28m
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qoretechnologies/reqore
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
qoretechnologies/reqore#725 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
qoretechnologies/reqore#675 ·
Maintainers usually reply within 1 day
-
Checkbox: a long description pushes the control out of its container — the label column cannot shrinkPossibly taken @Foxhoundn claimed this 53 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
qoretechnologies/reqore#662 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
qoretechnologies/reqore#745 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 73/100
qoretechnologies/reqore#738 ·
Maintainers usually reply within 1 day
All issues in qoretechnologies/reqore
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zabuton-app/meguri#875 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
iruzen-dono/workless#117 ·
Maintainers usually reply within 1 day
-
area:api area:web wave wave:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vetro-protocol/vetro-monorepo#1321 ·
Maintainers usually reply within 1 day