Skip to content

Conversation

@LauraBeatris
Copy link
Member

@LauraBeatris LauraBeatris commented Feb 14, 2025

Description

Adds the tasks property on the session client resource to be leveraged/accessed for displaying in AIO components

Object.keys(session.tasks).map(task => (
   <Route path={task}>
       <Task task={task}  />
   </Route>
)

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@LauraBeatris LauraBeatris self-assigned this Feb 14, 2025
@changeset-bot
Copy link

changeset-bot bot commented Feb 14, 2025

🦋 Changeset detected

Latest commit: aa2c20a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 23 packages
Name Type
@clerk/clerk-js Patch
@clerk/types Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/elements Patch
@clerk/expo-passkeys Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/localizations Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/clerk-react Patch
@clerk/remix Patch
@clerk/shared Patch
@clerk/tanstack-start Patch
@clerk/testing Patch
@clerk/themes Patch
@clerk/ui Patch
@clerk/vue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Feb 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 18, 2025 4:27pm

@LauraBeatris LauraBeatris force-pushed the introduce-session-tasks-types branch from 613811f to 465496a Compare February 14, 2025 20:02
@LauraBeatris LauraBeatris changed the title [wip] chore(clerk-js,types): Add tasks on Session resource chore(clerk-js,types): Add tasks on Session resource Feb 14, 2025
@LauraBeatris LauraBeatris changed the title chore(clerk-js,types): Add tasks on Session resource chore(clerk-js,types): Initialize tasks on Session resource Feb 14, 2025
@LauraBeatris LauraBeatris marked this pull request as ready for review February 14, 2025 20:12
@LauraBeatris LauraBeatris force-pushed the introduce-session-tasks-types branch from 4809110 to f559c3e Compare February 14, 2025 20:15
@LauraBeatris LauraBeatris force-pushed the introduce-session-tasks-types branch from f559c3e to b9b5431 Compare February 14, 2025 20:16
@LauraBeatris LauraBeatris force-pushed the introduce-session-tasks-types branch from b9b5431 to 1882e49 Compare February 14, 2025 20:18
@LauraBeatris
Copy link
Member Author

LauraBeatris commented Feb 17, 2025

Currently holding on this one until tomorrow, cause we've been discussing on FAPI returns a list of tasks instead of an object, so we don't have to manually transform it to entries here when serializing the JSON.

@LauraBeatris LauraBeatris force-pushed the introduce-session-tasks-types branch from e2e02ec to aa2c20a Compare February 18, 2025 16:26
@LauraBeatris
Copy link
Member Author

I've just updated it to use an array of session tasks instead

@LauraBeatris LauraBeatris merged commit bcbe5f6 into main Feb 18, 2025
29 checks passed
@LauraBeatris LauraBeatris deleted the introduce-session-tasks-types branch February 18, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants