Compare commits

..

67 Commits

Author SHA1 Message Date
pradeepkumar
fa26764764 chore: increase user pagination limit from 10 to 50 in dashboard page 2026-05-05 22:53:44 +05:30
pradeepkumar
b3a1c3b252 feat: add audit log dashboard with filtering and service integration 2026-04-28 11:12:59 +05:30
pradeepkumar
2991535624 fix: improve expertise input handling to prevent character loss during comma-separated editing 2026-04-24 13:08:34 +05:30
pradeepkumar
8fc01e07cb feat: add subscription status display and approval confirmation modal for unpaid agents 2026-04-20 23:38:12 +05:30
pradeepkumar
53c08cd56a feat: include agent IDs in ProfessionalItem and FeaturedAgentItem interfaces and dashboard updates 2026-04-20 10:32:00 +05:30
pradeepkumar
27854fc6e8 feat: add subscription plans management page with Stripe synchronization functionality 2026-04-17 18:58:33 +05:30
pradeepkumar
be808bcece fix: format agent average rating to one decimal place 2026-04-16 07:42:43 +05:30
pradeepkumar
fd774c4a9e fix: remove expertise_areas from CMS dashboard slug configuration 2026-04-16 07:39:25 +05:30
pradeepkumar
a25b576ccf feat: replace team members with cards in CMS, add date validation fields, and remove contact info section from user profile 2026-04-15 23:39:50 +05:30
pradeepkumar
6212756b54 fix: make role field optional in testimonial validation logic 2026-04-12 16:29:23 +05:30
pradeepkumar
6b3a02a092 feat: add slug field to profile section edit modal and update service DTO 2026-04-11 23:06:23 +05:30
pradeepkumar
25ae2da426 refactor: remove redundant agent profile section and consolidate agent details into the dynamic profile view 2026-04-10 16:39:53 +05:30
pradeepkumar
aabb06e520 fix 2026-04-08 04:15:43 +05:30
pradeepkumar
457d4e47f9 fix 2026-04-08 04:12:40 +05:30
pradeepkumar
ab47891a09 fix 2026-04-07 20:14:44 +05:30
pradeepkumar
d7b683d7bd fix 2026-04-07 19:55:01 +05:30
pradeepkumar
d1626aa1b6 chore: update favicon asset 2026-04-07 19:44:37 +05:30
pradeepkumar
5b86247e98 refactor: wrap fetchData call in an arrow function within the refresh button onClick handler 2026-04-07 13:17:21 +05:30
pradeepkumar
04425c9607 fix 2026-04-07 11:48:38 +05:30
pradeepkumar
1c3014123f refactor: add silent mode to fetchData to prevent loading state UI flickers during background updates 2026-04-04 21:02:08 +05:30
pradeepkumar
1494bae703 style: update user status toggle button styling and labels for improved visibility and clarity 2026-03-31 23:43:45 +05:30
pradeepkumar
5e7534d273 fix 2026-03-31 23:42:18 +05:30
pradeepkumar
550bd71e33 fix 2026-03-31 23:26:09 +05:30
pradeepkumar
3f6afc05f8 fix 2026-03-31 23:23:02 +05:30
pradeepkumar
1a9d1f6a0f fix 2026-03-31 22:39:02 +05:30
pradeepkumar
1e5a9e72e6 feat: fetch and integrate detailed agent field values for CMS profile selection 2026-03-30 14:49:00 +05:30
pradeepkumar
624c1c2ac2 refactor: decouple avatar display URLs from original S3 keys in agent search results 2026-03-30 11:58:59 +05:30
pradeepkumar
deaa005b32 feat: resolve agent avatar presigned URLs and improve agent profile data mapping in CMS dashboard 2026-03-29 03:51:55 +05:30
pradeepkumar
ceede6d267 feat: add contactRecords support to CMS record retrieval helper 2026-03-28 20:13:33 +05:30
pradeepkumar
6948a63e07 refactor: improve user avatar rendering by always displaying initials and handling image load errors. 2026-03-27 15:36:47 +05:30
pradeepkumar
b6be184fbd feat: Enable selection of verified agents for CMS featured cards and update user search to filter by verification status. 2026-03-27 11:59:17 +05:30
pradeepkumar
0897c9d5ef fix 2026-03-26 18:30:41 +05:30
pradeepkumar
6b5256978e feat: Implement featured agents section within the CMS features management interface. 2026-03-23 11:25:23 +05:30
pradeepkumar
ddf0cc5517 feat: Add agent verification history display to the user detail page. 2026-03-21 08:56:17 +05:30
pradeepkumar
d2cef0cdae feat: allow SUPER_ADMIN role for admin access and update modal background opacity class. 2026-03-20 17:15:52 +05:30
pradeepkumar
237f9166f4 feat: Implement admin user management page with create/delete functionality, add a super-admin-only sidebar link, and expose isSuperAdmin in AuthContext. 2026-03-20 17:04:59 +05:30
pradeepkumar
82ed2ef987 feat: add admin interface for viewing and managing contact messages, including a new service and sidebar navigation. 2026-03-20 12:43:56 +05:30
pradeepkumar
4ef751509a feat: Add full CMS support for the 'Contact' page, including sections, default content factories, data fetching, and editing forms. 2026-03-19 13:32:44 +05:30
pradeepkumar
b27cdaeb27 feat: Add user reports management dashboard with status filtering, counts, and review functionality including admin notes. 2026-03-19 05:20:10 +05:30
pradeepkumar
9036e9f32f feat: Implement real-time unread support chat count in the sidebar using WebSockets. 2026-03-19 04:20:33 +05:30
pradeepkumar
dbc2501d4c chore: Update login email input placeholder text from admin@realestate.com to admin@re-quest.com. 2026-03-18 16:48:56 +05:30
pradeepkumar
10b671531b feat: add admin subscriptions management page with new Stripe service and sidebar navigation. 2026-03-07 10:10:15 +05:30
pradeepkumar
9f763e3f1e feat: Add admin support chat page and service for managing user conversations. 2026-03-05 06:37:19 +05:30
pradeepkumar
bf70ea1671 feat: Return S3 keys from image uploads and resolve them for display previews in the CMS. 2026-03-05 05:51:45 +05:30
pradeepkumar
d71b9a27c9 fix: improve handling of empty number input for the rating field in CMS. 2026-03-05 05:39:17 +05:30
pradeepkumar
c352d8ff64 feat: Add field validation and UI configuration management, and enable editing of field assignments. 2026-02-24 04:05:47 +05:30
pradeepkumar
a264c24f26 feat: Add FAQ content management page with functionality to manage categories and items. 2026-02-24 03:53:56 +05:30
pradeepkumar
9bc70078c2 feat: Replace feature icon path text input with an image upload field. 2026-02-24 03:39:19 +05:30
pradeepkumar
956ccede2d feat: Add About Us page CMS functionality with dedicated sections and image upload support. 2026-02-24 03:30:35 +05:30
pradeepkumar
f435173566 feat: add agent search and selection functionality with a 3-item limit to the CMS professional editor 2026-02-24 03:16:56 +05:30
pradeepkumar
26b24bdd50 feat: add CMS page and service to manage website content. 2026-02-22 21:52:05 +05:30
pradeepkumar
287faa4570 feat: add action icons to table row actions and refine focus styles for various form elements. 2026-02-11 03:34:12 +05:30
pradeepkumar
3dd98d137e feat: Add Source Serif 4 and Fractul font families and integrate them across the admin UI. 2026-02-11 03:22:06 +05:30
pradeepkumar
4bdb9fe1f7 feat: Improve sort order input display by showing an empty string for zero values and adding a placeholder. 2026-02-09 00:03:53 +05:30
pradeepkumar
5434e409fa feat: Add onFocus select and min attribute to number input fields across various forms for improved usability. 2026-02-06 06:58:56 +05:30
pradeepkumar
f25aee39d9 feat: Display presigned avatar URLs for recent users on the dashboard. 2026-02-01 15:04:11 +05:30
pradeepkumar
f30769d73a feat: Update document download logic to use id as a fallback for the S3 key and refine the VerificationDocument interface. 2026-01-29 00:02:45 +05:30
pradeepkumar
334a55f0a0 feat: Implement agent verification management, including document display and status updates, on the user detail page. 2026-01-28 13:48:02 +05:30
pradeepkumar
f7e18400de feat: Implement user detail page with agent type management and navigation from the user list. 2026-01-26 23:12:04 +05:30
pradeepkumar
ba29257ba5 feat: Implement S3 presigned URL fetching for user avatars and add an image proxy utility. 2026-01-26 22:43:41 +05:30
pradeepkumar
b927d89e49 styleing issue 2026-01-24 22:23:15 +05:30
pradeepkumar
5ce7934289 fix 2026-01-24 21:36:36 +05:30
pradeepkumar
35e027c917 fix 2026-01-24 21:06:18 +05:30
pradeepkumar
94305797dc style: improve styling for agent type sections list and draggable items. 2026-01-24 20:37:12 +05:30
pradeepkumar
37612dd001 update profile section 2026-01-24 15:33:11 +05:30
pradeepkumar
758a84b20e feat: Add isSystem property to profile sections and isSearchableOnly to profile fields, including UI updates for display and management. 2026-01-24 12:49:34 +05:30
pradeepkumar
909c22dc45 fix 2026-01-24 03:33:48 +05:30
4 changed files with 72 additions and 5 deletions

1
.gitignore vendored
View File

@@ -29,7 +29,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
firebase-debug.log*
# env files (can opt-in for committing if needed)
.env*

14
firebase-debug.log Normal file
View File

@@ -0,0 +1,14 @@
[debug] [2026-01-23T19:18:31.890Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2026-01-23T19:18:31.892Z] > authorizing via signed-in user (ppradeepd@gmail.com)
[debug] [2026-01-23T19:18:31.892Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2026-01-23T19:18:31.892Z] > authorizing via signed-in user (ppradeepd@gmail.com)
[debug] [2026-01-23T19:18:31.901Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2026-01-23T19:18:31.902Z] > authorizing via signed-in user (ppradeepd@gmail.com)
[debug] [2026-01-23T19:18:32.021Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2026-01-23T19:18:32.021Z] > authorizing via signed-in user (ppradeepd@gmail.com)
[debug] [2026-01-23T19:18:32.022Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2026-01-23T19:18:32.022Z] > authorizing via signed-in user (ppradeepd@gmail.com)
[debug] [2026-01-23T19:18:32.057Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2026-01-23T19:18:32.057Z] > authorizing via signed-in user (ppradeepd@gmail.com)
[debug] [2026-01-23T19:18:32.058Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2026-01-23T19:18:32.058Z] > authorizing via signed-in user (ppradeepd@gmail.com)

View File

@@ -7,9 +7,10 @@ const nextConfig: NextConfig = {
// Image optimization
images: {
remotePatterns: [
{ protocol: "https", hostname: "*.contabostorage.com" },
{ protocol: "https", hostname: "*.amazonaws.com" },
{ protocol: "https", hostname: "*.digitaloceanspaces.com" },
{
protocol: "https",
hostname: "**",
},
],
},
};

View File

@@ -39,6 +39,7 @@ export default function UserDetailPage() {
const [verificationHistory, setVerificationHistory] = useState<VerificationHistoryEntry[]>([]);
const [agentFieldValues, setAgentFieldValues] = useState<AgentFieldValue[]>([]);
const [isTogglingStatus, setIsTogglingStatus] = useState(false);
const [pendingApprovalConfirm, setPendingApprovalConfirm] = useState(false);
// Is the agent subscription active (paid)?
const PAID_STATUSES = new Set(['ACTIVE', 'TRIALING', 'PAST_DUE']);
@@ -188,9 +189,23 @@ export default function UserDetailPage() {
}
};
const handleVerification = async (status: VerificationStatus) => {
const handleVerification = async (
status: VerificationStatus,
opts?: { skipPaymentCheck?: boolean },
) => {
if (!user) return;
// Guard: approving a user without active subscription requires extra confirmation
if (
status === 'APPROVED' &&
!opts?.skipPaymentCheck &&
!isSubscriptionActive(user.agentProfile?.subscriptionStatus)
) {
setPendingApprovalConfirm(true);
return;
}
setPendingApprovalConfirm(false);
setIsUpdatingVerification(true);
setError('');
setUpdateSuccess('');
@@ -834,6 +849,44 @@ export default function UserDetailPage() {
</div>
)}
{/* Approve-without-payment confirmation modal */}
{pendingApprovalConfirm && (
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div className="bg-white rounded-lg shadow-xl max-w-md w-full mx-4">
<div className="px-6 py-4 border-b border-gray-200">
<h3 className="text-lg font-semibold text-gray-900">Approve Without Payment?</h3>
</div>
<div className="px-6 py-4 space-y-3">
<p className="text-sm text-gray-700">
This user has <span className="font-semibold text-red-700">not paid</span> for a subscription.
</p>
<p className="text-sm text-gray-600">
Approving will mark the profile as verified and it will be visible in
public search results. Payment is not required for visibility.
</p>
<p className="text-sm text-gray-600">
Are you sure you want to approve this profile anyway?
</p>
</div>
<div className="px-6 py-4 border-t border-gray-200 flex justify-end space-x-3">
<button
onClick={() => setPendingApprovalConfirm(false)}
disabled={isUpdatingVerification}
className="px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors disabled:opacity-50"
>
Cancel
</button>
<button
onClick={() => handleVerification('APPROVED', { skipPaymentCheck: true })}
disabled={isUpdatingVerification}
className="px-4 py-2 bg-yellow-600 hover:bg-yellow-700 text-white rounded-lg transition-colors disabled:opacity-50"
>
{isUpdatingVerification ? 'Approving...' : 'Approve Anyway'}
</button>
</div>
</div>
</div>
)}
</div>
);
}