2022-07-26 20:10:00 +01:00
|
|
|
export const AttachmentValidation = {
|
|
|
|
/** The limited allowable mime-types for user and team avatars */
|
|
|
|
avatarContentTypes: ["image/jpg", "image/jpeg", "image/png"],
|
|
|
|
|
|
|
|
/** Image mime-types commonly supported by modern browsers */
|
|
|
|
imageContentTypes: [
|
|
|
|
"image/jpg",
|
|
|
|
"image/jpeg",
|
|
|
|
"image/pjpeg",
|
|
|
|
"image/png",
|
|
|
|
"image/apng",
|
|
|
|
"image/avif",
|
|
|
|
"image/gif",
|
|
|
|
"image/webp",
|
|
|
|
"image/svg",
|
|
|
|
"image/svg+xml",
|
|
|
|
"image/bmp",
|
|
|
|
"image/tiff",
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
2024-06-05 07:13:35 -04:00
|
|
|
export const ApiKeyValidation = {
|
|
|
|
/** The minimum length of the API key name */
|
|
|
|
minNameLength: 3,
|
|
|
|
/** The maximum length of the API key name */
|
|
|
|
maxNameLength: 255,
|
|
|
|
};
|
|
|
|
|
2022-07-24 09:37:20 +01:00
|
|
|
export const CollectionValidation = {
|
2022-07-24 13:40:04 +01:00
|
|
|
/** The maximum length of the collection description */
|
2023-10-15 16:05:25 -04:00
|
|
|
maxDescriptionLength: 10 * 1000,
|
2022-07-24 13:40:04 +01:00
|
|
|
|
|
|
|
/** The maximum length of the collection name */
|
|
|
|
maxNameLength: 100,
|
|
|
|
};
|
|
|
|
|
feat: Comments (#4911)
* Comment model
* Framework, model, policy, presenter, api endpoint etc
* Iteration, first pass of UI
* fixes, refactors
* Comment commands
* comment socket support
* typing indicators
* comment component, styling
* wip
* right sidebar resize
* fix: CMD+Enter submit
* Add usePersistedState
fix: Main page scrolling on comment highlight
* drafts
* Typing indicator
* refactor
* policies
* Click thread to highlight
Improve comment timestamps
* padding
* Comment menu v1
* Change comments to use editor
* Basic comment editing
* fix: Hide commenting button when disabled at team level
* Enable opening sidebar without mark
* Move selected comment to location state
* Add comment delete confirmation
* Add comment count to document meta
* fix: Comment sidebar togglable
Add copy link to comment
* stash
* Restore History changes
* Refactor right sidebar to allow for comment animation
* Update to new router best practices
* stash
* Various improvements
* stash
* Handle click outside
* Fix incorrect placeholder in input
fix: Input box appearing on other sessions erroneously
* stash
* fix: Don't leave orphaned child comments
* styling
* stash
* Enable comment toggling again
* Edit styling, merge conflicts
* fix: Cannot navigate from insights to comments
* Remove draft comment mark on click outside
* Fix: Empty comment sidebar, tsc
* Remove public toggle
* fix: All comments are recessed
fix: Comments should not be printed
* fix: Associated mark should be removed on comment delete
* Revert unused changes
* Empty state, basic RTL support
* Create dont toggle comment mark
* Make it feel more snappy
* Highlight active comment in text
* fix animation
* RTL support
* Add reply CTA
* Translations
2023-02-25 15:03:05 -05:00
|
|
|
export const CommentValidation = {
|
|
|
|
/** The maximum length of a comment */
|
|
|
|
maxLength: 1000,
|
|
|
|
};
|
|
|
|
|
2022-07-24 13:40:04 +01:00
|
|
|
export const DocumentValidation = {
|
|
|
|
/** The maximum length of the document title */
|
|
|
|
maxTitleLength: 100,
|
2022-08-16 09:35:17 +02:00
|
|
|
|
2024-02-16 13:25:17 -05:00
|
|
|
/** The maximum length of the document summary */
|
|
|
|
maxSummaryLength: 1000,
|
|
|
|
|
2022-08-16 09:35:17 +02:00
|
|
|
/** The maximum size of the collaborative document state */
|
2022-08-16 10:27:55 +02:00
|
|
|
maxStateLength: 1500 * 1024,
|
2022-07-24 13:40:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
export const PinValidation = {
|
|
|
|
/** The maximum number of pinned documents on an individual collection or home screen */
|
|
|
|
max: 8,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const TeamValidation = {
|
2024-02-21 18:09:40 -05:00
|
|
|
/** The maximum number of domains per team on cloud hosted */
|
2022-07-24 13:40:04 +01:00
|
|
|
maxDomains: 10,
|
2022-07-24 09:37:20 +01:00
|
|
|
};
|
2022-08-08 10:58:47 +02:00
|
|
|
|
2022-08-08 11:02:37 +02:00
|
|
|
export const UserValidation = {
|
|
|
|
/** The maximum number of invites per request */
|
|
|
|
maxInvitesPerRequest: 20,
|
|
|
|
};
|
|
|
|
|
2022-08-08 10:58:47 +02:00
|
|
|
export const WebhookSubscriptionValidation = {
|
|
|
|
/** The maximum number of webhooks per team */
|
|
|
|
maxSubscriptions: 10,
|
|
|
|
};
|