SillyTavern / SillyTavern-Timelines

Timeline view for SillyTavern chats
MIT License
34 stars 4 forks source link

UX bugs #17

Closed Technologicat closed 4 months ago

Technologicat commented 5 months ago

From quickly trying out Timelines for a small creative writing test, the UX has some rough edges:

I'll see if I have the time to do something to these - as usual, no promises except of the async/await kind.

EDIT: My mistake. The API endpoint gets the correct file list.

Technologicat commented 5 months ago

Talking to myself here...

Therefore:

Will need to think about what this all means for Timelines when less tired.

Technologicat commented 5 months ago

I have this pretty much working, now pending on #16.

@Cohee1207: What's the preferred way to handle hotkeys in third-party extensions? I'd like Esc to close the timeline view, like in many built-in views, but I suppose modding the Esc catcher in RossAscends-mods.js is not the way to do it. :)

Cohee1207 commented 5 months ago

Possibly stopPropagation is your bro here if you want to cancel out the default top-level handler of Esc key.

Technologicat commented 5 months ago

Upcoming PR posted as #18.

Changelog moved there.

Technologicat commented 5 months ago

Possibly stopPropagation is your bro here if you want to cancel out the default top-level handler of Esc key.

I have no problem with the top-level handler, except it's not closing the timeline view. :)

I noticed that the new Token probabilities feature added a case to RossAscends-mods.js, but that's a core feature, not a third-party plugin. Hence, I was thinking that I probably need to wire in a custom handler when the plugin initializes...

Cohee1207 commented 5 months ago

Yes, a custom handler with stopPropagation cancels the event bubbling to the top-level handler if it was used to close a Timelines view.

Technologicat commented 5 months ago

Yes, a custom handler with stopPropagation cancels the event bubbling to the top-level handler if it was used to close a Timelines view.

I missed the obvious implication, as usual. Thanks for the clarification. :)

Technologicat commented 4 months ago

Resolved by #18.