Tags: wraft/wraft
Tags
feat: add users to collaborate and engage with the document (#24) * feat: schema and migration tables for guest user * feat: add unique index for guest user to maintain uniqueness based on the email provided * feat: add schema migration table for content collaboration * feat: update the content collaboration schema to have guest user field as well * feat: migration script to create counter parties table * feat: add schemas for counter parties * feat: api for sharing the document to a user via email whether it is a guest user or otherwise * feat: document access verification API * feat: revoke document access api * feat: list collaborators api * feat: update collaborator role api * fix: make the migration script as up and down function for content colaboration table scenario handling * fix: fix issues and refactoring of the api * fix: change share api naming to invite api * fix: bug fixes related to list api and revoke api * feat: add and remove counterparty * feat: add meta field to content table and document type field in content type table * docs: update the docs and content_type views to add document type for all the related apis * feat: add parametrized scalable meta embedded schema based on ecto custom type for identifying the document type * refactor: refactor the existing implementation for document meta handling along with some minor fixes * feat: create an update_meta api to update the meta fields * fix: fix issues with updating the meta fields * feat:add start date to contract clm * feat: api for sharing the document to a user via email whether it is a guest user or otherwise * fix: minor fix * feat: add role as editor too in content collaboration * feat: add migration script for content collaboration table for handling who invited and who revoked and when as well as add user type in user table * feat: add the revoked_by and revoked_at as well as invited_by logic for content collaboration * WIP: Implementing collaboration * WIP: add the token in the invite api response * chore: moved the collaboration related api to instance_guest controller and wrote function for guest access token creation * fix: remove guest_user table * fix: minor fixes in apis on removing guest user field * feat: add or remove flow state users at a document level instead of content_type level * fix: fix the api for add or remove user at flow state at document level * feat: guest access token time period set to 3 days * fix: fix the flow state users indexing to filter out and not show those added at document level * feat: list flow state users at document level * fix: document level user shown in the preload of show flow api and replace add add unique constraint with state document and user id in state users table along with considering the null document id as distinct * fix: add partial unique index for state_users table * feat: allow the added user to document level state to be allowed to see the document in the listing * fix: list collaborators scenario where the document instance state id is null should return an empty list * fix: verify token gracefully handle the error where the document id is different from one in the token * fix: already revoked document need not return the success scenario and already not accepted need not be revoked * feat: allow a revoked user to be send invitation again * chore: refactor the code and remove unwanted code snippets and clean up * feat: pass document id in url passed by email in document verification for guest access * fix: minor fix in guest document access removing the guest field check * feat: add guest user to be able to update the document based on roles as well as comments for the document based on the roles * fix: rewrite create comments function to handle both scenarios for guest user as well as normal user * fix: gracefully allow a guest user to register and create an account * chore: collab - temp commit * WIP: basic connecting the live collab in wraft backend * WIP: initial doc data load * chore: temporarily disable CORS for testing * fix: minor change in the url of the invite of shared document * fix: remove contract meta fields as not required * feat: add a removable users identifier to the document * feat: return role via verify document access api * feat: add versioning on saving the document along with the existing case of versioning on building the document * fix: handle rollback scenario in version_number field where on save, duplicate build integer entries can occur * fix: revert version number field to integer type * fix: content_id not being added on initial version creation * fix: minor edit in mjml template for document guest access --------- Co-authored-by: Salsabeel <k.salsabeel@gmail.com>
- Fixed default state in flows for template assets - Replaced conflicting name with incrementing name in template assets - Added `Xelax` environment variable in Docker Compose file - Enabled importing zip file from URL - Allowed accepting frame from template asset - Added pre-check validation: users can include missing wraft items - Implemented zip file validation (wraft JSON, missing folders associated with JSON fields) - Introduced frames support - Added subscription management - Implemented plan management: - Integrated Paddle for plans - Added Admin panel for managing plans - Enabled customizable plan durations - Released public template assets: - Added screenshot and description for public templates - Included Admin panel for managing public templates - Added 'Download Template' API - Added API for importing templates from public template assets
New Features - Added default pair of Wraft data templates upon organization creation. - Implemented versioned file naming based on document instance ID for generated documents. - Included author and title in the meta tags of generated documents. - Added creation of custom Wraft templates according to Wraft specification. Bug Fixes 🐛 - Resolved edge cases in unassigning user roles. Improvements - Test suite now runs seamlessly.