altstoreio / AltStore

AltStore is an alternative app store for non-jailbroken iOS devices.
https://altstore.io
GNU Affero General Public License v3.0
11.8k stars 899 forks source link

Custom "pre-release" label #212

Open sodiboo opened 4 years ago

sodiboo commented 4 years ago

So you know that beta attribute an app has in a repo? I'd like to suggest that instead of it being just "beta": <bool>, it could be something like "pre-release": <string>, and you could put what you want to be in the orange label next to it whatever you want

i.e. "pre-release": "ALPHA" would show up as alpha in an orange label next to the app name, instead of what you'd have to do instead atm of "name": "<name> (Alpha)"

This would also replace "beta": true, with "pre-release": "BETA" (since the beta label is in capitals) - however as a means for backwards compatibility "beta": true could also just be interpreted as "pre-release": "BETA" if no pre-release attribute was set

noah978 commented 4 years ago

Actually this is something similar to a planned feature. The goal is that you will actually be able to specify exactly what text you want in the bubble. Possibly able to specify the color too.

noah978 commented 4 years ago

I'd also recommend checking out my AltStore Documention to see the current features and some of my ideas for new AltStore Source features.

sodiboo commented 4 years ago

Oh, nice - Is this being worked on currently? I’m (attempting to) do this myself but if someone else is working on it that wouldn’t be necessary

I’ve also thought a little and i think a better name for this would be “branch”, something i thought of after seeing what names would fit nicely with the source code names already there

sodiboo commented 4 years ago

wait why is the beta badge an image that makes my job super hard i give up i'm not gonna create a completely new beta badge with customizable text

sodiboo commented 4 years ago

Anyway i've created like a base for it, so far i'm not sure at all of the stability but it's a start: https://github.com/Terrain2/AltStore/commit/7b680ea222667c1fa528a81fbb7456483485a554 Right now i'm really tired and cant be bothered to troubleshoot, so i'll probably continue tomorrow i did /not/ redesign the badge or even put any text there, someone else please do that because i have no idea how and i'm scared i'll screw up the whole thing if i mess with the UI

sodiboo commented 4 years ago

Alrighty so right now i have more or less the exact same behaviour as previously, but the attribute branch holds a branch name that should be displayed in the UI - Could someone else do this because i absolutely suck at UI?

I also fixed #222