Add ability to pin posts #2039

Closed
tae wants to merge 0 commits from gitlab-mr-iid-770 into develop
Member

Closes #468

(based on #2009)

NOTE: I've removed "pinned" timeline and its polling logic. Instead, I came up with a more elegant way to filter pinned statuses from the "user" timeline.

Screenshots

Screenshot_at_Apr_24_21-39-52

Screenshot_at_Apr_24_21-39-26

Closes #468 (based on https://git.pleroma.social/pleroma/pleroma-fe/pulls/2009) **NOTE:** I've removed "pinned" timeline and its polling logic. Instead, I came up with a more elegant way to filter pinned statuses from the "user" timeline. **Screenshots** ![Screenshot_at_Apr_24_21-39-52](/attachments/fa20147d-c0aa-445d-a30f-d46b852ac2c9) ![Screenshot_at_Apr_24_21-39-26](/attachments/bcaa680b-8e31-4849-8e02-97289cc7f071)
Member

on pleroma.site, pinning posts on this branch makes a request to /undefined.

on pleroma.site, pinning posts on this branch makes a request to `/undefined`.
Author
Member

could you provide me steps to reproduce?

could you provide me steps to reproduce?
Member

write a post, go to my profile, click "pin this post"

write a post, go to my profile, click "pin this post"
Author
Member

it works great on my end. could you provide me a full URL of the request?

it works great on my end. could you provide me a full URL of the request?
Owner

can it be just text color instead?

can it be just text color instead?
Owner

i'd rather not. make error manually dismissable and clear it automatically when successful action occurs

i'd rather not. make error manually dismissable and clear it automatically when successful action occurs
Owner

should be an <a>

should be an `<a>`
Owner

same here

same here
Owner

this won't be needed if you use <a>

this won't be needed if you use `<a>`
Owner

woudln't it be better to just use result of fetching fetchPinnedStatuses?

woudln't it be better to just use result of fetching `fetchPinnedStatuses`?
Owner

can't you read pinned property from the status itself?

can't you read pinned property from the status itself?
Owner

i feel that "Pinned" label should actually be left aligned.

i feel that "Pinned" label should actually be left aligned.
Member

https://pleroma.site/undefined

`https://pleroma.site/undefined`
Member

this should be translatable

this should be translatable
Member

Typo

Typo
Member

???? why is this in the MR

???? why is this in the MR
Author
Member

Thanks for all the reviews. This MR is based on the other's previous MR and I resolved here only a few items issued in the last review. I will go through everything soon. :)

Thanks for all the reviews. This MR is based on the other's previous MR and I resolved here only a few items issued in the last review. I will go through everything soon. :)
Author
Member

yeah, normally, this is wrong. However, I suggest to include this.
The problem is that the font project is not merged automatically. In my experience, whenever we merged origin/develop into mfc/develop, we needed to generate the font again through a third-party platform which is very annoying.
It really makes life easier if we manage the font in one repo.

yeah, normally, this is wrong. However, I suggest to include this. The problem is that the font project is not merged automatically. In my experience, whenever we merged `origin/develop` into `mfc/develop`, we needed to generate the font again through a third-party platform which is very annoying. It really makes life easier if we manage the font in one repo.
Author
Member

good catch! 👍

good catch! :thumbsup:
Author
Member

it's not, because there can be more pinned statuses by polling user timeline or pinned state can be changed by user action.

it's not, because there can be more pinned statuses by polling user timeline or `pinned` state can be changed by user action.
Author
Member

I agree. 👍

I agree. :thumbsup:
Author
Member

could you test again? 😄

could you test again? :smile:
Member

still doing an HTTP GET to https://pleroma.site/undefined when I click the pin post option.

still doing an HTTP GET to https://pleroma.site/undefined when I click the pin post option.
Author
Member

I've registered my account to your instance. However, I can't see the "pin" button. Could you deploy, so I can test the "pin" feature on your instance?

I've registered my account to your instance. However, I can't see the "pin" button. Could you deploy, so I can test the "pin" feature on your instance?
Member

it is deployed. you can only pin your own statuses.

it is deployed. you can only pin your own statuses.
Author
Member

could you update your instance with the latest changes?

could you update your instance with the latest changes?
Owner

Then filter over first/last 20 elements? This could get laggy when loading timeline deeper and deeper

Then filter over first/last 20 elements? This could get laggy when loading timeline deeper and deeper
Owner

i vote against this. There's no need to keep in sync with all the forks, might as well just pull all the icons there are to avoid any possible conflicts.

i vote against this. There's no need to keep in sync with all the forks, might as well just pull all the icons there are to avoid any possible conflicts.
Author
Member

removed

removed
Author
Member

refactored using an entity of user object

refactored using an entity of user object
Owner

Might be better on the left, but not sure. I don't think it matters too much especially for the first version

Might be better on the left, but not sure. I don't think it matters too much especially for the first version
Owner

It works and looks fine for me

It works and looks fine for me
Owner

still relevant @kaniini ?

still relevant @kaniini ?
Member

current version is working well.

current version is working well.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma-fe!2039
No description provided.