Add private note field to user profile #9
No reviewers
Labels
No labels
a11y
Bug
Bug fix
Critical Priority
Documentation
Feature
Feature request
Held for next release cycle
High Priority
Low Priority
Medium Priority
Minor change
Translation/Locale
WIP
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma-fe#9
Loading…
Reference in a new issue
No description provided.
Delete branch ":notes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
1c0ed32b6f
to9923ff587b
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
i fixed the keystrokes, it's debounced so it only triggers if there's been a 1.5s delay without being called again
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 thewith_relationships
inside the template stringMASTODON_USER_URL
isn't used anywhere else, so I addedwith_relationships
to it directlyalso made it into a function like all the others
that works pretty nicely now, coolio