Skip to content
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
72f7b77
Remove .env file
masterbotai Oct 31, 2023
23e6baf
Remove .env file
masterbotai Oct 31, 2023
7de3c6d
Remove .env file
masterbotai Nov 1, 2023
1c5c7de
update
AndlerRL Jul 29, 2025
6f0edff
fix: update
AndlerRL Aug 7, 2025
09d01d8
update
sheriffjimoh Feb 4, 2025
35c2d7f
update
sheriffjimoh Feb 5, 2025
4bdaf2f
fix: rm breadcrumb on profile page
sheriffjimoh Aug 6, 2025
d4cb4b5
fix: arrow pointed right for closed/collapsed and arrow pointed down …
sheriffjimoh Aug 12, 2025
0cbf5ec
feat: added user profile to preference
sheriffjimoh Aug 12, 2025
dd06648
fix: update
sheriffjimoh Aug 12, 2025
fab64fe
fix: server pages restrictions
sheriffjimoh Aug 13, 2025
b1eae54
fix: verify email ui
sheriffjimoh Aug 19, 2025
568ec33
feat: endpoint route for verify token
sheriffjimoh Aug 20, 2025
2e0fb3f
feat: verify email setup
sheriffjimoh Aug 21, 2025
db14593
fix: updating session and validate username
sheriffjimoh Aug 21, 2025
f3c17fd
fix: username update
sheriffjimoh Aug 22, 2025
86976eb
fix: prefrences updates
sheriffjimoh Aug 25, 2025
6ea5f42
feat: added theme and font-size setting
sheriffjimoh Aug 28, 2025
7ca6583
feat: added theme and font-size setting
sheriffjimoh Aug 28, 2025
baba461
fix: merged develop
sheriffjimoh Aug 29, 2025
520fb8e
fix: update
sheriffjimoh Aug 30, 2025
8383b36
fix: update
sheriffjimoh Aug 30, 2025
1993d31
fix: google language translation updates
sheriffjimoh Sep 9, 2025
2b85da5
fix: app clean up
sheriffjimoh Sep 9, 2025
635d909
fix: update anon permision to see Isverified column
sheriffjimoh Sep 10, 2025
28de615
fix: lint update
sheriffjimoh Sep 10, 2025
4ecbabb
fix: username update func
sheriffjimoh Sep 10, 2025
20456d9
fix: rm bredcrum on pref page
sheriffjimoh Sep 10, 2025
727308a
fix: font icons
sheriffjimoh Sep 11, 2025
5c0a42b
fix: update
sheriffjimoh Sep 11, 2025
0b7e408
fix: build error
sheriffjimoh Sep 11, 2025
6602eaa
fix: error build
sheriffjimoh Sep 11, 2025
d3ebdca
fix: error build
sheriffjimoh Sep 11, 2025
fd6207f
Merge branch 'develop' into feat-profile-settings-clean
AndlerRL Sep 12, 2025
10a36a0
fix: rem master.ai folder
sheriffjimoh Sep 15, 2025
b6776d8
fix: added isUsernameTaken verifycation to username on auth
sheriffjimoh Sep 15, 2025
557ca42
fix: add ts def
sheriffjimoh Sep 16, 2025
dbdde0d
fix: update
sheriffjimoh Sep 16, 2025
84c055c
fix: update font size in gloabl.css
sheriffjimoh Sep 16, 2025
f0c3cc7
Merge branch 'develop' into feat-profile-settings-clean
sheriffjimoh Sep 22, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ select_permissions:
- role: anonymous
permission:
columns:
- is_pro
- pro_exclusive
- chatbot_id
- avatar
- chatbot_id
- created_by
Expand All @@ -81,8 +78,6 @@ select_permissions:
- role: moderator
permission:
columns:
- is_pro
- pro_exclusive
- avatar
- chatbot_id
- created_by
Expand All @@ -100,8 +95,6 @@ select_permissions:
- role: user
permission:
columns:
- is_pro
- pro_exclusive
- avatar
- chatbot_id
- created_by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ select_permissions:
- deletion_requested_at
- email
- favourite_topic
- is_verified
- last_login
- pro_user_subscription_id
- profile_picture
Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
3 changes: 3 additions & 0 deletions apps/hasura/seeds/masterbots/1738179687443_init_tag_enum.sql
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
74 changes: 74 additions & 0 deletions apps/masterbots.ai/components/routes/home/home-page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
'use client'

import BrowseList from '@/components/routes/browse/browse-list'
import { OnboardingSection } from '@/components/shared/onboarding-section'
import { useSidebar } from '@/lib/hooks/use-sidebar'
import type { HomePageProps } from '@/types/types'
import { useSession } from 'next-auth/react'
import { useEffect, useState } from 'react'

export default function HomePage({
initialThreads,
initialCount,
}: HomePageProps) {
const { data: session, status } = useSession()
const { selectedCategories, setSelectedCategories } = useSidebar()
const [showOnboarding, setShowOnboarding] = useState(false)

useEffect(() => {
if (status === 'loading') return
setShowOnboarding(!session?.user)
}, [session?.user, status])

//? Show onboarding section for non-logged-in users
if (!session?.user) {
if (!showOnboarding && selectedCategories.length > 0) {
return (
<BrowseList
initialThreads={initialThreads}
initialCount={initialCount}
disableOnboarding={true}
/>
)
}

if (!showOnboarding && selectedCategories.length === 0) {
return (
<div className="flex flex-col gap-3 py-5 w-full">
<div className="flex justify-center items-center min-h-[calc(100vh-200px)]">
<div className="text-center">
<h2 className="mb-4 text-2xl font-bold text-gray-900 dark:text-white">
Welcome to Masterbots.ai
</h2>
<p className="mb-6 text-gray-600 dark:text-gray-400">
Please select some topics to get started
</p>
<button
type="button"
onClick={() => setShowOnboarding(true)}
className="px-6 py-3 text-white bg-green-600 rounded-lg transition-colors hover:bg-green-700"
>
Select Topics
</button>
</div>
</div>
</div>
)
}

//? Show onboarding section
return (
<div className="flex flex-col gap-3 py-5 w-full">
<OnboardingSection
isOpen={showOnboarding}
onClose={() => setShowOnboarding(false)}
/>
</div>
)
}

//? Show regular browse list for logged-in users
return (
<BrowseList initialThreads={initialThreads} initialCount={initialCount} />
)
}
17 changes: 17 additions & 0 deletions apps/masterbots.ai/components/routes/profile/empty-state.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { FolderX } from 'lucide-react'

export function EmptyState() {
return (
<div className="flex flex-col justify-center items-center h-full w-full text-center p-6">
<div className="mb-6">
<FolderX className="mx-auto text-gray-400" size={100} strokeWidth={1} />
</div>
<h2 className="text-2xl font-bold text-gray-800 mb-3">
No Data Available
</h2>
<p className="text-gray-600 max-w-md">
There is no data available for this user.
</p>
</div>
)
}
Loading