Skip to content

Conversation

@tomasz-stefaniak
Copy link
Contributor

@tomasz-stefaniak tomasz-stefaniak commented Oct 8, 2024

Description

Added history sidebar on large screens.

Checklist

  • The base branch of this PR is dev, rather than main
  • The relevant docs, if any, have been updated or created

Screenshots

Screen.Recording.2024-10-08.at.5.50.00.PM.mov

Testing

[ For new or modified features, provide step-by-step testing instructions to validate the intended behavior of the change. ]

@tomasz-stefaniak tomasz-stefaniak marked this pull request as ready for review October 8, 2024 15:52
const [lastSessionId, setLastSessionId] = useState<string | undefined>();

useEffect(() => {
const storedId = localStorage.getItem("lastSessionId");
Copy link
Collaborator

Choose a reason for hiding this comment

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

We have a file with typings for all of our localStorage accessors: https://github.com/continuedev/continue/blob/main/gui/src/util/localStorage.ts

So I think we should add this there and update to use the getLocalStorage fn.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code actually wasn't needed. Removed it 👌

// Note that these breakpoints are primarily optimized for the input toolbar
screens: {
xxs: "170px", // Smallest width for Primary Sidebar in VS Code
"2xs": "170px", // Smallest width for Primary Sidebar in VS Code
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for making this update! 😁

@Patrick-Erichsen Patrick-Erichsen assigned TyDunn and unassigned TyDunn Oct 8, 2024
Copy link
Contributor

@TyDunn TyDunn left a comment

Choose a reason for hiding this comment

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

@tomasz-stefaniak Looks like a good next iteration! My two thoughts:

  1. I suspect we'll want to increase the breakpoint a little, so that the history section is only added if the sidebar is expanded a bit wider than the current breakpoint
  2. I think we should work on making the history page look / feel much nicer after we get this merged

@tomasz-stefaniak
Copy link
Contributor Author

@tomasz-stefaniak Looks like a good next iteration! My two thoughts:

  1. I suspect we'll want to increase the breakpoint a little, so that the history section is only added if the sidebar is expanded a bit wider than the current breakpoint
  2. I think we should work on making the history page look / feel much nicer after we get this merged
  1. I updated it to 1180px from 1140px. I think it's the right balance - any wider and it wouldn't open at all unless the left bar is removed.
  2. I agree - I wanted to get this PR out of the way quickly but there's plenty of room for improvement on the history page UI

@sestinj sestinj merged commit a212612 into dev Oct 13, 2024
@sestinj sestinj deleted the tomasz/full-screen-ui branch October 17, 2025 22:26
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.

5 participants