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

Update the UI #4

Open
14 of 22 tasks
jared-yu-hcltech opened this issue Sep 5, 2024 · 5 comments
Open
14 of 22 tasks

Update the UI #4

jared-yu-hcltech opened this issue Sep 5, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@jared-yu-hcltech
Copy link
Owner

jared-yu-hcltech commented Sep 5, 2024

To do:

  • Create an icon to the top-left of the chatbot's chat box that shows the model company (e.g., Open AI, Google), along with some text indicating the model
  • Make it so the recent chats is separated into Today, Past week, and older, where it needs to be unrolled for older chats
  • Add a copy button so that it is visible at the top-right hand corner of the code (syntax highlight) regardless of whether the entire code is in view
  • Add a light/dark mode
  • After creating a new chat, show a logo (e.g., OpenAI, Llama, Gemini, etc.) of the current model and also include its name
  • Add a dropdown menu to select the Gen AI backend (e.g., RAG etc.)
  • After creating a new chat, show the Gen AI backend (e.g., RAG, fine tuning, etc.) of the current chat
  • Switch to Tailwind?
  • Re-open User chat bubble renders markdown poorly #22, and make the user chat bubbles into Markdown without causing the infinite width problem (Completed with Problem with SyntaxHighlighter for long text extending infinitely to the right #29)
  • Change the scroll so that if the user scrolls then it stops the auto scrolling for the remainder of the message (Completed with Edit auto scrolling behavior so it can be stopped #18)
  • Add a button at the bottom to jump to the end of the messages (Completed with Add button to allow users to jump to bottom of chat #26)
  • Add a dropdown menu to select the LLM model (Completed with Allow users to swap between available AI models #12)
  • Align the text for the DashboardPage.jsx so that it's centered with the chat box (fixed by removing the "Custom" from text: a072fae)
  • Make the copy button highlight upon being clicked for the code syntax (added with: 456737e)
  • Give the streaming text from the chatbot syntax highlighting also for code (completed with 741163a)
  • Edit the chat box so that after submitting a prompt the cursor stays in the chat box, this broke after going from input to textarea (fixed with 36046a8)
  • Make the chat bubbles behave more as expected after making the chat wider (fixed with 8153c08)
  • Make the content area wider (added with bba2d9d, but still needs work)
  • Add an initial dropdown menu (added with 1bb9fbe), functionality in addition to copy will be worked on later
  • Add disclaimer (completed in Add disclaimer #16)
  • Edit the overflow-y: scroll in the ChatPage to not shift the entire screen to the left after becoming visible like in the original ChatGPT UI (fixed with: bc7fb3d)
  • Edit the chat boxes so they look the same from the DashboardPage to the ChatPage (fixed with: 4bade4a)
@jared-yu-hcltech jared-yu-hcltech added the enhancement New feature or request label Sep 5, 2024
@jared-yu-hcltech jared-yu-hcltech self-assigned this Sep 5, 2024
@jared-yu-hcltech
Copy link
Owner Author

It could be good to test out replacing the LAMA AI gifs/images/styles with something more similar to HCL. That way we can track the assets and which CSS styles to edit to change the look of the app.

@jared-yu-hcltech
Copy link
Owner Author

Can use this tutorial for this purpose: https://www.youtube.com/watch?v=qwM23_kF4v4&t=190s

jared-yu-hcltech added a commit that referenced this issue Sep 6, 2024
Added HCLTech icon at the top of the browser, changed the title of the tab to Custom Gen AI Chatbot #4
jared-yu-hcltech added a commit that referenced this issue Sep 6, 2024
….jsx

Could potentially use some other icon if better one is found, looks like the same icon in the tab #4
jared-yu-hcltech added a commit that referenced this issue Sep 6, 2024
Make the right background image more opaque, move text to next line #4
jared-yu-hcltech added a commit that referenced this issue Sep 6, 2024
Edit text/images to make them look more like our own #4
jared-yu-hcltech added a commit that referenced this issue Sep 6, 2024
Change some text/icons/styles, add disclaimer #4
jared-yu-hcltech added a commit that referenced this issue Sep 6, 2024
Adjust overflow to overflow-y in the CSS for both the ChatList and ChatPage #4
jared-yu-hcltech added a commit that referenced this issue Sep 6, 2024
Adjust the width of the left menu #4
jared-yu-hcltech added a commit that referenced this issue Sep 6, 2024
Need to fix later, create issue for this #4
jared-yu-hcltech added a commit that referenced this issue Sep 6, 2024
Edit to match the new chat "Please enter your prompt" #4
jared-yu-hcltech added a commit that referenced this issue Sep 6, 2024
Fix it back to its original state #4
@jared-yu-hcltech
Copy link
Owner Author

jared-yu-hcltech commented Sep 6, 2024

Moved to top post

jared-yu-hcltech added a commit that referenced this issue Sep 9, 2024
Made the chat box in DashboardPage align with what is seen in ChatPage. Previously, they were not matching and it looked odd going from one to the other. #4
jared-yu-hcltech added a commit that referenced this issue Sep 9, 2024
The scrollbar-gutter trick works in shifting the contents, but the chat box in DashboardPage is shortened from the right which looks bad. #4
@jared-yu-hcltech
Copy link
Owner Author

jared-yu-hcltech commented Sep 9, 2024

Tried a trick from https://www.youtube.com/shorts/mg49F9qUs38, but it doesn't fix the scrollbar shifting issue completely.

  overflow: auto;
  scrollbar-gutter: stable;

This helps to move content to the left by default, but for some reason the chat box is also squished from the right in the DashboardPage.

Edit: Was able to combine this with position: sticky and width: 100% to get it to work in a17b2f9.

Edit 2: Not complete fixed yet.

Edit 3: Used the following to fix the width issue combined with position: fixed

width: calc(100% - 0.65 * (100vw - 50px));

seen in bc7fb3d

jared-yu-hcltech added a commit that referenced this issue Sep 9, 2024
Used the scrollbar-gutter fix in dashboardPage.css, combined with changing position to sticky and width to 100% in .newForm and form respectively. #4
jared-yu-hcltech added a commit that referenced this issue Sep 9, 2024
jared-yu-hcltech added a commit that referenced this issue Sep 9, 2024
Made additional changes to ensure that the position of the chat box remains correct also #4
jared-yu-hcltech added a commit that referenced this issue Sep 9, 2024
Matches the style of ChatGPT, avoids showing text behind the chat box which is not meaningful #4
jared-yu-hcltech added a commit that referenced this issue Sep 10, 2024
Make the background color match the surrounding color (not exactly black), raise the chat box higher #4
jared-yu-hcltech referenced this issue Sep 11, 2024
Completes #11 and gives a UI for #12 and #19. a MessageMenu is added which shows the 3 buttons for the latest message, and just the copy button for historical messages.
jared-yu-hcltech added a commit that referenced this issue Sep 12, 2024
The chat now properly highlights code with the correct syntax and provides a copy button #4
jared-yu-hcltech added a commit that referenced this issue Sep 12, 2024
This increases the width, but the behavior of the text bubbles has gotten a bit messy. That needs to be cleaned up. #4
jared-yu-hcltech added a commit that referenced this issue Sep 13, 2024
Still not perfect solution, moved around the padding-bottom: 100px in the different CSS files, but when the bot is populating the next bubbles it still squeezes to the right. #4
jared-yu-hcltech added a commit that referenced this issue Sep 13, 2024
Still not able to get the bubbles to render correctly. Seems like they are having issues while streaming and not rendering right. #4
jared-yu-hcltech added a commit that referenced this issue Sep 13, 2024
Fix the bubbles so they behave correctly when sending new messages.

Centered newPromptContainer: By applying justify-content: center and align-items: center, it ensures that the entire container is centered, while the chat messages maintain their alignment (user on the right, bot on the left).
Flexible width: Let the message bubbles take up their natural width without forcing the container to shift, while keeping them inside the main chat window. #4
jared-yu-hcltech added a commit that referenced this issue Sep 13, 2024
This makes it so that the cursor returns to the chatbox after submitting a prompt #4
jared-yu-hcltech added a commit that referenced this issue Sep 13, 2024
Remove old commented out code #4
jared-yu-hcltech added a commit that referenced this issue Sep 13, 2024
The streaming text now also gets the syntax highlighting with ReactMarkdown #4
@jared-yu-hcltech
Copy link
Owner Author

jared-yu-hcltech added a commit that referenced this issue Sep 13, 2024
Remove alert that tells user the message has been copied #4
jared-yu-hcltech added a commit that referenced this issue Sep 13, 2024
Working on trying to get the time on the chat history #4
jared-yu-hcltech added a commit that referenced this issue Sep 13, 2024
Added highlight when clicking copy for the syntax code #4
jared-yu-hcltech added a commit that referenced this issue Sep 14, 2024
Edit the UI so that it just says Gen AI Chatbot rather than Custom Gen AI Chatbot #4
jared-yu-hcltech added a commit that referenced this issue Sep 14, 2024
Using a temporary fix, not ideal solution. Prevent the user chat bubbles from being rendered in Markdown for now. Ideally, we want to use perhaps some special CSS to make sure that the user chat bubbles don't extend too far to the right .#4 #22
jared-yu-hcltech added a commit that referenced this issue Sep 16, 2024
Add else condition to if-else statements in NewPrompt.jsx. Also added the model's company in the MessageMenu.jsx. #2 #4 #12
jared-yu-hcltech added a commit that referenced this issue Sep 17, 2024
Add a /context/ModelContext.jsx. This handles the global currentModel. #2 #4 #12 #23
jared-yu-hcltech added a commit that referenced this issue Sep 17, 2024
Reapply c4b89cd, making sure that the change model button in the navbar only appears in /dashboard/ pages. #2 #4 #12 #23
jared-yu-hcltech added a commit that referenced this issue Sep 24, 2024
Update the backend/index.js to allow deleting chats. Add package for react-icon. Edit the ChatList.jsx to add the functionality to the menu and chatList.css for style. #4
 #6
jared-yu-hcltech added a commit that referenced this issue Sep 24, 2024
Invert the colors, make the dropdown menu rounded #4 #6
jared-yu-hcltech added a commit that referenced this issue Sep 24, 2024
Note: If we add other options like archive/rename/etc. we will need something else. #4 #6
jared-yu-hcltech added a commit that referenced this issue Sep 26, 2024
jared-yu-hcltech added a commit that referenced this issue Oct 4, 2024
Update the linear gradient for dashboardPage.css and homepage.css to utilize HCLTech's purple-blue colors for the linear gradient #4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant