* feat: support user preferences
* feat: support team preferences
* fix: update snapshots
* feat: update last visited url by user
* fix: update snapshots
* fix: use path instead of complete url
* fix: do not expose preferences to other users with the exception of admin
* feat: support defaultDocumentStatus as a team preference
* feat: allow edit even when collaborative editing is enabled
* Revert "feat: allow edit even when collaborative editing is enabled"
This reverts commit a22a02a406d01eb418dab32249b8b846bf77c59b.
* Revert "feat: support defaultDocumentStatus as a team preference"
This reverts commit 4928cffe5c682952b1e469a3e50a1a34d05dcc58.
* fix: keep preference as a boolean
* Index emails migration
* feat: Add available teams to auth.info endpoint
* test
* separate presenter
* Include data from sessions cookie, include likely logged in state
* test
* test: Add test for team only in session cookie
* Suggested query change in PR feedback
* tidy
* Add title to HTML export
* fix: Add compatability for documents without collab state
* Add HTML download option to UI
* docs
* fix nodes that required document to render
* Refactor to allow for styling of HTML export
* div>article for easier programatic content extraction
* Allow DocumentHelper to be used with Revisions
* Add revisions.diff endpoint, first version
* Allow arbitrary revisions to be compared
* test
* HTML driven revision viewer
* fix: Dark mode styles for document diffs
* Add revision restore button to header
* test
* Support RTL languages in revision history viewer
* fix: RTL support
Remove unneccessary API requests
* Prefetch revision data
* Animate history sidebar
* fix: Cannot toggle history from timestamp
fix: Animation on each revision click
* Clarify currently editing history item
* tidy
* Add title to HTML export
* fix: Add compatability for documents without collab state
* Add HTML download option to UI
* docs
* fix nodes that required document to render
* Refactor to allow for styling of HTML export
* div>article for easier programatic content extraction
* Improving the urls utils to not break dynamic protocols and testing the utils
Signed-off-by: iifawzi <iifawzie@gmail.com>
* Adding a list of blocked protocols
Signed-off-by: iifawzi <iifawzie@gmail.com>
* Update the way of sanitizing blocked protocols
Signed-off-by: iifawzi <iifawzie@gmail.com>
* Update shared/utils/urls.ts
Javascript pseudo protocol does not require the //
Co-authored-by: Tom Moor <tom.moor@gmail.com>
* updating the javascript protocol sanitizing tests
Signed-off-by: iifawzi <iifawzie@gmail.com>
* Update shared/utils/urls.test.ts
Co-authored-by: Apoorv Mishra <apoorvmishra101092@gmail.com>
* Update shared/utils/urls.ts
Co-authored-by: Apoorv Mishra <apoorvmishra101092@gmail.com>
* Using toBe instead of toEqual in tests
Signed-off-by: iifawzi <iifawzie@gmail.com>
* Sanitizing data: and vbscript:
Signed-off-by: iifawzi <iifawzie@gmail.com>
* Using toBeUndefined instead of toEqual in tests
Signed-off-by: iifawzi <iifawzie@gmail.com>
* Using URL to check the protocols
Signed-off-by: iifawzi <iifawzie@gmail.com>
* Allowing sms, fax, and tel protocols
Signed-off-by: iifawzi <iifawzie@gmail.com>
* Update shared/utils/urls.ts
inlining the protocols in the same file
Co-authored-by: Tom Moor <tom.moor@gmail.com>
* removing unused protocols constant
Signed-off-by: iifawzi <iifawzie@gmail.com>
Signed-off-by: iifawzi <iifawzie@gmail.com>
Co-authored-by: Tom Moor <tom.moor@gmail.com>
Co-authored-by: Apoorv Mishra <apoorvmishra101092@gmail.com>
* feat: add needed columns for throttling notifs
* feat: update model
* feat: deliver only one notif in a 12 hour window
* fix: address review comments
* prevent retry if notification update fails
* fix type compatibility instead of circumventing it
* add index for emailedAt
* fix: add metadata attr to EmailProps
* chore: decouple metadata from EmailProps
* chore: add test
* chore: revert sending metadata in props