this repo has no description

sort labels by app name

Changed files
+17 -15
+17 -15
genlabeldefs.py
··· 2 2 3 3 import json 4 4 5 - collections = [ 6 - ('app-popsky', 'Popsky', 'pop culture hub (app.popsky.*)'), 7 - ('com-shinolabs-pinksea', 'PinkSea', 'oekaki on atproto (com.shinolabs.pinksea.*)'), 8 - ('com-whtwnd', 'WhiteWind', 'markdown blog service (com.whtwnd.*)'), 9 - ('events-smokesignal', 'Smoke Signal', 'manage events and RSVPs (events.smokesignal.*)'), 10 - ('fm-teal', 'teal.fm', 'your music, beautifully tracked (fm.teal.*)'), 11 - ('fyi-unravel-frontpage', 'Frontpage', 'a decentralised and federated link aggregator (fyi.unravel.frontpage.*)'), 12 - ('im-flushing', 'Flushes', 'The Decentralized Toilet Network of Planet Earth & Simulation 12B (im.flushing.*)'), 13 - ('place-stream', 'Streamplace', 'live video on the AT Protocol (place.stream.*)'), 14 - ('sh-tangled', 'Tangled', 'tightly-knit social coding (sh.tangled.*)'), 15 - ('so-sprk', 'Spark', 'short-form video/photo app (so.sprk.*)'), 16 - ('xyz-statusphere', 'Statusphere', 'atproto quick start (xyz.statusphere.*)'), 17 - ] 5 + collections = { 6 + 'Popsky': ('app-popsky', 'pop culture hub'), 7 + 'PinkSea': ('com-shinolabs-pinksea', 'oekaki on atproto'), 8 + 'WhiteWind': ('com-whtwnd', 'markdown blog service'), 9 + 'Smoke Signal': ('events-smokesignal', 'manage events and RSVPs'), 10 + 'teal.fm': ('fm-teal', 'your music, beautifully tracked'), 11 + 'Frontpage': ('fyi-unravel-frontpage', 'a decentralised and federated link aggregator'), 12 + 'Flushes': ('im-flushing', 'The Decentralized Toilet Network of Planet Earth & Simulation 12B'), 13 + 'Streamplace': ('place-stream', 'live video on the AT Protocol'), 14 + 'Tangled': ('sh-tangled', 'tightly-knit social coding'), 15 + 'Spark': ('so-sprk', 'short-form video/photo app'), 16 + 'Statusphere': ('xyz-statusphere', 'atproto quick start'), 17 + } 18 18 19 19 values = [] 20 20 defs = [] 21 21 22 - for (identifier, name, description) in collections: 22 + key_func = lambda obj: str.casefold(obj[0]) 23 + for name, (identifier, description) in sorted(collections.items(), key=key_func): 24 + nsid = identifier.replace('-', '.') 23 25 values.append(identifier) 24 26 defs.append(dict( 25 27 blurs = 'none', ··· 30 32 locales = [dict( 31 33 lang = 'en', 32 34 name = name, 33 - description = description, 35 + description = f'{description} ({nsid}.*)', 34 36 )], 35 37 )) 36 38