Tom Moor
ec38f5d79c
refactor: Remove old react lifecycle methods ( #1480 )
...
* refactor: Remove deprecated APIs
* bump mobx-react for hooks support
* inject -> useStores
https://mobx-react.js.org/recipes-migration\#hooks-to-the-rescue
* chore: React rules of hooks lint
2020-08-23 11:51:56 -07:00
Tom Moor
df9b0bcf91
fix: Websocket reconnect when navigating from settings -> home
2020-08-14 17:47:12 -07:00
Tom Moor
e2bd03494d
chore: Update syntax, improve more typing ( #1439 )
...
* chore: <React.Fragment> to <>
* flow types
2020-08-09 09:48:04 -07:00
Tom Moor
449dc55aaa
chore: Upgrade Babel, Jest, Eslint ( #1437 )
...
* chore: Upgrade Prettier 1.8 -> 2.0
* chore: Upgrade Babel 6 -> 7
* chore: Upgrade eslint plugins
* chore: Add eslint import/order rules
* chore: Update flow-typed deps
2020-08-08 22:53:59 -07:00
Tom Moor
e312b264a6
chore: Upgrade Prettier 1.8 -> 2.0 ( #1436 )
2020-08-08 18:53:11 -07:00
Tom Moor
943a290b83
chore: Update flow just far enough to get hooks libdefs ( #1348 )
2020-07-13 20:23:15 -07:00
Tom Moor
5cb04d7ac1
New login screen ( #1331 )
...
* wip
* feat: first draft of auth.config
* chore: auth methodS
* chore: styling
* styling, styling, styling
* feat: Auth notices
* chore: Remove server-rendered pages, move shared/components -> components
* lint
* cleanup
* cleanup
* fix: Remove unused component
* fix: Ensure env variables in prod too
* style tweaks
* fix: Entering SSO email into login form fails
fix: Tweak language around guest signin
2020-07-09 22:33:07 -07:00
Tom Moor
9be5597f4b
chore: Lint shared directory
2020-06-22 21:29:21 -07:00
Tom Moor
f43deb7940
chore: Move to prettier standard double quotes ( #1309 )
2020-06-20 13:59:15 -07:00
Tom Moor
64c3ff8d6b
chore: Remove 'DEPLOYMENT' env option
...
Add 'Installation' section
2020-06-19 19:11:02 -07:00
Tom Moor
d864e228e7
feat: Collection Icons ( #1281 )
...
* wip: Working for creation, and display
* feat: IconPicker
* fix
* feat: Invert collection icon color when dark in dark mode
* Improve readability of dropdown menus in dark mode
Suggest icon based on collection name
* Add additional icons
Tweaks and final polish
* fix: Write default icon as empty icon column
* feat: Improve icon selection logic
add more keywords
Improve icon coloring when selected and in dark mode
* lint
* lint
2020-06-19 17:18:03 -07:00
Tom Moor
ccedea55d6
chore: Reduce loading jank in sidebar ( #1294 )
2020-05-30 12:50:08 -07:00
Tom Moor
a281b1e5be
fix: Documents with empty titles (hey, it can happen) are invisible in the sidebar)
2020-05-24 22:43:54 -07:00
Tom Moor
9274005cbb
feat: Upgrade editor ( #1227 )
...
* WIP
* document migration
* fix: Handle clashing keyboard events
* fix: convert getSummary
* fix: parseDocumentIds
* lint
* fix: Remove unused plugin
* Move editor version to header
Add editor version check for API endpoints
* fix: Editor update auto-reload
Bump RME
* test
* bump rme
* Remove slate flow types, improve themeing, bump rme
* bump rme
* fix: parseDocumentIds returning duplicate ID's, improved regression tests
* test
* fix: Missing code styles
* lint
* chore: Upgrade v2 migration to use AST
* Bump RME
* Update welcome doc
* add highlight to keyboard shortcuts ref
* theming improvements
* fix: Code comments show as headings, closes #1255
* loop
* fix: TOC highlighting
* lint
* add: Automated backup of docs before migration
* Update embeds to new format
* fix: React warning
* bump to final editor version 10.0.0
* test
2020-05-19 20:39:34 -07:00
Tom Moor
9d8e99400f
fix: Various React errors in console
2020-04-05 13:27:11 -07:00
Tom Moor
d0606a72c3
feat: Improved table of contents ( #1223 )
...
* feat: New table of contents
* fix: Hide TOC in edit mode
* feat: Highlight follows scroll position
* scroll tracking
* UI
* fix: Unrelated css fix with long doc titles
* Improve responsiveness
* feat: Add keyboard shortcut access to TOC
* fix: Headings should reflect content correctly when viewing old document revision
* flow
* fix: Persist TOC choice between sessions
2020-04-05 12:22:26 -07:00
Tom Moor
c20282de06
feat: Add child document preloading
2019-12-22 17:06:39 -08:00
Tom Moor
e404955394
feat: Trash ( #1082 )
...
* wip: trash
* Enable restoration of deleted documents
* update Trash icon
* Add endpoint to trigger garbage collection
* fix: account for drafts
* fix: Archived documents should be deletable
* fix: Missing delete cascade
* bump: upgrade rich-markdown-editor
2019-11-18 18:51:32 -08:00
Tom Moor
21af0bd8be
fix: Sidebar links unexpand
...
closes #1044
2019-10-13 16:15:42 -07:00
Tom Moor
01f672fac9
fix: Drop to import
2019-10-12 23:03:58 -07:00
Mateusz Sapielak
8ea1323a7c
fix: Ensure menus are always kept on the screen ( #1036 )
...
* ensuring dropdowns fit on the screen
* refactoring
* fix flow types
* no longer fixing the elements which should resolve scrolling issues
* fix menus that should be fixed
* styled-components syntax was wrong
* account for fixed dropdowns when handling overflowing menus
* Update app/components/DropdownMenu/DropdownMenu.js
Co-Authored-By: Tom Moor <tom.moor@gmail.com>
2019-10-12 20:21:48 -07:00
Tom Moor
b42e9737b6
feat: Memberships ( #1032 )
...
* WIP
* feat: Add collection.memberships endpoint
* feat: Add ability to filter collection.memberships with query
* WIP
* Merge stashed work
* feat: Add ability to filter memberships by permission
* continued refactoring
* paginated list component
* Collection member management
* fix: Incorrect policy data sent down after collection.update
* Reduce duplication, add empty state
* cleanup
* fix: Modal close should be a real button
* fix: Allow opening edit from modal
* fix: remove unused methods
* test: fix
* Passing test suite
* Refactor
* fix: Flow UI errors
* test: Add collections.update tests
* lint
* test: moar tests
* fix: Missing scopes, more missing tests
* fix: Handle collection privacy change over socket
* fix: More membership scopes
* fix: view endpoint permissions
* fix: respond to privacy change on socket event
* policy driven menus
* fix: share endpoint policies
* chore: Use policies to drive documents UI
* alignment
* fix: Header height
* fix: Correct behavior when collection becomes private
* fix: Header height for read-only collection
* send id's over socket instead of serialized objects
* fix: Remote policy change
* fix: reduce collection fetching
* More websocket efficiencies
* fix: Document collection pinning
* fix: Restored ability to edit drafts
fix: Removed ability to star drafts
* fix: Require write permissions to pin doc to collection
* fix: Header title overlaying document actions at small screen sizes
* fix: Jank on load caused by previous commit
* fix: Double collection fetch post-publish
* fix: Hide publish button if draft is in no longer accessible collection
* fix: Always allow deleting drafts
fix: Improved handling of deleted documents
* feat: Show collections in drafts view
feat: Show more obvious 'draft' badge on documents
* fix: incorrect policies after publish to private collection
* fix: Duplicating a draft publishes it
2019-10-05 18:42:03 -07:00
Tom Moor
4164fc178c
fix: First auto-save unfocuses document ( #1046 )
...
* fix: Autosave unfocuses document
* Revert unneeded change
* test: le fix
* fix: Handle offline state
fix: Untitled documents appear with empty titles
* fix: Draft bubble roundness (yes, it doesnt belong here but see it, fix it)
2019-09-22 17:09:11 -07:00
Tom Moor
140f009b4d
fix: Improve accessibility of buttons / tab indexes with tooltips
2019-08-29 00:06:21 -07:00
Tom Moor
347015cf86
feat: improve physicality of draft bubble (it's the little details)
2019-08-24 17:43:23 -07:00
Tom Moor
929722e1c1
fix: double load on mount. closes #1015
2019-08-20 22:13:36 -07:00
Tom Moor
d024d31f66
refactor: flow typing ( #1012 )
...
* fix: padding
* fix: Minor button alignment issues
* feat: Add icon to invite people button
* WIP
2019-08-08 23:09:09 -07:00
Tom Moor
c18e4cd43e
feat: separate draft count and icon in sidebar
2019-08-05 23:17:41 -07:00
Tom Moor
a515631e21
feat: document menu available in sidebar ( #986 )
...
* feat: document menu available in sidebar
* fix: more accessible blue
* feat: accessible blue
feat: clearer new doc button
closes #983
* lint
2019-07-13 10:15:38 -07:00
Tom Moor
8f276731ed
Fixes: Socket reconnecting when changing theme
2019-04-20 15:19:35 -07:00
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
59c82f1f06
Dark Mode ( #912 )
...
closes #704
2019-03-12 21:35:35 -07:00
Tom Moor
fc7c485ba9
Add 'n' shortcut for new doc
...
Fixed cmd+enter shortcut to publish doc
Fixed keyboard shortcut display on non-mac
Fixed heading alignment
Fixed documents smaller than page should not scroll
2019-03-09 20:00:45 -08:00
Tom Moor
5525730272
Refactor history sidebar, reduce thrashing on doc render
2019-01-19 17:28:32 -08:00
Tom Moor
babcf4a3f3
More withRouter removal
2019-01-19 15:25:46 -08:00
Tom Moor
77a8f54973
Even less history passing, fix global styles warning in dev
2019-01-19 00:44:16 -08:00
Tom Moor
13501b6d76
Moving redirects to declarative method
2019-01-19 00:23:39 -08:00
Tom Moor
e6e89dc243
Added: Recently published view to collection
...
Added: Infinite scroll to collection
2019-01-07 23:14:43 -08:00
Tom Moor
a68ad856a3
Move draft bubble inline with menu icons
2019-01-06 16:25:05 -08:00
Tom Moor
b9765fb59e
Improved sidebar selected styling, simplified logic and css
2019-01-06 16:12:07 -08:00
Tom Moor
f80e4ab04c
Improved button styling
...
Added toast when collection permissions are saved
Removed usage of setState (old habits die hard)
2019-01-05 18:23:57 -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
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
cc9f32cdc9
Team switcher
2018-11-11 16:24:05 -08:00
Tom Moor
8d569fd46d
Upgrade dependencies
2018-11-06 21:58:32 -08:00
Tom Moor
2f681b1ce8
WIP: Dashboard tabs
2018-08-09 23:14:51 -07:00
Tom Moor
a75140b08c
Fixes various overflow issues, #724
2018-07-24 21:13:54 -07:00
Tom Moor
55ddd3137d
Added bubble to side of drafts in sidebar with count of pending drafts
...
Based on feedback that its not clear on initial use
2018-06-23 15:27:16 -07:00
Tom Moor
87c1d610d1
Add missing alt, add missing lang property
2018-06-16 14:00:24 -07:00
Tom Moor
434129a434
ThemeProvider ( #677 )
...
closes #655
2018-06-09 19:10:30 -07:00