-
Notifications
You must be signed in to change notification settings - Fork 619
Nebula: Update Reasoning UI: show only latest presence in pending state #6913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nebula: Update Reasoning UI: show only latest presence in pending state #6913
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6913 +/- ##
=======================================
Coverage 55.11% 55.11%
=======================================
Files 896 896
Lines 57192 57192
Branches 3955 3955
=======================================
Hits 31519 31519
Misses 25576 25576
Partials 97 97
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
…te (#6913) <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR enhances the `Reasoning` component in the `Reasoning.tsx` file by improving the handling of text display based on the `isPending` prop, adding conditional rendering for showing all texts or just the last one. ### Detailed summary - Added `showAll` variable to determine if all texts should be displayed. - Introduced `lastText` to hold the last item from `props.texts`. - Updated the rendering logic to conditionally show all texts or just the last one based on `showAll`. - Changed `<span>` to `<span className="text-foreground">` for styling consistency. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
b5cebd1 to
293b246
Compare

PR-Codex overview
This PR enhances the
Reasoningcomponent by modifying how text is displayed based on theisPendingprop. It introduces a new variable to determine if all texts should be shown and updates the rendering logic accordingly.Detailed summary
showAllvariable to determine text visibility.lastTextto capture the last element inprops.texts.showAll.<span>from default totext-foreground.