Skip to content

Conversation

DavidSM100
Copy link

@DavidSM100 DavidSM100 commented Sep 2, 2025

This PR would allow users to pin apps to the top of the list locally, for easy access of each user most used apps, pretty useful since there is a lot of apps in the store and searching for the one you need every time is very annoying.

Screenshot showing a pinned app (poll):
15935


// without a trailing slash
const xdcget_export = "https://apps.testrun.org";
const pinSvg = html`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg>`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where does this icon come from?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the license text is required.

https://lucide.dev/license

Comment on lines 157 to 160
.sort(
(a, b) =>
Number(isPinned(b.item.app_id)) - Number(isPinned(a.item.app_id))
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this sort can be merged with the previous sort instead of sorting two times

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@WofWca
Copy link
Member

WofWca commented Sep 3, 2025

Have you checked whether this works on Android / iOS?

@DavidSM100
Copy link
Author

Have you checked whether this works on Android / iOS?

You mean inside DC? Yes, only Android.
Why? Does it not work for you somewhere?

@WofWca
Copy link
Member

WofWca commented Sep 3, 2025

Why? Does it not work for you somewhere?

No, I haven't tried. I'm just making sure that the intended effect will be achieved.

Edit: FYI this won't affect Delta Chat desktop, because there we have a custom UI.

@DavidSM100
Copy link
Author

DavidSM100 commented Sep 3, 2025

No, I haven't tried. I'm just making sure that the intended effect will be achieved.

Edit: FYI this won't affect Delta Chat desktop, because there we have a custom UI.

I see, I was thinking it was using the same web app, that explains why I could not find a way to change the web app URL LOL.

@hpk42
Copy link
Contributor

hpk42 commented Sep 3, 2025

Please provide a description in the PR summary of what the PR does -- i assume it means each user can pin some apps for themselves, on their own device? What's the reasoning/discussion behind this?

@DavidSM100
Copy link
Author

Please provide a description in the PR summary of what the PR does -- i assume it means each user can pin some apps for themselves, on their own device?

That's right, I added a description.

@r10s
Copy link
Contributor

r10s commented Sep 4, 2025

thanks a lot for the idea!

however, some of us, me included, we were thinking about "pinned apps" more as "featured apps" that are flagged as such in xdcget.ini - having some user state and sorting mixed in can make store improvements harder. also, there is desktop, where this "pinning" would not work and would cause immediate feature request and subsequent workload. and then there is multidevice, which is not targeted and cannot be easily.

just want to bring that up, tbh, i did not thought much about that yet - quite some devs are in holiday or about to have holidays, or busy with other things, this slows things down ... :)

@DavidSM100
Copy link
Author

DavidSM100 commented Sep 4, 2025

OK, thanks for explaining, feel free to close the PR if that's the final decision.

FWIW I don't think featured apps in the xdcget.ini is a great solution, I mean who decides what's featured and what not? Even for clear options like a poll app, there are like 3 poll apps in the store, which one will be featured? or will all 3 be featured?. And even so what is useful for one user might not be useful for another, that's why I thought every user should have the choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants