this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(manage): add 'View public profile' link below form when live

Made-with: Cursor

+36
+16
assets/styles.css
··· 2203 2203 text-align: right; 2204 2204 } 2205 2205 2206 + /* "View public profile" link rendered below the form once the profile 2207 + * is live in the registry. Wraps the secondary button so we can centre 2208 + * it without affecting the form layout above. */ 2209 + .manage-view-public { 2210 + display: flex; 2211 + justify-content: center; 2212 + margin-top: 1.75rem; 2213 + } 2214 + 2215 + .manage-view-public-link { 2216 + display: inline-flex; 2217 + align-items: center; 2218 + gap: 0.5rem; 2219 + text-decoration: none; 2220 + } 2221 + 2206 2222 .profile-form { 2207 2223 padding: 1.75rem; 2208 2224 border-radius: 24px;
+1
i18n/messages/en.tsx
··· 407 407 "Publish to add this profile to Explore. Nothing is shared until you do.", 408 408 signOut: "Sign out", 409 409 signedInAs: "Signed in as", 410 + viewPublicProfile: "View public profile", 410 411 }, 411 412 }, 412 413
+19
routes/explore/manage.tsx
··· 159 159 initialPublished={initialPublished} 160 160 /> 161 161 </div> 162 + 163 + {/* 164 + Only render the "view public profile" link once the profile 165 + actually exists in the registry — there's nothing to view 166 + until the user has hit Publish at least once. We use the 167 + handle from the registry row so it stays correct even if 168 + the user later changes their PDS handle. 169 + */} 170 + {initialPublished && publicProfileHandle && ( 171 + <div class="manage-view-public"> 172 + <a 173 + href={`/explore/${encodeURIComponent(publicProfileHandle)}`} 174 + class="profile-form-button-secondary manage-view-public-link" 175 + > 176 + {explore.manage.viewPublicProfile} 177 + <span aria-hidden="true">→</span> 178 + </a> 179 + </div> 180 + )} 162 181 </div> 163 182 </section> 164 183 <Footer variant="compact" />