-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
07a47f4
Add logs plumbing
ahuang11 068a09b
Rename to Log
ahuang11 f97efc4
Implement in column
ahuang11 2e20fa5
Add to index.ts
ahuang11 bee0431
Implement functionality
ahuang11 6ba4f96
Replace min_entries with loaded_entries and make 2 spaces
ahuang11 5832cad
use get_objects implementation
ahuang11 2748f9d
Cleanup
ahuang11 95aebb6
Add test
ahuang11 5a64205
Add example and fix tests
ahuang11 6474895
Rewrite Log implementation
philippjfr ceed53e
Do not reset visible_objects
philippjfr cfe841d
Load only after half the buffer is visible
philippjfr 9fab290
Try to send event
ahuang11 109d70e
Move log to its own modules and add custom support to scroll button
ahuang11 a8753f4
Use super method
ahuang11 9ddce39
Remove loaded_entries, tweak docs, and rename visible_objects
ahuang11 a65e6a6
Optimize and improve behavior
ahuang11 83b0980
Update ref gallery
ahuang11 4bec589
Rename entries
ahuang11 956ffca
Add tests
ahuang11 008f0bf
Add test and watch load_buffer
ahuang11 1250096
Add more tests
ahuang11 a278079
Rename visible_indices to visible_range and visible_objects to visibl…
ahuang11 7f0c29d
Also cleanup synced indices to range
ahuang11 e8cdd8f
Rename to feed
ahuang11 81c9361
Missing
ahuang11 e27d213
Another missing
ahuang11 ea99984
ANother missing
ahuang11 71bc80f
Tests pass
ahuang11 6fc2a71
Couple more log mentions
ahuang11 2448926
Plus 1 to make it center on the last
ahuang11 22d55ef
Merge branch 'main' into add_logs
ahuang11 7b62dd5
Fix test maybe?
ahuang11 9f33c83
Maybe closer to fixing tests? It passes locally so I have to debug on GH
ahuang11 478c4e9
Be more tolerant on indeterministic numbers
ahuang11 08d09c7
Make more tolerant
ahuang11 8fa93af
Integrate Feed into chat feed
ahuang11 a685731
Add load buffer
ahuang11 a3abb9c
Fix test
ahuang11 0230420
Merge branch 'main' into integrate_feed
ahuang11 59e67e9
Merge branch 'main' into integrate_feed
ahuang11 a8e9432
Update scroll param
ahuang11 293b392
Merge branch 'main' into integrate_feed
ahuang11 c5856c5
Merge branch 'main' into integrate_feed
ahuang11 6688d78
Fix test
ahuang11 59ae292
Merge branch 'main' into integrate_feed
ahuang11 ead2501
Merge branch 'main' into integrate_feed
ahuang11 eddff8b
Replace class
ahuang11 c5027ac
Merge branch 'main' into integrate_feed
ahuang11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
?There was a problem hiding this comment.
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
There was a problem hiding this comment.
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