-
- {result.name || result.ename || result.handle || 'Unknown'}
-
-
- {targetType === 'user' ? (
- result.ename ? (result.ename.startsWith('@') ? result.ename : `@${result.ename}`) : 'no ename'
+ {/* Target Selection */}
+
+
Select eReference Target
+
+
+ {TARGET_TYPES.map((type) => (
+
+ ))}
+
+
+
+
+ {/* Search Target */}
+
+
+
+
handleSearchChange(e.target.value)}
+ className="pl-10 border-2 border-fig/20 focus:border-fig/40 focus:ring-fig/20 rounded-2xl"
+ disabled={!targetType}
+ />
+
+
+ {/* Search Results Dropdown - Absolute positioned overlay */}
+ {searchQuery.length >= 2 && !selectedTarget && (
+
+ {isSearching ? (
+
+ ) : searchResults.length > 0 ? (
+ searchResults.map((result: any, index: number) => (
+
-
- ))
- ) : (
-
- No {targetType}s found for "{searchQuery}"
+
+ ))
+ ) : (
+
+ No {targetType}s found for "{searchQuery}"
+
+ )}
+
+ )}
+
+
+ {/* Selected Target Display */}
+ {selectedTarget && (
+
+
+
+
+
+ {selectedTarget.name || selectedTarget.ename || selectedTarget.handle || 'Unknown'}
+
- )}
+
+
)}
-
- {/* Selected Target Display */}
- {selectedTarget && (
-
-
-
-
-
- {selectedTarget.name || selectedTarget.ename || selectedTarget.handle || 'Unknown'}
-
-
-
-
+
+ {/* Reference Text */}
+
-
- {/* Reference Text */}
-
-
)}
-
+
{!signingSession && (
-
-
)}
-
+
{signingSession && signingStatus !== "signed" && (
-
-
+
Ready to Calculate
@@ -162,7 +162,7 @@ export default function SelfCalculationModal({ open, onOpenChange }: SelfCalcula
Calculating Your eReputation
- {currentStep < ANALYSIS_STEPS.length
+ {currentStep < ANALYSIS_STEPS.length
? ANALYSIS_STEPS[currentStep].label
: "Calculation complete!"
}
@@ -211,18 +211,18 @@ export default function SelfCalculationModal({ open, onOpenChange }: SelfCalcula
)}
-
+
-
-
-
+
{/* View Reputation Modal */}
{
clearAuth();
- window.location.href = "/auth";
+ window.location.href = "/";
};
const handleViewActivity = (activity: any) => {
diff --git a/platforms/eReputation/client/src/pages/landing.tsx b/platforms/eReputation/client/src/pages/landing.tsx
index 426f66df..01f1151a 100644
--- a/platforms/eReputation/client/src/pages/landing.tsx
+++ b/platforms/eReputation/client/src/pages/landing.tsx
@@ -1,6 +1,6 @@
export default function Landing() {
const handleLogin = () => {
- window.location.href = "/api/login";
+ window.location.href = "/";
};
return (
@@ -11,7 +11,7 @@ export default function Landing() {
-
+
{/* Enhanced Logo */}
@@ -22,14 +22,14 @@ export default function Landing() {
-
+
eReputation
Calculate and manage your eReputation throughout the W3DS
-
+
{/* Feature Icons */}
@@ -58,9 +58,9 @@ export default function Landing() {
-
+
-
Sign in to Continue
-
+
diff --git a/platforms/eReputation/client/src/pages/references.tsx b/platforms/eReputation/client/src/pages/references.tsx
index 54df1edf..c5622e34 100644
--- a/platforms/eReputation/client/src/pages/references.tsx
+++ b/platforms/eReputation/client/src/pages/references.tsx
@@ -63,7 +63,7 @@ export default function References() {
variant: "destructive",
});
setTimeout(() => {
- window.location.href = "/api/login";
+ window.location.href = "/";
}, 500);
return;
}
@@ -88,7 +88,7 @@ export default function References() {
const handleLogout = () => {
clearAuth();
- window.location.href = "/auth";
+ window.location.href = "/";
};
if (isLoading) {
@@ -120,7 +120,7 @@ export default function References() {