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

chore(chat): refactor chat component #1950

Draft
wants to merge 29 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
dce417f
refactor: extract scroll logic from chat component into custom hook
Aug 8, 2024
0209754
refactor: extract conversation actions and merged messages logic from…
Aug 9, 2024
1b5b2a2
refactor: simplify conditional rendering of components
Aug 9, 2024
835eb90
refactor: extract chat compare section to component
Aug 9, 2024
4fb98fb
refactor: extract chat settings section to component
Aug 9, 2024
f1ef279
refactor: extract chat controls section to component
Aug 14, 2024
9aaeccf
refactor: extract chat messages section to component
Aug 14, 2024
ae04e92
refactor: extract conversation handlers to hppk
Aug 19, 2024
8278102
refactor: extract settings empty section into component
Aug 19, 2024
f60f0a6
refactor: sortings and renamings
Aug 19, 2024
dfb41ce
refactor: extract header section into component
Aug 19, 2024
617ffa3
refactor: rearrange components
Aug 20, 2024
afb4468
refactor: lint & format
Aug 20, 2024
610dfea
refactor: update useMergedMessages
sergesha Aug 20, 2024
a504fcd
fix e2e
sergesha Aug 23, 2024
a977bb9
fix e2e
sergesha Aug 24, 2024
9b95473
refactor: extract chat view enablers into hook
sergesha Aug 27, 2024
3d5dcf9
chore: lint & format
sergesha Aug 27, 2024
d15ab5a
chore: fix build
sergesha Sep 4, 2024
ad25af3
poc: use hook as a prop instead of props drilling
sergesha Sep 13, 2024
cc059b8
poc: use store selectors hook as a prop instead of props drilling
sergesha Sep 19, 2024
9f3099c
add modulify-toolkit lib
sergesha Sep 23, 2024
80de4b6
add middleware to modulify-toolkit, add backend-routes
sergesha Sep 23, 2024
3fc4d65
add inversify and component builder to modulify-toolkit lib
sergesha Sep 23, 2024
51bb6da
comment unused, but keep as example of lib usage
sergesha Sep 23, 2024
030ffc9
split modulify-toolkit into three libs (middleware, store, ui)
sergesha Sep 24, 2024
fd47b3b
middleware: use static matchers, as required by next.js
sergesha Sep 24, 2024
cfcdcc0
header customization to fit app-logo
sergesha Sep 25, 2024
2746bc1
header customization to fit app-logo
sergesha Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ModelsSelectors } from '@/src/store/models/models.reducers';

import { Combobox } from '../Common/Combobox';
import { DisableOverlay } from '../Common/DisableOverlay';
import { ModelSelectRow } from './ConversationSettings';
Copy link
Collaborator

Choose a reason for hiding this comment

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

this component still use state directly (useAppSelector)

import { ModelSelectRow } from './ChatView/ConversationSettings';

interface Props {
assistantModelId: string;
Expand Down
Loading
Loading