Skip to content

feat: sign in wall for collections#1833

Merged
gaspergrom merged 3 commits intomainfrom
feat/sigin-modal-collections
Apr 15, 2026
Merged

feat: sign in wall for collections#1833
gaspergrom merged 3 commits intomainfrom
feat/sigin-modal-collections

Conversation

@gaspergrom
Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a collections-specific authentication wall (modal) and wires it into common collections entry points so unauthenticated users are prompted to sign in instead of being immediately redirected.

Changes:

  • Introduces LfxCollectionAuthWall modal and uses it from My Collections, Like, Duplicate, and Create Collection entry points.
  • Replaces direct login(redirectTo) redirects with local “open auth wall” state in several flows.
  • Always exposes the “My Collections” tab (with the page now responsible for gating access via the auth wall).

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
frontend/app/pages/collection/my-collections/index.vue Shows the collections auth wall when visiting My Collections unauthenticated
frontend/app/components/shared/components/like-button.vue Opens auth wall when liking while unauthenticated
frontend/app/components/modules/collection/store/duplicate-collection.store.ts Adds store state to open auth wall instead of redirecting on duplicate
frontend/app/components/modules/collection/store/collections.store.ts Stops auto-login redirect in addLikedCollection when unauthenticated
frontend/app/components/modules/collection/config/collection-type-config.ts Always includes “My Collections” tab
frontend/app/components/modules/collection/components/create-modal/duplicate-collection-global.vue Renders auth wall bound to duplicate-collection store state
frontend/app/components/modules/collection/components/create-modal/create-button.vue Always shows Create button; opens auth wall if not signed in
frontend/app/components/modules/collection/components/auth-wall/collection-auth-wall.vue New modal component prompting sign-in and showing social proof

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread frontend/app/pages/collection/my-collections/index.vue Outdated
Comment thread frontend/app/pages/collection/my-collections/index.vue Outdated
Comment on lines +144 to +148
onMounted(async () => {
try {
const data = await $fetch<Pagination<Collection>>('/api/collection', {
params: { type: 'community', sort: 'likeCount_desc', pageSize: 10 },
});
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The auth wall fetches top community collections on every mount (onMounted + $fetch('/api/collection', ...)). Since this component is commonly rendered via v-if (mount/unmount per open), opening the wall repeatedly will repeatedly hit the API and delay rendering. Consider caching the result (module-level ref), using useAsyncData/useQuery with a stable key + staleTime, or otherwise avoiding refetching when topAuthors is already populated.

Copilot uses AI. Check for mistakes.
Comment thread frontend/app/pages/collection/my-collections/index.vue Outdated
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
@gaspergrom gaspergrom requested review from joanagmaia and removed request for emlimlf April 15, 2026 08:47
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Copy link
Copy Markdown
Collaborator

@joanagmaia joanagmaia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gaspergrom gaspergrom merged commit af8560f into main Apr 15, 2026
10 checks passed
@gaspergrom gaspergrom deleted the feat/sigin-modal-collections branch April 15, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants