Skip to content

Commit

Permalink
impr: close thread and input when closed the pop up (#53)
Browse files Browse the repository at this point in the history
* fix: close thread and input when closed the pop up

* fix: rm opening popup when clicked on thread

* fix: chat-panel update

* feat: create a new bot and category - custom bot (#48)

* chore: add the new column is_public to thread table

* fix: make extra parameters of chatbot nullable

* feat: add a new category

* feat: add the parameter to check if is public or not

* chore|: update genql

* fix: keep blankBot new threads private

* feat(hasura): create a new relationship - prompt_user (#50)

Co-authored-by: Roberto Lucas <[email protected]>

* [masterbots.ai] feat: disclaimer texts (#51)

* impr(webapp):add footer disclaimer

* impr(webapp):add search box disclaimer

* impr(webapp):add dark color footer disclaimer

* impr(webapp):padding fix

* fix(masterbots.ai): fetch messages when opening thread regardless of previous thread (#55)

* fix(masterbots.ai): user threads routing (#56)

* fix: user threads routing

* fix: user threads routing

* feat: add username slug to user table

* feat: use user slug

* chore: upt genql

* fix: feedbacks

* fix: feedbacks

* impr(masterbots.ai): category and bot routing (#58)

* fix: category and bot routing

* fix:  rm bot avatars or user avatars on browse detail pages

* fix: category status updating issue when refreshing the page

* [coderabitai] impr(masterbots.ai): upt apps/masterbots.ai/components/browse-category-tabs.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Roberto Lucas <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* hotfix(masterbots.ai): break the loop if the user is already registered (#59)

* fix: break the loop when the user already registered

* fix(mastertbots.ai): session nullable chk

* fix: graphql query

---------

Co-authored-by: Roberto Romero Lucas <[email protected]>

* impr(mastertbots.ai): ui hotfixes v1 (#57)

* wip(mastertbots.ai): footer credits impr

* wip(masterbots.ai): ui impr

* impr(masterbots.ai): responsiveness

* fix(masterbots.ai): credits on chat scrolling

* [coderabbitai] impr: upt apps/masterbots.ai/components/footer-ct.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(masterbots.ai): credits styles

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(masterbots.ai): thread pop-up ui position

* fix(masterbots.ai): credits on chat view, mobile

* fix(masterbots.ai): thread pop-up device height

* fix: prod env value

* fix(masterbots.ai): is_public set (#61)

* chore: update bunlock

* devops: force deploy

* chore: terms route + basic metadata config (#187)

* devops: force deploy

* devops: trigger automated build

* devops: trigger automated build

* devops: trigger automated build

* devops: trigger automated build

* devops: trigger automated build

* devops: trigger automated build

* devops: trigger automated build

* impr(masterbots.ai): terms route + metadata impr (#158)

---------

Co-authored-by: Gabo Esquivel <[email protected]>

* feat(masterbots.ai): create social network navigation alike on browse threads on develop (#172)

* devops: force deploy

* devops: trigger automated build

* devops: trigger automated build

* devops: trigger automated build

* devops: trigger automated build

* devops: trigger automated build

* devops: trigger automated build

* devops: trigger automated build

* impr(masterbots.ai): terms route + metadata impr (#158)

* feat: update url when opening the thread on browse view

* fix: rm shallow (this is not supported with app router)

* fix: make browse view to the default page

* chore: use toSlug from lib

---------

Co-authored-by: Gabo Esquivel <[email protected]>
Co-authored-by: Roberto Lucas <[email protected]>

* impr(masterbots.ai): rm CategoryMainTabs usage (#194)

* [masterbots.ai]:impr:remove tabs

* [masterbots.ai]:impr:remove modalCommingSoon

* [masterbots.ai]:impr:add notes

---------

Co-authored-by: Nathanael Liu <[email protected]>
Co-authored-by: Roberto Lucas <[email protected]>
Co-authored-by: Brandon Fernández <[email protected]>
Co-authored-by: Roberto Lucas <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Gabo Esquivel <[email protected]>
  • Loading branch information
7 people authored Apr 23, 2024
1 parent 37770ab commit d874cb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/masterbots.ai/components/thread-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function ThreadComponent({
}) {
const threadRef = React.useRef<HTMLLIElement>(null)
// const router = useRouter()
const { allMessages, sendMessageFromResponse, isOpenPopup, activeThread } =
const { allMessages, sendMessageFromResponse, isOpenPopup, activeThread, setIsOpenPopup } =
useThread()
const { activeChatbot } = useSidebar()
React.useEffect(() => {
Expand Down Expand Up @@ -86,6 +86,7 @@ function ThreadComponent({
const handleAccordionToggle = (isOpen: boolean) => {
// It should scroll when opening or closing the accordion
scrollToTop()
// setIsOpenPopup(isOpen ? true : false)
}

React.useEffect(() => {
Expand Down
7 changes: 6 additions & 1 deletion apps/masterbots.ai/components/thread-popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ export function ThreadPopup({ className }: { className?: string }) {
allMessages,
setIsOpenPopup,
sendMessageFromResponse,
isLoading
isLoading,
setActiveThread
} = useThread()

const onClose = () => {
setIsOpenPopup(!isOpenPopup)
if (activeThread?.threadId) {
setActiveThread(null)
}
}
const popupContentRef = useRef<HTMLDivElement>()

Expand Down

0 comments on commit d874cb6

Please sign in to comment.