183 Commits

Author SHA1 Message Date
Louis
b60978bab3 chore: remove unused types 2023-11-16 22:57:28 +07:00
Louis
9f0efa56ce chore: update convo last message 2023-11-16 22:57:28 +07:00
Louis
c5d4163869 fix: model download state is not updated accordingly 2023-11-16 22:57:28 +07:00
Louis
38b2e5e7a2 refactor: entities references & logics 2023-11-16 22:57:28 +07:00
Louis
4823c4f3fe refactor: app entities 2023-11-16 22:57:28 +07:00
NamH
52d56a8ae1
refactor: move file to jan root (#598)
* feat: move necessary files to jan root

Signed-off-by: James <james@jan.ai>

* chore: check model dir

---------

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
Co-authored-by: Louis <louis@jan.ai>
2023-11-16 12:09:09 +07:00
Louis
89387c8a1b fix: state handling - should set active model to undefined if loaded fail 2023-11-14 21:02:29 +07:00
Louis
d7efd9813a chore: handle GGUFv1 error 2023-11-14 21:02:29 +07:00
Louis
7c2c1a2b3d chore: validate model status 2023-11-14 21:02:29 +07:00
Louis
67bc28dd85 chore: attempt to display the error message returned from the APIs 2023-11-14 21:02:29 +07:00
Louis
df6e9802f6
fix: wrong model available state check 2023-11-14 20:04:49 +07:00
NamH
1fc9c4e220
fix(#591): prevent duplicate message id issue (#595)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-11-14 09:37:54 +07:00
Faisal Amir
41003861f8 Fix weird padding vertical snippet code 2023-11-13 22:08:49 +07:00
Faisal Amir
51e7d87328 Remove unused font on layout template 2023-11-13 21:46:12 +07:00
Faisal Amir
dcc2b466d7 Using some function instead filter 2023-11-13 15:41:36 +07:00
Faisal Amir
bad29b8a4a Added downloadedModels as dependecies useEffect 2023-11-13 15:41:36 +07:00
Faisal Amir
2dc0b0b3ea Fix conditional class 2023-11-13 15:41:36 +07:00
Faisal Amir
d6c463674d Resolve reduce a rendering performance 2023-11-13 15:41:36 +07:00
Faisal Amir
5a197f1e73 Enable download conversation after deleted model 2023-11-13 15:41:36 +07:00
Faisal Amir
21a616e838 Download modal should truncate model name 2023-11-12 22:21:39 +07:00
Faisal Amir
ef3d89f33e suppoer multiple line input using textarea instead 2023-11-12 22:20:58 +07:00
Louis
7d607654db fix: preformatted text indents the first line strangely 2023-11-10 16:53:41 +07:00
Faisal Amir
2aae3bbab2 Remoeve unused import 2023-11-09 23:07:01 +07:00
Faisal Amir
455d16b01b Cleanup unused import 2023-11-09 23:07:01 +07:00
Faisal Amir
0bba06a7e2 Cleanup modal wrapper 2023-11-09 23:07:01 +07:00
Faisal Amir
bac0597251 Remove unused typeeffect module 2023-11-09 23:07:01 +07:00
Faisal Amir
eccf674a48 Prepare streaming text by status message 2023-11-09 23:07:01 +07:00
Faisal Amir
b752595554 Add loader buble chat 2023-11-09 23:07:01 +07:00
Faisal Amir
ac1c7018d8 Update convo state when user change model 2023-11-09 12:39:27 +07:00
Faisal Amir
f5e39fe2d7 Fix showing name of active model when delete conversation 2023-11-08 20:03:43 +07:00
Faisal Amir
f4d390cb4f Improve state of welcome screen 2023-11-08 08:43:21 +07:00
Louis
7e7f5e0dc4
chore: fixed an issue where app does not yield message result (#561) 2023-11-07 22:23:43 +07:00
Faisal Amir
2394c13065
ui: standalone UIKit and refactor (#557)
* Eslint import order

* Initial Uikit

* Rename file with camelCase

* Remove unused code

* Remove unused code

* Set position traficlight mac

* Grouping Ribbon, Topbar and Bottombar as layout

* Added image brand

* Moving feature toggle into context folder

* Fix active state of setting menu

* Cleanup downloadModel atom helper

* Cleanup useGetConfigureModel

* Added wave animation

* Create useMainViewState intead of import helper atom

* Remove unused code

* Take a back switch ui

* Toggle using switch component

* Add dynamic primary color

* Cleanup import

* Added uikit scroll area

* Add best practice form

* Added toaster container

* Fix loader container

* Add hooks useDownloadState

* Added tooltip on ribbon menu

* Added case user multiple download model

* Adjust input style with bigger ring

* Restyle my model screen

* Replace useStartStop model with useActiveModel

* Import icon using Icon name

* Fix missing login loading start and stop model

* WIP integrate with cmdk

* Move layout search bar on middle of app

* Added function cancel download

* Cleanup model explore

* Cleanup unused code

* Move app version in bototmbar or footer

* WIP chat screen

* WIP chat screen

* Cleanup style and remove unsed code

* Added command for showing downloaded model

* Fix missing keyframe loader dot animation

* Conditional loader of plugin setting

* WIP history list message

* chore: rebase main

* Adding script ui into root package

* Fix different version react hooks form

* Add close toaster

* Added status model active or not on list of command

* Conditional showing info if user don't have a model

* Disabled toolbar chat when user not yet have convo

* chore: fix state

* fix: get resource atom

* Fix conditional bottom bar

* fix: model download state

* Fix font

* Improve icon my model

* Add toaster delete chat

* Remove test classname

* Fix scroll chat body

* Fix scrolling chat body

* chore: add message update

* Add uikit into depedencies on root package

* Update chat flow

* Fix hot reload ui changes

* Increate background color chat screen light mode

* Added visual conversation active state

* Added build:uikit on gh actions

* chore: attempt to fix CI

* fix: deps

* fix: tests

* chore: attempt to fix CI

---------

Co-authored-by: Louis <louis@jan.ai>
2023-11-07 21:27:11 +07:00
Louis
3e0a880efc chore: change core to local module 2023-11-06 13:46:01 +07:00
Louis
36c9807ae4 feat: JSON Conversational Plugin 2023-11-06 13:46:01 +07:00
James
9130018291 add conversational plugin
Signed-off-by: James <james@jan.ai>
2023-11-06 13:46:01 +07:00
Louis
96dba2690d feat: class-based plugin manager
chore: add facades

refactor: core module export

refactor: inference plugin - deprecate function registering (#537)

* refactor: revamp inference plugin as class - deprecate function registering

* refactor: monitoring plugin - deprecate service registering (#538)

refactor: revamp inference plugin as class - deprecate function registering

chore: update import

refactor: plugin revamp - model management

chore: update build steps and remove experimental plugins

refactor: remove pluggable electron

chore: add sorting for conversations

chore: build plugins for testing

chore: consistent plugin directory name

chore: docs

chore: fix CI

chore: update conversation prefix
2023-11-06 13:46:01 +07:00
Louis
d29d076a3e
fix: #396 - allow user to cancel a model download (#530)
* fix: #396 - allow user to cancel model download

* chore: fix typo
2023-11-02 19:58:56 +07:00
Louis
bbe1e618a3
fix: #479 - Toggle plugin is now experimental feature (#531) 2023-11-02 19:57:36 +07:00
Louis
0d13756a86
feat: Experimental Feature Toggle (#525)
* feat: Experimental Feature Toggle

* chore: add open app directory action

* chore: disable experimental feature test case
2023-11-01 23:42:47 +07:00
Faisal Amir
b3560f4d6d Make a conversation ui more consistant 2023-11-01 12:18:34 +07:00
Louis
37c36363d8
refactor: plugin manager and execution as ts (#504)
* refactor: plugin manager and execution as ts

* chore: refactoring
2023-11-01 09:48:28 +07:00
John
7a1f713229 Chore: refactor code, hide plugin menu in web 2023-10-31 15:38:21 +07:00
John
c3cc63499c #255: load plugins from CDN 2023-10-30 23:26:27 +07:00
John
6be67895dd 255: Cloud native 2023-10-30 23:20:10 +07:00
Faisal Amir
8b10aa2c78
Merge pull request #500 from janhq/bug/status-bar-app-download
bug: download new version should show in status bar
2023-10-30 23:17:49 +07:00
Faisal Amir
ff68f03036 Download new version should show in status bar 2023-10-30 23:15:18 +07:00
Faisal Amir
28c969759f Move new conversation sticky to top 2023-10-30 22:41:42 +07:00
Faisal Amir
b7e45dabad Add button new conversation in history list 2023-10-30 22:22:27 +07:00
Louis
80c4f53927
chore: enable back bot function for edge-release (#474) 2023-10-30 15:11:20 +07:00