]> cat aescling's git repositories - mastodon.git/commit
Add user notes on accounts (#14148)
authorThibG <thib@sitedethib.com>
Tue, 30 Jun 2020 17:19:50 +0000 (19:19 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2020 17:19:50 +0000 (19:19 +0200)
commit65506bac3f3fe233b5b7b3241020bd74eb5c9259
tree54b590e3d00fee936792d68f2932fa0d807ab980
parentce9ae9aa50cab4de4db5c06f54f4f95d736d68c6
Add user notes on accounts (#14148)

* Add UserNote model

* Add UI for user notes

* Put comment in relationships entity

* Add API to create user notes

* Copy user notes to new account when receiving a Move activity

* Address some of the review remarks

* Replace modal by inline edition

* Please CodeClimate

* Button design changes

* Change design again

* Cancel note edition when pressing Escape

* Fixes

* Tweak design again

* Move “Add note” item, and allow users to add notes to themselves

* Rename UserNote into AccountNote, rename “comment” Relationship attribute to “note”
22 files changed:
app/controllers/api/v1/accounts/notes_controller.rb [new file with mode: 0644]
app/javascript/mastodon/actions/account_notes.js [new file with mode: 0644]
app/javascript/mastodon/features/account/components/account_note.js [new file with mode: 0644]
app/javascript/mastodon/features/account/components/header.js
app/javascript/mastodon/features/account/containers/account_note_container.js [new file with mode: 0644]
app/javascript/mastodon/features/account_timeline/components/header.js
app/javascript/mastodon/features/account_timeline/containers/header_container.js
app/javascript/mastodon/reducers/account_notes.js [new file with mode: 0644]
app/javascript/mastodon/reducers/index.js
app/javascript/mastodon/reducers/relationships.js
app/javascript/styles/mastodon/components.scss
app/models/account_note.rb [new file with mode: 0644]
app/models/concerns/account_interactions.rb
app/presenters/account_relationships_presenter.rb
app/serializers/rest/relationship_serializer.rb
app/workers/move_worker.rb
config/locales/en.yml
config/routes.rb
db/migrate/20200628133322_create_account_notes.rb [new file with mode: 0644]
db/schema.rb
spec/fabricators/account_note_fabricator.rb [new file with mode: 0644]
spec/workers/move_worker_spec.rb