Skip to content

Commit 43e437a

Browse files
committed
fix: ESM import and improve signup page UX
- Add .js extension to ESM import in oauth-strategies for Docker compatibility - Format signup terms text in three balanced lines for better readability - Remove "Your Journey Begins as a Viewer" section for cleaner UI
1 parent 23bcf0b commit 43e437a

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

packages/server/src/auth/oauth-strategies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import passport from 'passport';
22
import { Strategy as GoogleStrategy } from 'passport-google-oauth20';
33
import { Strategy as OpenIDConnectStrategy } from 'passport-openidconnect';
44
import { Strategy as GitHubStrategy } from 'passport-github2';
5-
import { sqliteAuthStore } from './sqlite-auth';
5+
import { sqliteAuthStore } from './sqlite-auth.js';
66

77
export function configureOAuthStrategies() {
88
passport.use(

packages/web/src/pages/Signup.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,9 @@ export function Signup() {
646646

647647
{/* Terms */}
648648
<p className="text-xs text-gray-400 text-center">
649-
By creating an account, you agree to participate in the decentralized graph network
650-
and contribute to the collective intelligence.
649+
By creating an account, you agree to participate in<br />
650+
the decentralized graph network and contribute<br />
651+
to the collective intelligence.
651652
</p>
652653
</form>
653654
)}
@@ -663,15 +664,6 @@ export function Signup() {
663664
</Link>
664665
</p>
665666
</div>
666-
667-
{/* Role Information */}
668-
<div className="mt-8 p-4 bg-gray-800/50 backdrop-blur-xl border border-gray-700/50 rounded-2xl shadow-lg">
669-
<h3 className="text-sm font-semibold text-gray-100 mb-2">Your Journey Begins as a Viewer</h3>
670-
<p className="text-xs text-gray-400">
671-
All new members start with read-only access. As you contribute and demonstrate value,
672-
the community may elevate your role to User or even Admin.
673-
</p>
674-
</div>
675667
</>
676668
)}
677669
</div>

0 commit comments

Comments
 (0)