147 Commits

Author SHA1 Message Date
Tom Moor
07a941a65d
Websocket Support (#937)
* 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
2019-04-17 19:11:23 -07:00
Tom Moor
c1256c61aa
Search archived documents (#932)
* POC

* Improved styling

* Test
2019-04-09 09:20:30 -07:00
Tom Moor
763f57a3dc
Move document improvements (#927)
* Show all collections in UI

* Introduce command pattern

* Actually remove from previous collection

* Stash

* Fixes: Promises resolved outside of response lifecycle

* 💚

* 💚

* documentMover tests

* Transaction

* Perf. More in transactions
2019-04-08 21:25:13 -07:00
Tom Moor
642c11ff7d
Document Archive (#921)
* WIP: Archive

* WIP

* Finishing up archive endpoints

* WIP

* Update docs

* Flow

* Stash

* Add toast message confirmations

* Redirect handling, fixed publishhing info for archived docs

* Redirect to collection instead of home, remove unused pub info

* Account for deleted parent

* Trash -> Archive
Allow reading of archived docs

* Dont overload deletedAt

* Fixes

* 💚

* ParentDocumentId wipe for unarchived sub docs

* Fix: CMD+S exits editing
Fix: Duplicate user name on published but unedited docs

* Improve jank on paginated lists

* Prevent editing when archived

* 💚
Separate lint / flow steps
2019-04-06 16:20:27 -07:00
Tom Moor
c78bf3c4bf
Display document views (#849)
* 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
2019-01-08 22:49:20 -08:00
Tom Moor
8c02b0028c
Collection Permissions (#829)
see https://github.com/outline/outline/issues/668
2019-01-05 13:37:33 -08:00
Tom Moor
67cd250316 Remove diff summary from document history sidebar.
Cause of occassional memory leaks and downtime :(
2018-11-23 11:12:14 -08:00
Tom Moor
d0bee23432
Version History (#768)
* Stash. Super rough progress

* Stash

* 'h' how toggles history panel
Add documents.restore endpoint

* Add tests for documents.restore endpoint

* Document restore endpoint

* Tiding, RevisionMenu, remove scroll dep

* Add history menu item

* Paginate loading

* Fixed: Error boundary styling
Select first revision faster

* Diff summary, styling

* Add history loading placeholder
Fix move modal not opening

* Fixes: Refreshing page on specific revision

* documentation for document.revision

* Better handle versions with no text changes (will no longer be created)
2018-09-29 21:24:07 -07:00
Tom Moor
d308442fef Refactor, paginate on scroll
New PaginatedDocumentList component
2018-08-10 23:03:47 -07:00
Tom Moor
266b4d735c Tidy, tidy 2018-08-10 00:11:58 -07:00
Tom Moor
18cfe26e83 Migrate atlasId -> collectionId 2018-08-07 23:23:26 -07:00
Tom Moor
e192bcbaee Improves ordering of search results
Modifies documents.search to return a context snippet and search ranking
Displays context snipped on search results screen
2018-08-04 18:32:56 -07:00
Tom Moor
ae502c10c9
Revoked share links (#664)
* Move to revokation API for share links

* Respect revoked share links
Add documentation for shares endpoints

* 💚
2018-06-16 12:36:25 -07:00
Tom Moor
ddd2b82d20 WIP: Successful Google Auth, broke pretty much everything else in the process 2018-05-28 11:36:37 -07:00
Tom Moor
6662e2666d Handle non-existent shareId 2018-05-26 11:23:21 -07:00
Tom Moor
e2144051df Fixed returning sensitive data in documents.info 2018-05-24 22:15:36 -07:00
Tom Moor
e538df0df3 Filter private info from public shares 2018-05-23 23:59:00 -07:00
Tom Moor
b40b77b228 Merge branch 'master' into share-links 2018-05-22 21:27:45 -07:00
Tom Moor
d557ef96ac Fixes #649 – cant delete a draft document that has had its collection previously removed 2018-05-19 15:38:08 -07:00
Tom Moor
187c2dcb27 Working share link loading (plenty of restrictions still to put in place) 2018-05-16 23:52:26 -07:00
Tom Moor
500d039856 Retrieve documents using shareId 2018-05-13 13:26:06 -07:00
Tom Moor
67f2b3cce4 API endpoint accepts autosave 2018-05-06 22:13:52 -07:00
Tom Moor
518015f55b Upgrade to Flow 0.71 2018-05-05 16:16:08 -07:00
Tom Moor
44cb509ebf
Post to Slack (#603)
* Migrations

* WIP: Integration model, slack perms / hooks

* So so rough it pains me. Building this new model is revealing just how much needs to be refactored

* Working connect and post

* Cleanup UI, upating documents

* Show when slack command is connected

* stash

* 💚

* Add documents.update trigger

* Authorization, tidying

* Fixed integration policy

* pick integration presenter keys
2018-04-03 20:36:25 -07:00
Tom Moor
18b0338736
Pinned documents (#608)
* 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
2018-02-28 23:28:36 -08:00
Tom Moor
c80ae1bdd6 Fixes: Document not added to structure
Cache key bump
2018-02-28 23:21:29 -08:00
Tom Moor
9142d975df
Draft Documents (#518)
* 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
2018-02-27 22:41:12 -08:00
Tom Moor
f3c7fb8bc6 Fixes #593 2018-02-24 20:44:13 -08:00
Tom Moor
7a0aa0ecf8 Add additional future-proofing auth checks for creation 2018-02-18 11:08:43 -08:00
Tom Moor
2f81eb5e87 Added more structure and tests to our authorization code 2018-02-18 00:11:48 -08:00
Jori Lallo
c92697a8a8
Revert "Renamed Document#atlasId finally" 2018-02-07 11:32:18 -08:00
Jori Lallo
f08b3e0ac5 Renamed Document#atlasId finally 2018-02-07 00:04:39 -08:00
Jori Lallo
b93ccf5fcc
Check for parent document existance (#567) 2018-02-04 23:43:43 -08:00
Jori Lallo
5df2983ef6 Search improvements 2017-12-03 16:50:50 -08:00
Tom Moor
98f317c74a Prevents accidental overwriting of another users work 2017-11-25 13:04:54 -08:00
Tom Moor
7945abbe54 Added documents.list endpoint to documentation (fixed some bad formatting)
Updated collection parameter
Increased fetch to 10 records, 5 looks dumb on larger screens
2017-11-22 18:40:37 -08:00
Tom Moor
eb8b12d327 Working recently edited list 2017-11-19 21:32:18 -08:00
Jori Lallo
36d46533b6 Added simple revisions API 2017-10-16 22:36:44 -07:00
Jori Lallo
dd0588d760 Several fixes + refactor to Collection methods 2017-10-09 00:05:15 -07:00
Jori Lallo
ccec69d431 Final fixes to document move 2017-10-01 23:42:17 -07:00
Tom Moor
229cd3271a Fixes: 500 error when attempting to load a deleted document from view 2017-09-13 23:04:58 -07:00
Jori Lallo
483bf29cc4 Workable document moving 2017-09-12 22:58:33 -07:00
Jori Lallo
ce5b6e6ac8 Return updated collection on document move 2017-09-12 00:11:53 -07:00
Jori Lallo
917c5c4923 Return updated collection on document create 2017-09-12 00:10:02 -07:00
Tom Moor
ca35cee841 Move star out of editor into documentpreview (#174)
* Move star out of editor into documentpreview

* 💚
2017-08-02 20:45:09 -07:00
Tom Moor
e6938ee06f
Resilient to collection or document not existing 2017-07-23 15:26:00 -07:00
Tom Moor
3b2ad193d5 DocumentPreview Improves (#141)
* 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
2017-07-16 09:24:45 -07:00
Tom Moor
66e4995885
💚 ? 2017-07-15 16:08:12 -07:00
Tom Moor
2a9efaba8f
Fix new document creation. Add collection name to DocumentPreview in search results 2017-07-14 22:15:56 -07:00
Jori Lallo
b4c4a5d64c Remove useless include 2017-07-09 20:32:38 -07:00