Skip to content
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

Use pn.Feed internally for ChatFeed #6296

Merged
merged 50 commits into from
Mar 6, 2024
Merged

Use pn.Feed internally for ChatFeed #6296

merged 50 commits into from
Mar 6, 2024

Conversation

ahuang11
Copy link
Contributor

@ahuang11 ahuang11 commented Feb 2, 2024

Replaces Column with Feed; works decently after fixing some bugs in the Feed branch.

Screen.Recording.2024-02-02.at.11.57.05.AM.mov

Copy link

codecov bot commented Feb 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.05%. Comparing base (77cf228) to head (c5027ac).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6296   +/-   ##
=======================================
  Coverage   82.04%   82.05%           
=======================================
  Files         310      310           
  Lines       45935    45955   +20     
=======================================
+ Hits        37688    37708   +20     
  Misses       8247     8247           
Flag Coverage Δ
ui-tests 36.53% <30.76%> (-0.01%) ⬇️
unitexamples-tests 71.58% <92.30%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from add_logs to main February 4, 2024 16:15
@ahuang11 ahuang11 changed the title Integrate feed Use pn.Feed internally for ChatFeed Feb 5, 2024
css_classes=["chat-feed-log"],
stylesheets=self._stylesheets,
**linked_params
)
self._chat_log.height = None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed? Should height be removed from linked_params?

Copy link
Contributor Author

@ahuang11 ahuang11 Feb 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pn.Feed sets a fixed height if height is not explicitly set; if not, the local scrollbar never appears and thus no buffering is allowed.

Maybe it will be alleviated with this: #6266

Copy link
Contributor Author

@ahuang11 ahuang11 Feb 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, if I remove the fixed height from pn.Feed, no need to set ChatFeed._chat_log.height to None

Screen.Recording.2024-02-05.at.11.45.07.AM.mov

But Feed scroll bar is useless by the global scroll bar

Screen.Recording.2024-02-05.at.11.44.30.AM.mov

@ahuang11 ahuang11 added this to the v1.4.0 milestone Feb 28, 2024
@philippjfr philippjfr merged commit 67377d7 into main Mar 6, 2024
14 of 15 checks passed
@philippjfr philippjfr deleted the integrate_feed branch March 6, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants