[BUG] Progress number color has no effect#210
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Reviewer's guide (collapsed on small PRs)Reviewer's GuideFixes the progress number color behavior so that the configured color is actually applied in the SVG output and updates the README to document the new default color for the progress number. Sequence diagram for applying progress_number_color in SVG generationsequenceDiagram
actor User
participant Client
participant ProgressService
participant TemplateRenderer
User->>Client: Request progress badge with progress_number_color
Client->>ProgressService: HTTP GET /progress?progress_number_color=ffffff
ProgressService->>ProgressService: Parse query parameters
ProgressService->>ProgressService: Determine numberColor (param or default)
ProgressService->>TemplateRenderer: Render progress.svg(numberColor, progress, otherParams)
TemplateRenderer-->>ProgressService: SVG content with numberColor applied
ProgressService-->>Client: HTTP 200 SVG response
Client-->>User: Display badge with correct number color
Flow diagram for handling progress_number_color parameterflowchart TD
A[Start request] --> B[Read progress_number_color from query]
B --> C{progress_number_color provided?}
C -- Yes --> D[Validate hex color]
C -- No --> E[Use default progress_number_color ffffff]
D --> F{Valid?}
F -- Yes --> G[Set numberColor to provided value]
F -- No --> E
E --> H[Inject numberColor into progress.svg template]
G --> H
H --> I[Render SVG output]
I --> J[Return SVG response]
J --> K[End]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 27 minutes and 55 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Secrets | Apr 17, 2026 2:50p.m. | Review ↗ | |
| Python | Apr 17, 2026 2:50p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Please ensure the default
progress_number_colorvalue in the rendering logic/template is updated toffffffas well so that the documented default in the README stays consistent with the actual behavior.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Please ensure the default `progress_number_color` value in the rendering logic/template is updated to `ffffff` as well so that the documented default in the README stays consistent with the actual behavior.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
Failed to generate code suggestions for PR |
|
Infisical secrets check: ✅ No secrets leaked! 💻 Scan logs2026-04-17T14:50:59Z INF scanning for exposed secrets...
2:50PM INF 134 commits scanned.
2026-04-17T14:50:59Z INF scan completed in 22.2ms
2026-04-17T14:50:59Z INF no leaks found
|
Up to standards ✅🟢 Issues
|

📑 Description
Closes #209
✅ Checks
☢️ Does this introduce a breaking change?
Summary by Sourcery
Documentation: