Skip to content

Conversation

@urmauur
Copy link
Member

@urmauur urmauur commented Nov 9, 2023

Issue: #564

Solution
Disabled input when active model and current convo id is different

New Improvement

Handle convo if model is deleted

  • still show history of convo on chat body, disabled input and show button re download again the model
Screenshot 2023-11-09 at 12 35 47

@urmauur urmauur requested review from louis-jan and namchuai November 9, 2023 05:37
@urmauur urmauur merged commit ac1c701 into main Nov 9, 2023
@urmauur urmauur deleted the conversation-state branch November 9, 2023 05:39

import { Conversation, Model } from '@janhq/core/lib/types'
import { Button } from '@janhq/uikit'
import { Badge, Button } from '@janhq/uikit'
Copy link
Contributor

Choose a reason for hiding this comment

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

should we remove Badge? since I don't see it being used

}
}

console.log(currentConvo)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we remove this?

return (
<div className="relative h-full w-full flex-shrink-0">
{models?.map((item) => <ExploreModelItem key={item._id} model={item} />)}
{models?.map((item, i) => <ExploreModelItem key={i} model={item} />)}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should not use index as component key in a list of components

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants