enhancement: default open Jan Input Box Settings and Right panel #4234
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.
Describe Your Changes
changes made to three files in a codebase:
Responsive.tsx
,App.atom.ts
, andThread.atom.ts
. Here's a summary of each change:Responsive.tsx:
lastLeftPanelState
andlastRightPanelState
have been modified. Previously, these refs were initialized astrue
for both, but now they are initialized using the current state values ofshowLeftPanel
andshowRightPanel
.App.atom.ts:
atomWithStorage
fromjotai/utils
was added, which allows creating a persistent atom.showRightPanelAtom
is modified to useatomWithStorage
, meaning it will now persist the panel's state using local storage under the keySHOW_RIGHT_PANEL
. The default state of this atom is changed fromtrue
tofalse
.Thread.atom.ts:
activeSettingInputBoxAtom
was changed fromfalse
totrue
.true
by default, which means the input box might now be in the active/open state when the application loads.These changes generally deal with the default states and durability (persistent state) of UI components and user inputs.
Screen when fresh install
Create new thread
Create new thread when rightpanel open
When create new thread Right panel and Chat input box setting will depends on local storage
Fixes Issues
Self Checklist