feat: add deprecated marking to package timeline page - #3133
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
|
Also related to #2630 |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe timeline API now returns deprecation messages and categorical sub-event states. The package timeline creates deprecation events for all deprecated versions. Charts render success, warning, and error states. Supported locales include the deprecated label. ChangesPackage timeline status states
Sequence Diagram(s)sequenceDiagram
participant PackageMetadata
participant TimelineAPI
participant PackageTimelinePage
participant TimelineCharts
participant I18nTranslations
PackageMetadata->>TimelineAPI: Provide deprecation metadata
TimelineAPI->>PackageTimelinePage: Return timeline versions and states
PackageTimelinePage->>I18nTranslations: Request deprecated label
I18nTranslations-->>PackageTimelinePage: Return translated label
PackageTimelinePage->>TimelineCharts: Render sub-events
TimelineCharts-->>PackageTimelinePage: Display green, amber, or red states
Possibly related PRs
Suggested reviewers: Mergeability Score: ⚪ Minimal · up to This change adds deprecated-package marking to the package timeline page without any identified merge-blocking risk; it is merge-ready after normal checks and review. 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (3 passed)
✨ 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 |
|
@gameroman Thank you for providing the example; I hadn't considered this scenario before. |
ghostdevv
left a comment
There was a problem hiding this comment.
I wonder if we should show the deprecation on the timeline graph itself too?
I think we should, since the chart can be exported, it needs to carry this information.
These are not small changes, I recommend a separate issue. I think the present PR can be merged as is, then I can deal with the graph updates. |
|
@gameroman It has been adjusted. |
gameroman
left a comment
There was a problem hiding this comment.
Looks nice
Timeline graph changes can be a separate PR 👍
Agreed, although it's just cosmetics, as the warning icon works well |





🔗 Linked issue
/
🧭 Context
related to #3121 (comment)
📚 Description