Commit Graph

71 Commits

Author SHA1 Message Date
Tom Moor
74515e0b19 Improve partial word matching 2019-01-07 21:44:33 -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
05fe573974 Remove duplicate documents.update hook 2018-12-08 08:59:15 -08:00
Tom Moor
8cbcb77486
Base model refactor (#810)
* Big upgrades

* WIP: Stash

* Stash, 30 flow errors left

* Downgrade mobx

* WIP

* When I understand the difference between class and instance methods

* 💚

* Fixes: File import
Model saving edge cases
pinning and starring docs
Collection editing
Upgrade mobx devtools

* Notification settings saving works

* Disabled settings

* Document mailer

* Working notifications

* Colletion created notification
Ensure not notified for own actions

* Tidy up

* Document updated event only for document creation
Add indexes
Notification setting on user creation

* Commentary

* Fixed: Notification setting on signup

* Fix document move / duplicate stale data
Add BaseModel.refresh method

* Fixes: Title in sidebar not updated after editing document

* 💚

* Improve / restore error handling
Better handle offline errors

* 👕
2018-12-04 22:24:30 -08:00
Tom Moor
6391474d14 getUrl -> url consistency
test improvements
2018-11-08 21:05:07 -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
18cfe26e83 Migrate atlasId -> collectionId 2018-08-07 23:23:26 -07:00
Tom Moor
3334d783f3 Closes #724 2018-08-06 22:22:15 -07:00
Tom Moor
fc7373a6f5 Return relevant context in search results returned to slack slash command 2018-08-05 00:34:08 -07:00
Tom Moor
71830d7c77 Further improved search result snippets 2018-08-04 22:46:55 -07:00
Tom Moor
f5a1f59290 Fix search result ordering
Add support for returning your own drafts in results
Added regression tests
2018-08-04 21:28:37 -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
22d02da2f9 Wiping more information
Ensuring documents and collections created by user still load
2018-07-10 19:47:15 -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
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
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
Tom Moor
ae4aed6fe0 Move title validation to server (#552)
closes issue-546
2018-01-31 19:23:33 -08:00
Tom Moor
f870cd88bc Slack hooks fixes and improvements
closes #533
2018-01-28 19:37:14 -08:00
Tom Moor
9d441fc51a
Webhook / Integration Event bus (#499)
* First bash at an event bus for webhooks and integrations

* Refactoring

* poc

* Revert too wide ranging changes
Move to two-queues
2018-01-13 10:46:29 -08:00
Tom Moor
32ba98bb1a
Unfurling of Slack links (#487)
* First pass: Unfurling of Slack links

* Add authentication in db

* Call associate on Event correctly

* Add SLACK_APP_ID, remove SLACK_REDIRECT_URI, tidy env sample

* PR feedback

* Comment clarify
2017-12-18 19:59:29 -08:00
Jori Lallo
36b8e49353 Fixed search ordering 2017-12-03 11:04:17 -08:00
Jori Lallo
980ad792c5 addressed comments 2017-10-31 21:55:46 -07:00
Jori Lallo
e70a8c2495 color editing 2017-10-29 23:23:16 -07:00
Jori Lallo
150771ee88 removed dependencies, html/preview 2017-10-16 23:35:56 -07:00
Tom Moor
8558b92cae Edit collection (#173)
* Collection edit modal

* Add icon

* 💚

* Oh look, some specs

* Delete collection

* Remove from collection

* Handle error responses
Protect against deleting last collection

* Fix key

* 💚

* Keyboard navigate documents list

* Add missing database constraints
2017-08-29 08:37:17 -07:00
Tom Moor
297bf850c2
Align title correctly when first character is emoji 2017-07-29 16:15:04 -07:00
Tom Moor
cfcdae8aa0
Save title emoji against document 2017-07-29 15:06:17 -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
Jori Lallo
cd584da5cf Upgrade sequelize and remove unique email constraints 2017-07-12 22:55:50 -07:00
Jori Lallo
b80fcfff6c Fixed search and added tests 2017-07-10 21:24:25 -07:00
Jori Lallo
c4b41a9e07 Fixed flow errors and small refactor 2017-07-09 11:26:17 -07:00
Jori Lallo
e82639c828 Merge pull request #110 from jorilallo/queryperf
Query Improvements
2017-07-06 23:22:16 -07:00
Tom Moor
b854c2ca53
Tidy, move recent documents to query scope 2017-07-06 22:02:55 -07:00
Tom Moor
1c83257483 Restore New Document Functionality (#94)
* Restored New Document functionality

* Declarative SidebarHidden

* Fix edit route
2017-07-04 23:02:06 -07:00
Jori Lallo
f65a5bcca2 Swapped document urls to have /doc prefix 2017-07-04 12:03:41 -05:00
Tom Moor
f90d170497
Using the magic of joins 2017-07-03 21:35:17 -07:00
Jori Lallo
29037251c0 Better document URLs 2017-07-03 13:17:29 -05:00
Tom Moor
52765d9d1d Document Viewers (#79)
* 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
2017-06-25 17:21:33 -07:00
Jori Lallo
a4dca58ae7 Fixed Collection#updateDocument 2017-06-04 22:12:36 -07:00
Jori Lallo
c229369efd Changed Collection documents to documentStructure and other WIP stuff 2017-06-04 14:40:27 -07:00
Jori Lallo
e2cf2a2fe7 Remove periods from url slugs. Fixes #15 2017-04-29 14:43:43 -07:00
Jori Lallo
08b1609440 [chore] added prettier 2017-04-26 21:47:03 -07:00
Jori Lallo
bf84f792e2 lint 2016-09-11 15:48:43 -07:00
Jori Lallo
748b3ab66b Fixed search SQL query 2016-08-22 23:49:28 -07:00
Jori Lallo
64faa241b8 debug 2016-08-22 23:43:30 -07:00