Skip to content

feat: anon user api#8675

Draft
mikeallisonJS wants to merge 13 commits intomainfrom
00-00-MA-feat-anon-user-api
Draft

feat: anon user api#8675
mikeallisonJS wants to merge 13 commits intomainfrom
00-00-MA-feat-anon-user-api

Conversation

@mikeallisonJS
Copy link
Collaborator

No description provided.

…hema references

- Removed the User type in favor of AuthenticatedUser across multiple schemas.
- Updated GraphQL queries and mutations to reflect the new type.
- Adjusted resolver implementations to return AuthenticatedUser instead of User.
- Introduced AnonymousUser type for handling unauthenticated users.
- Ensured backward compatibility by updating union types and references in generated files.
@mikeallisonJS mikeallisonJS self-assigned this Feb 3, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 3, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 00-00-MA-feat-anon-user-api

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

Fails
🚫 Please request a reviewer for this PR.
Warnings
⚠️ ❗ Big PR (941 changes)

(change count - 941): Pull Request size seems relatively large. If Pull Request contains multiple changes, split each into separate PR will helps faster, easier review.

Generated by 🚫 dangerJS against 69c8b20

@nx-cloud
Copy link

nx-cloud bot commented Feb 3, 2026

View your CI Pipeline Execution ↗ for commit 69c8b20

Command Status Duration Result
nx run-many --target=vercel-alias --projects=jo... ✅ Succeeded 2s View ↗
nx run-many --target=vercel-alias --projects=jo... ✅ Succeeded 2s View ↗
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 12s View ↗
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 7s View ↗
nx run-many --target=vercel-alias --projects=vi... ✅ Succeeded 2s View ↗
nx run-many --target=vercel-alias --projects=watch ✅ Succeeded 2s View ↗
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 10s View ↗
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 7s View ↗
Additional runs (13) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2026-02-03 21:41:17 UTC

@github-actions github-actions bot temporarily deployed to Preview - short-links February 3, 2026 20:28 Inactive
@github-actions github-actions bot had a problem deploying to Preview - journeys-admin February 3, 2026 20:28 Failure
@github-actions github-actions bot temporarily deployed to Preview - journeys February 3, 2026 20:28 Inactive
@github-actions github-actions bot temporarily deployed to Preview - videos-admin February 3, 2026 20:28 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
short-links ✅ Ready short-links preview Wed Feb 4 10:40:05 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys ✅ Ready journeys preview Wed Feb 4 10:40:42 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
player ✅ Ready player preview Wed Feb 4 10:40:09 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
videos-admin ✅ Ready videos-admin preview Wed Feb 4 10:40:36 NZDT 2026

@github-actions github-actions bot requested a deployment to Preview - journeys-admin February 3, 2026 20:52 Pending
@github-actions github-actions bot temporarily deployed to Preview - short-links February 3, 2026 20:52 Inactive
@github-actions github-actions bot temporarily deployed to Preview - resources February 3, 2026 20:52 Inactive
@github-actions github-actions bot temporarily deployed to Preview - videos-admin February 3, 2026 20:52 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys February 3, 2026 20:52 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch ✅ Ready watch preview Wed Feb 4 10:40:35 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
resources ✅ Ready resources preview Wed Feb 4 10:40:21 NZDT 2026

@github-actions github-actions bot temporarily deployed to Preview - videos-admin February 3, 2026 21:00 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys February 3, 2026 21:00 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys-admin February 3, 2026 21:18 Inactive
@github-actions github-actions bot temporarily deployed to Preview - videos-admin February 3, 2026 21:18 Inactive
@github-actions github-actions bot temporarily deployed to Preview - short-links February 3, 2026 21:18 Inactive
@github-actions github-actions bot temporarily deployed to Preview - resources February 3, 2026 21:18 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys February 3, 2026 21:18 Inactive
@github-actions github-actions bot temporarily deployed to Preview - videos-admin February 3, 2026 21:31 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys February 3, 2026 21:31 Inactive
@github-actions github-actions bot temporarily deployed to Preview - short-links February 3, 2026 21:31 Inactive
@github-actions github-actions bot requested a deployment to Preview - resources February 3, 2026 21:31 Pending
@github-actions github-actions bot requested a deployment to Preview - journeys-admin February 3, 2026 21:31 Pending
@github-actions github-actions bot temporarily deployed to Preview - journeys-admin February 3, 2026 21:37 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys February 3, 2026 21:37 Inactive
@github-actions github-actions bot temporarily deployed to Preview - videos-admin February 3, 2026 21:37 Inactive
@github-actions github-actions bot temporarily deployed to Preview - short-links February 3, 2026 21:37 Inactive
@github-actions github-actions bot temporarily deployed to Preview - resources February 3, 2026 21:37 Inactive
…d schema references

- Introduced AnonymousUser type to handle unauthenticated users across multiple schemas.
- Updated User type to be a union of AuthenticatedUser and AnonymousUser.
- Adjusted resolver implementations and references in user-related schemas to accommodate the new structure.
- Ensured compatibility with existing queries and mutations by updating relevant types.
… are processed

- Modified various components to check for AuthenticatedUser type before accessing user properties.
- Updated user-related logic in JourneyVisitorsPage, AccessDialog, and Team components to enhance type safety.
- Ensured consistent handling of user data across the application by filtering out non-authenticated users.
- Changed instances of User type to AuthenticatedUser in JourneyAppearance, JourneyCardMenu, TeamOnboarding, UserTeamInviteForm, and useUserTeamsAndInvitesLazyQuery tests.
- Ensured consistency in user type handling across multiple test files.
…d schema references

- Changed the User type in UserTeam to reference the new User union, which includes both AuthenticatedUser and AnonymousUser.
- Introduced AnonymousUser type in multiple schemas to handle unauthenticated users.
- Updated generated TypeScript files to reflect the changes in the GraphQL schema.
- Ensured consistency across the application by updating user-related logic to accommodate the new structure.
…t components

- Updated user type checks in AccessDialog and Host components to use optional chaining for safer access to user properties.
- Ensured consistent handling of AuthenticatedUser type across components to prevent potential runtime errors.
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.

1 participant