Add private note field to user profile #9

Merged
floatingghost merged 5 commits from nbsp/pleroma-fe:notes into develop 2022-06-23 14:33:19 +00:00
Contributor

again, something that's in the api thanks to mastodon but just isn't added in

one problem: this sends a fuck ton of API requests. one on each keystroke. I could add a save button but that's u g l y and i want it to just save whatever's there, but if there's no easy way to do that without sending that many requests i'll just add a button

didn't add any tests because there weren't any to add; no mutations were changed

again, something that's in the api thanks to mastodon but just isn't added in one problem: this sends a fuck ton of API requests. one on each keystroke. I could add a save button but that's u g l y and i want it to just save whatever's there, but if there's no easy way to do that without sending that many requests i'll just add a button didn't add any tests because there weren't any to add; no mutations were changed
nbsp force-pushed notes from 1c0ed32b6f to 9923ff587b 2022-06-22 16:15:27 +00:00 Compare
nbsp added 1 commit 2022-06-22 16:43:31 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
fb2fc686b1
Add debounce to API request
Author
Contributor

hm, maybe this should be togglable

hm, maybe this should be togglable

hm given that it's standard functionality it's ok not being togglable

the keystroke thing is annoying but search works the same way so it's cool

i'll try it out and see how it works

hm given that it's standard functionality it's ok not being togglable the keystroke thing is annoying but search works the same way so it's cool i'll try it out and see how it works
Author
Contributor

i fixed the keystrokes, it's debounced so it only triggers if there's been a 1.5s delay without being called again

i fixed the keystrokes, it's debounced so it only triggers if there's been a 1.5s delay without being called again
floatingghost reviewed 2022-06-23 10:37:41 +00:00
floatingghost left a comment
Owner

hm, the debounce works, but given that there's no feedback as to whether the save has gone through yet, you can refresh the page and lose your note if you do it too fast

could probably have a little loading-spinner until debounce fires?

hm, the debounce works, but given that there's no feedback as to whether the save has gone through yet, you can refresh the page and lose your note if you do it too fast could probably have a little `loading-spinner` until debounce fires?
@ -311,3 +312,3 @@
const fetchUser = ({ id, credentials }) => {
let url = `${MASTODON_USER_URL}/${id}`
let url = `${MASTODON_USER_URL}/${id}` + '?with_relationships=true'

this can be a const, and you can bring the with_relationships inside the template string

this can be a `const`, and you can bring the `with_relationships` inside the template string
Author
Contributor

MASTODON_USER_URL isn't used anywhere else, so I added with_relationships to it directly
also made it into a function like all the others

`MASTODON_USER_URL` isn't used anywhere else, so I added `with_relationships` to it directly also made it into a function like all the others
nbsp marked this conversation as resolved
nbsp added 3 commits 2022-06-23 12:05:52 +00:00

that works pretty nicely now, coolio

that works pretty nicely now, coolio
floatingghost merged commit c71405ccad into develop 2022-06-23 14:33:19 +00:00
nbsp deleted branch notes 2022-06-23 14:39:05 +00:00
Sign in to join this conversation.
No description provided.