* fix: Attachments should not be deleted when their original document is deleted when referenced elsewhere
* fix: Attachments deleted prematurely when docs are placed in trash
* mock
* restore hook, cascading delete was the issue
* Upgrade pg and sequelize to support node 14+
When Node 14 came out the app was incompatible, we should always have a maximum version defined here until the server code has been tested to prove compatibility
Co-authored-by: Lance Whatley <whatl3y@gmail.com>
* Migrations
* New from template
* fix: Don't allow public share of template
* chore: Template badges
* fix: Collection active
* feat: New doc button on template list item
* feat: New template menu
* fix: Sorting
* feat: Templates onboarding notice
* fix: New doc button showing on archived/deleted templates
* first pass at updating all Time components each second
* fix a couple date variable typos
* use class style state management instead of hooks
* wip: Separate title from body
* address feedback
* test: Remove unused test
* feat: You in publishing info language
fix: Removal of secondary headings
* After much deliberation… a migration is needed for this to be reliable
* fix: Export to work with new title structure
* fix: Untitled
* fix: Consistent spacing of first editor node
* fix: Emoji in title handling
* fix: Time component not updating for new props
* chore: Add createdAt case
* fix: Conflict after merging new TOC
* PR feedback
* lint
* fix: Heading level adjustment
Co-authored-by: Taylor Lapeyre <taylorlapeyre@gmail.com>
* save images as private and serve via signed url from images.info api
* download private images to directory on export
* fix lint errors
* private s3 default, AWS.s3 module level scope, default s3 url expiry
* combine regex to one, and only replace when there are matches
* fix lint
* code not needed anymore, remove
* updates after pulling master
* revert the uploadToS3FromUrl url return
* use model gettr to compact code, rename to attachments api
* basic checking of document read permission to allow attachment viewing
* fix: Continue to upload avatars as public
fix: Allow redirect for non-private attachments
* add support for publicly shared documents
* catch errors which crash the app during zip export and user creation
* add tests
* enable AWS signature v4 for s3
* switch to use factories to build models for testing
* add isDocker flag for local serving of attachment redirect url
* fix redirect tests
Co-authored-by: Tom Moor <tom.moor@gmail.com>
* Atom / RSS meta link
* Spike
* Feeling good about this spike now
* Remove document.collection
* Remove koa.ctx from all presenters to make them portable outside requests
* Remove full serialized model from events
Move events.add to controllers for now, will eventually be in commands
* collections.create event
parentDocument -> parentDocumentId
* Fix up deprecated tests
* Fixed: Doc creation
* documents.move
* Handle collection deleted
* 💚
* Authorize room join requests
* Move starred data structure
Account for documents with no context on sockets
* Add socket.io-redis
* Add WEBSOCKETS_ENABLED env variable to disable websockets entirely for self hosted
New installations will default to true, existing installations to false
* 💚 No need for promise response here
* Reload notice
* Display who has viewed a document in the header
* Add overflow, display of WHEN last viewed
Cleanup old document attributes
Add firstViewedAt, lastViewedAt to API response
* Cleanup
* Added: API documentation for views endpoints
* Include views for deleted users
* Migrations and API for pinned documents
* Documentation
* Add pin icon
* Fin.
* v0.2.0
* Remove pin from DocumentPreview, add general menu
Add Pinned documents header
* Tidy
* Fixed: Drafts appearing on collection home
* Mostly there
* Fix up specs
* Working scope, updated tests
* Don't record view on draft
* PR feedback
* Highlight drafts nav item
* Bugaboos
* Styling
* Refactoring, gradually addressing Jori feedback
* Show collection in drafts list
Flow fixes
* Ensure menu actions are hidden when draft
* Show collection name in search results
Highlight documents modified since last edited
Move views to scope
* Allow ESC key to work on Search page when input not focused
* Update document title with search query
Show loading indicator for search results
* WIP
* 💚 ?
* 💚
* Address PR feedback
* Recording document views
* Add 'views' to document response
* Basic displaying of document views, probably want it more sublte than this? But hey, lets get it in there
* Bigly improves. RESTful > RPC
* Display of who's viewed doc
* Add Popover, add Scrollable, move views store
* Working server tests 💁
* Document Stars (#81)
* Added: Starred documents
* UI is dumb but functionality works
* Star now displayed inline in title
* Optimistic rendering
* Documents Endpoints (#85)
* More seeds, documents.list endpoint
* Upgrade deprecated middleware
* document.viewers, specs
* Add documents.starred
Add request specs for star / unstar endpoints
* Basic /starred page
* Remove comment
* Fixed double layout