xtablo-source/prompts/rework_temporary_users.txt
Arthur Belleville 4be99b9900
lint
2026-04-24 16:43:00 +02:00

20 lines
1.5 KiB
Text

/superpowers:brainstorming
You are going to rework the is_temporary feature that was brought earlier to the project. The idea is that a tablo can be accessed by the organization members,
as admin of the tablo, but also by temporary users that are invited to the tablo.
Although this is a good pitch, it brings up a lot of issues since a temporary user is a special user in our systems, and doesn't have the same privileges.
For instance, a temporary user is not forced to have a paid plan to be on xtablo. It also implies more complex permission checks in the backend api.
We are going to remove this type of user, and instead rework the invitations into magic links.
The idea is that the tablo has a magic link access, which is outside of the domain: currently it will be clients.xtablo.com. This allows the members to send an invite to the tablo via a magic link, and allow their
clients to access their portal at this url, and interact.
This means: create a new package called at apps/clients that is React-based, with a wrangler.toml since it will be a new worker on Cloudlfare. This package will share some code with apps/main since the tablo logic
is to be remimplemented there. This new website will not have the left navigation bar, and instead contain only the scoped view to the tablo.
Temporary users can stay for now, since we need to talk to our clients and let them upgrade to magic links before removing all temporary users.
With magic links, you still need to create a user that will be impersonated when accessing the link, so that discussions work.