Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
6c8a057
merge master
nitzanto Aug 15, 2024
919d269
update package json
nitzanto Aug 15, 2024
599e6fd
feature: new guide page & chat page
nitzanto Aug 15, 2024
22242fe
feat: add new buttons for chat
nitzanto Aug 15, 2024
3383f43
chore: add page container to components folder
nitzanto Aug 16, 2024
9c76d8e
chore: make the cards fit the whole screen
nitzanto Aug 16, 2024
ca53714
fix: layout padding
nitzanto Aug 16, 2024
f32cce3
fix chat layout
nitzanto Aug 16, 2024
561624a
fix margin & padding with contacts list
nitzanto Aug 16, 2024
af0cb77
fix chat layout
nitzanto Aug 16, 2024
99bce14
refactor: chat folder structure
nitzanto Aug 16, 2024
3449eaa
refactor: add custom hooks for chat
nitzanto Aug 16, 2024
e6e9d76
add type to hook
nitzanto Aug 16, 2024
5921b3b
refactor guide file structure
nitzanto Aug 16, 2024
0eab58e
Merge pull request #16 from SupportAI-Project/FP-62-New-Dashboard
nitzanto Aug 17, 2024
716cd05
feat: guides, create, edit
nitzanto Aug 17, 2024
9ee0ad9
refactor: add ChatClient and related hooks for chat functionality
roiy0987 Aug 18, 2024
563e07c
feat: add messages to Chat interface
roiy0987 Aug 18, 2024
6f53b11
feat: add socket hook for real-time chat functionality
roiy0987 Aug 18, 2024
4c358fe
refactor: update useChat and useContacts hooks for new dashboard
roiy0987 Aug 18, 2024
c7a872b
refactor: update MessageInput component with note and reply functiona…
roiy0987 Aug 18, 2024
32a0a22
refactor: update ContactList component to use chats instead of contacts
roiy0987 Aug 18, 2024
ca772f3
refactor: update MessageList component to improve message display
roiy0987 Aug 18, 2024
4edbd0c
refactor: Update Chat page components and hooks for new dashboard layout
roiy0987 Aug 18, 2024
85d2513
refactor: Update socket URL handling to use environment variable
roiy0987 Aug 18, 2024
21df62c
chore: update npm dependencies
JosephOri Aug 19, 2024
7e9026f
refactor: add GuideClient and types for guides and reviews
JosephOri Aug 19, 2024
117fe2d
added query to render the guides list in the frontend
JosephOri Aug 19, 2024
82c129b
a cleaner way to display guides
JosephOri Aug 19, 2024
8960d6c
removed import
JosephOri Aug 19, 2024
dbe2e08
a better practice of react query
JosephOri Aug 19, 2024
279b60c
added guide page
JosephOri Aug 20, 2024
a6e1afc
removed loader from redundant place
JosephOri Aug 20, 2024
13fee5d
added a link to the guide page from the card
JosephOri Aug 20, 2024
41fdf63
refactor: Remove redundant h1 element from GuidePage component
JosephOri Aug 20, 2024
72a82ba
refactor: Update Chat page components and hooks for new dashboard layout
roiy0987 Aug 20, 2024
b6630e4
refactor: Update ContactList component to use contacts instead of chats
roiy0987 Aug 20, 2024
67caa9b
refactor: Update MessageInput component to use custom hook for sendin…
roiy0987 Aug 20, 2024
167c162
refactor: Update MessageList component to include real-time message u…
roiy0987 Aug 20, 2024
e23a72e
refactor: Remove unused useChat hook
roiy0987 Aug 20, 2024
df8d02c
refactor: Add useSelectedContact hook for managing selected contact i…
roiy0987 Aug 20, 2024
de81555
refactor: Update theme file to include note color in the palette
roiy0987 Aug 20, 2024
012a4f6
Client Response type refactor
roiy0987 Aug 20, 2024
6c21705
refactor: Update useChats and useChatById hooks to use new ChatRespon…
roiy0987 Aug 20, 2024
2eb51ba
refactor: Import ClientResponse and ErrorResponse types in base.clien…
roiy0987 Aug 20, 2024
be86ee6
refactor: Import ClientResponse and ErrorResponse types in base.clien…
roiy0987 Aug 20, 2024
7c9811d
refactor: Update layout component to include SocketProvider in new da…
roiy0987 Aug 20, 2024
a341cff
refactor: Update ChatHeader component to display the username of the …
roiy0987 Aug 20, 2024
4c1f4dd
refactor: Update ContactList component to remove unnecessary code and…
roiy0987 Aug 20, 2024
2530f85
refactor: Update useMessageList hook to include real-time message upd…
roiy0987 Aug 20, 2024
5011cd9
refactor: Update imports for Socket usage in MessageInput and Page co…
roiy0987 Aug 20, 2024
623051c
refactor: Update useMessage.ts to use separate schema file for messag…
roiy0987 Aug 20, 2024
2b12706
refactor: Update hooks imports in new_dashboard/page.tsx
roiy0987 Aug 20, 2024
c335a4f
refactor: Update ChatHeader and ContactList components to use Contact…
roiy0987 Aug 20, 2024
e0cdb04
refactor: Update Sidebar component to use next/image for logo display
roiy0987 Aug 20, 2024
c090627
added useGuide hook that retrives a simgle guide from the backend , a…
JosephOri Aug 20, 2024
b8d8072
added avrage rating in the right place
JosephOri Aug 20, 2024
010e143
added loagind spinners and an error message
JosephOri Aug 20, 2024
12f3638
added reviews list to the guide page
JosephOri Aug 20, 2024
f79d9f8
designed the application
JosephOri Aug 20, 2024
3218e1b
linted reviewlist
JosephOri Aug 21, 2024
e96adb4
feat: Add AddReviewBox component to allow users to submit reviews, al…
JosephOri Aug 21, 2024
450aa1c
added proper error message
JosephOri Aug 21, 2024
091c6be
removed dummy data
JosephOri Aug 21, 2024
dcc9214
added proper error message
JosephOri Aug 21, 2024
b48bbde
extracted buisness logic from the AddReview box component
JosephOri Aug 21, 2024
4bf7955
refactor: Improve performance of ContactList component
roiy0987 Aug 21, 2024
b396c68
refactor: Update MessageList component to use selectedContact's chatId
roiy0987 Aug 21, 2024
8615022
refactor: Update SupportMessageList component to use selectedContact'…
roiy0987 Aug 21, 2024
4f0ffdc
refactor: Remove unused import in new_dashboard/page.tsx
roiy0987 Aug 21, 2024
9aabbb8
refactor: Update common components and hooks for chat functionality
roiy0987 Aug 21, 2024
65f3581
refactor: Remove unused socket hook and related files
roiy0987 Aug 21, 2024
93e357c
refactor: Update UserMessageList component to display user messages i…
roiy0987 Aug 21, 2024
0e10934
refactor: Rename SupportMessageList to UserMessageList and update its…
roiy0987 Aug 21, 2024
e484ac0
refactor: Update useChatByUserId hook to fetch chats by user ID and s…
roiy0987 Aug 21, 2024
e0412f0
refactor: Remove unused key prop in Message component
roiy0987 Aug 21, 2024
871900e
refactor: Update UserMessageList component to display user messages i…
roiy0987 Aug 21, 2024
b8e1e20
changed rewiewId to id
JosephOri Aug 21, 2024
fead939
changed guideId to id
JosephOri Aug 21, 2024
afaa8da
changed userId to id
JosephOri Aug 21, 2024
98ff8e6
Merge pull request #17 from SupportAI-Project/FP-59-Connect-Chat
nitzanto Aug 21, 2024
4344c14
changed starts to rating
JosephOri Aug 21, 2024
e19385a
changed to id
JosephOri Aug 21, 2024
6080ed7
updated the frontend to use the review from guide service
JosephOri Aug 22, 2024
1bb1d9b
Merge pull request #20 from SupportAI-Project/add-reviews-FE-FP66
JosephOri Aug 22, 2024
8fa31ab
fixed problems that came with changing the id name
JosephOri Aug 23, 2024
86955fe
fix
JosephOri Aug 23, 2024
bd72818
Merge pull request #22 from SupportAI-Project/fix-conflicts-of-id
roiy0987 Aug 23, 2024
0ec92cf
default baseUrl value and added client for model-ai
roiy0987 Aug 24, 2024
c0e98d3
chore: Seperate Guide and Review clients
roiy0987 Aug 24, 2024
957420e
chore: create review and guide request
roiy0987 Aug 24, 2024
6e2ff54
refactor: Remove unused guideClientHooks file
roiy0987 Aug 24, 2024
c5ce75f
feat: Add User and UserRole interfaces
roiy0987 Aug 24, 2024
70b1c9a
feat: Add reviewHooks for managing reviews and queries
roiy0987 Aug 24, 2024
177629d
chore: Add chatHooks and guideHooks for managing chat and guide queries
roiy0987 Aug 24, 2024
3a45f8c
feat: Add GuideProvider for managing guide context
roiy0987 Aug 24, 2024
566c67d
refactor: Update useLoginForm to use UserRole instead of User in resp…
roiy0987 Aug 24, 2024
9e1708a
Remove unused guide.type from types/index.ts
roiy0987 Aug 24, 2024
187b371
refactor: Update GuideProvider to use Guide object instead of string
roiy0987 Aug 24, 2024
f285ea0
refactor: Update useChat to use socket.io-client for chat functionality
roiy0987 Aug 24, 2024
5435313
refactor: Update hooks imports in guides/hooks/index.ts
roiy0987 Aug 24, 2024
52aa372
refactor: Update useAddReviewForm import
roiy0987 Aug 24, 2024
d9ac12a
refactor: Update GuideEditor component to use react-hook-form for for…
roiy0987 Aug 24, 2024
f5d8750
feat: Add ModelCreateGuideRequest and ModelCreateGuideResponse types
roiy0987 Aug 24, 2024
f6ca7ba
refactor: Add useGuide hook for generating guides
roiy0987 Aug 24, 2024
9856abf
improved styling of the application
JosephOri Aug 24, 2024
1d2c25e
put add review box into a different component
JosephOri Aug 24, 2024
65128b3
added num of reviews
JosephOri Aug 25, 2024
b25cd0a
linted component
JosephOri Aug 25, 2024
f1a96a8
changed the color of the stars and aligned the ui
JosephOri Aug 25, 2024
fbb1488
changed to previous colors
JosephOri Aug 25, 2024
311ccb7
added a show more button reviews list
JosephOri Aug 25, 2024
b40d94b
added a show more button for the reviews list
JosephOri Aug 25, 2024
4f7371b
sont need it anymore
JosephOri Aug 25, 2024
6818974
removed redundant imports
JosephOri Aug 25, 2024
f568f8d
linted page
JosephOri Aug 25, 2024
07b64f9
showing show more button only if there are items to show
JosephOri Aug 25, 2024
9ca2f10
fixed the thing with the html tag
JosephOri Aug 25, 2024
cbddf9a
added globas css for quill content that look like the global styles o…
JosephOri Aug 25, 2024
7ddf448
resolved changes
JosephOri Aug 26, 2024
1749d72
added color to theme and put color from theme
JosephOri Aug 26, 2024
f808130
Merge pull request #24 from SupportAI-Project/improve-ui
nitzanto Aug 26, 2024
36f1c67
added a librery
JosephOri Aug 26, 2024
fea3b1a
refactor: Update imports for User and Message types in codebase
roiy0987 Aug 26, 2024
bceed97
changed name to guide page and styled the chat
JosephOri Aug 26, 2024
3c4472d
refactor: Update imports for User and Message types, and fix typograp…
roiy0987 Aug 26, 2024
43f7c60
refactor: Update imports for User and Message types, and fix routing …
roiy0987 Aug 26, 2024
c449105
created a static chat popup and adjusted the css in message input to …
JosephOri Aug 26, 2024
80f543c
extracted providers into different files
JosephOri Aug 26, 2024
5cd5dbb
changed name to query provider
JosephOri Aug 26, 2024
af029d9
made the contacts as a global context
JosephOri Aug 26, 2024
e65297a
added space
JosephOri Aug 26, 2024
5f9c4cc
created the chat popup
JosephOri Aug 26, 2024
92772d8
refactor: Update useContacts hook to handle selectedContact state and…
roiy0987 Aug 26, 2024
f36bd08
refactor: Update HTTP method in BaseClient to use PATCH instead of PUT
roiy0987 Aug 26, 2024
778a59d
refactor: Add ChatRequestUpdate type for partial updates to ChatRequest
roiy0987 Aug 26, 2024
b4fc667
refactor: Update useGuide hook to handle closing chat and generating …
roiy0987 Aug 26, 2024
f74ebda
fixed bug in displaying the chat popup
JosephOri Aug 27, 2024
3ec4871
removed x
JosephOri Aug 27, 2024
5241aeb
Merge pull request #23 from SupportAI-Project/FP-61-Guide-to-editor
roiy0987 Aug 27, 2024
d4e5ab8
merged changes from master
JosephOri Aug 27, 2024
03c20aa
resolved some of the changes about naming
JosephOri Aug 27, 2024
4ad11af
resolved error
JosephOri Aug 27, 2024
9595059
importing the chat globally in all of the app
JosephOri Aug 27, 2024
80ca7bf
added patch to base client
JosephOri Aug 27, 2024
e00f0fd
chore: Add IssueClient and related types for issue API integration
JosephOri Aug 27, 2024
ab32cb3
add issue to searchbar
JosephOri Aug 27, 2024
c406f81
resolved conflicts
JosephOri Aug 27, 2024
bc6ee0b
changed file name
JosephOri Aug 27, 2024
8649b58
Merge pull request #26 from SupportAI-Project/chat-popup-window-FE-FP82
nitzanto Aug 27, 2024
6366bc2
merged from master
JosephOri Aug 27, 2024
8f2ffe8
changed name of bar
JosephOri Aug 27, 2024
8e45bfe
sorted categories
JosephOri Aug 27, 2024
5d2ef63
added tags instead of issue as an array
JosephOri Aug 27, 2024
d1c3456
updated ui
JosephOri Aug 27, 2024
5382af0
put issue into an array
JosephOri Aug 27, 2024
c18e4f0
changed to capital I
JosephOri Aug 28, 2024
dd4ae80
changed name of tags to categories
JosephOri Aug 28, 2024
34ffc29
displaying categories in guide card
JosephOri Aug 28, 2024
051186b
extracted editor format and modules to themes
JosephOri Aug 28, 2024
53ccbc1
Revert "displaying categories in guide card"
JosephOri Aug 28, 2024
a6d0fd9
Revert "extracted editor format and modules to themes"
JosephOri Aug 28, 2024
f249160
changed schema to fit new guide type
JosephOri Aug 28, 2024
fe5a6ef
feat: Add useCategories hook for fetching and returning categories
JosephOri Aug 28, 2024
27aab4b
feat: Add useGuideItems hook for fetching and returning guide items
JosephOri Aug 28, 2024
2cdb855
refactor: Update GuideCard component to display categories as chips
JosephOri Aug 28, 2024
8f0a2cb
now the popup is in the background
JosephOri Aug 28, 2024
89d6e8c
chore: Remove commented out code and unnecessary comments in ChatPopu…
JosephOri Aug 28, 2024
6ebf132
edded categories to guide editor
JosephOri Aug 28, 2024
e16bf75
feat: Add selectedCategories and handleCategoryChange to GuideEditor
JosephOri Aug 28, 2024
a4b7b3c
improve ui
JosephOri Aug 28, 2024
33fdcc9
refactor: Update useGuide hook to handle closing chat and generating …
roiy0987 Aug 28, 2024
ce036a6
refactor: Update useGuide hook to handle closing chat and generating …
roiy0987 Aug 28, 2024
fa1fc43
fix
JosephOri Aug 28, 2024
53e1d24
lint
JosephOri Aug 28, 2024
67b9573
Merge pull request #27 from SupportAI-Project/add-issue-frontend
JosephOri Aug 28, 2024
17ab60d
added title to input when adding review
JosephOri Aug 28, 2024
1334df0
refactor: Improve rendering efficiency in UserMessageList component
roiy0987 Aug 28, 2024
5c6464c
refactor: Update import path for groupByDay in useMessageList.ts
roiy0987 Aug 29, 2024
f77e150
refactor: Update import paths and types in chat-related files
roiy0987 Aug 29, 2024
6738cbb
added title to review and styled the application
JosephOri Aug 29, 2024
6d9fb12
removed double card styling
JosephOri Aug 29, 2024
b2530b4
improved styling
JosephOri Aug 29, 2024
04e052c
improved styling
JosephOri Aug 29, 2024
fe8a49d
Merge pull request #30 from SupportAI-Project/add-review-to-fe
JosephOri Aug 29, 2024
088cf42
removed x from popup and added minus to minimize the chat
JosephOri Aug 29, 2024
53e9e17
merge conflicts....
roiy0987 Aug 29, 2024
59c6a36
made one note buton with contained and non contained
JosephOri Aug 29, 2024
a669eef
refactor: extracted mui components overide to a new file
JosephOri Aug 29, 2024
e705004
extracted theme files to a new folder
JosephOri Aug 29, 2024
dba7f97
extracted typography to a separate file
JosephOri Aug 29, 2024
1393f0b
changed primery blue color and border radius
JosephOri Aug 29, 2024
3dcc8ad
styled the guide display page
JosephOri Aug 29, 2024
9f973bc
added colors and styled app
JosephOri Aug 29, 2024
ec2bca0
refactor: Optimize rendering efficiency in SupportMessageList component
roiy0987 Aug 29, 2024
7fc199f
improved styling
JosephOri Aug 29, 2024
2feeeed
styled the app
JosephOri Aug 30, 2024
24babaf
styled message input
JosephOri Aug 30, 2024
98d9cea
styled the guide card
JosephOri Aug 30, 2024
6179555
added global text color styling
JosephOri Aug 30, 2024
4e0d9d8
added global styling
JosephOri Aug 30, 2024
57f7dfc
removed redundant lines
JosephOri Aug 30, 2024
875e311
aligned conracts sidebar to the right
JosephOri Aug 30, 2024
22c90d3
made a contact side bar that is in the whole dashboard exacpt the cha…
JosephOri Aug 30, 2024
a42d293
sidebar styling
JosephOri Aug 30, 2024
647c59e
returned to previous colors
JosephOri Aug 30, 2024
daa4ed4
Feat: Refactor useSearchGuides hook to include sorting functionality
TomerMiz10 Aug 31, 2024
f992352
Feat: Refactor useSearchGuides hook to include sorting functionality
TomerMiz10 Aug 31, 2024
9a013ea
feat: Add sorting functionality to SearchBar component
TomerMiz10 Aug 31, 2024
ce01ac7
feat: Add SortCriteria Type and SortOptions Array to Guide types
TomerMiz10 Aug 31, 2024
0af794d
feat: Add sortGuides.ts file for sorting functionality
TomerMiz10 Aug 31, 2024
81a3fc2
feat: Refactor useSearchGuides hook to include sorting functionality
TomerMiz10 Aug 31, 2024
86bffa1
Refactor: Use sorting functionality and array of sorting options to s…
TomerMiz10 Aug 31, 2024
909e55f
feat: Add calculateAvgRating utility function
TomerMiz10 Aug 31, 2024
aca848f
Refactor `sortGuides.ts` to use calculateAvgRating utility function
TomerMiz10 Aug 31, 2024
59a023c
Refactor useSearchGuides hook to include sorting functionality
TomerMiz10 Aug 31, 2024
1ab1978
Merge pull request #31 from SupportAI-Project/FP-88-sort-guides
JosephOri Aug 31, 2024
3f4b2d2
Merge branch 'master' of https://github.com/SupportAI-Project/Support…
JosephOri Aug 31, 2024
01bc05a
Refactor ChatPopup component to use isOpen prop and setIsOpen callback
JosephOri Aug 31, 2024
f851663
added animations
JosephOri Aug 31, 2024
c8d70df
Refactor ChatHeader component to include loading state and handleClic…
JosephOri Aug 31, 2024
41850a6
refactor: Update import paths and types in chat-related files
roiy0987 Aug 31, 2024
5a92954
Merge branch 'master' into FP-80-Close-Chat
roiy0987 Aug 31, 2024
2565225
Merge pull request #29 from SupportAI-Project/FP-80-Close-Chat
nitzanto Aug 31, 2024
b3362b6
merged changes from master
JosephOri Aug 31, 2024
4003a52
resolved changes from master
JosephOri Aug 31, 2024
130584d
fixed sory input
JosephOri Sep 1, 2024
2d9102a
fixed review box style
JosephOri Sep 1, 2024
ec655d1
fixed review card styling
JosephOri Sep 1, 2024
266e39a
now showing popup on create guide page
JosephOri Sep 1, 2024
6210de9
extracted wrappers
JosephOri Sep 1, 2024
50a87ae
fixed generate guide button
JosephOri Sep 1, 2024
e185874
put contacts list on the left side when on dashboard page
JosephOri Sep 1, 2024
c846ea7
Merge pull request #32 from SupportAI-Project/improve-app-ui-FP87
TomerMiz10 Sep 1, 2024
54f009a
fix height
nitzanto Sep 1, 2024
fe5b0f2
add sidebar item
nitzanto Sep 1, 2024
d87a98d
fixed note button
JosephOri Sep 2, 2024
6cb7765
fixed guide card
JosephOri Sep 2, 2024
039983e
put chat on the right side of the screen
JosephOri Sep 2, 2024
35b0204
name is on the rigth and minimize is on the left
JosephOri Sep 2, 2024
afe39f2
changed avatar to an empty user image
JosephOri Sep 2, 2024
a21de9d
adjusted height
JosephOri Sep 2, 2024
166d1be
fix: remove unused user roles in ModelCreateGuideRequest
roiy0987 Sep 2, 2024
1e4d2e0
Merge pull request #33 from SupportAI-Project/delete-edit-buttons
TomerMiz10 Sep 2, 2024
7645dce
Merge branch 'master' of https://github.com/SupportAI-Project/Support…
JosephOri Sep 2, 2024
d935563
Merge pull request #34 from SupportAI-Project/fix-ui-last-call
TomerMiz10 Sep 2, 2024
581b62c
fixed save guide button
JosephOri Sep 2, 2024
9eaff82
Merge pull request #35 from SupportAI-Project/fix-ui-last-call
JosephOri Sep 2, 2024
3e87240
feat: reverse order of contacts in ContactList component
TomerMiz10 Sep 2, 2024
9085463
Merge pull request #36 from SupportAI-Project/reverse-contacts-list
JosephOri Sep 2, 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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ next-env.d.ts

# .env
.env

.github/*
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY src ./src
COPY public ./public
COPY package.json next.config.js jsconfig.json ./
COPY package.json next.config.mjs tsconfig.json ./
RUN npm run build

# Stage 3: run
Expand Down
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
env: {
BACKEND_URL: process.env.BACKEND_URL,
NEXT_PUBLIC_SERVER_URL: process.env.BACKEND_URL,
},
};

Expand Down
Loading