feat(groups): a new curated schema starts from one of curare.to's templates
"Add schema" opened the editor on the two fields every list has and left the member to build the rest. curare.to's /new page does it the other way round: a "Start a list" picker of four shapes -- links & text, discussion, catalogue, custom -- and an editor seeded from the one chosen. The button now pushes SelectCuratedSchemaTemplateScreen, that picker on a phone, and a card pushes the editor with the template's key, the same word the site takes as ?template=. Back from the editor is the picker and another shape; when a new list's proposal goes out the signing session replaces both. CuratedSchemaTemplate is lib/protocol/templates.ts field for field, with CuratedDeriveRule for the [rule:<key>] mark the site records in the identifier field's hint -- its own convention, not the NIP's, and the thing that lets that site's form derive an entry's d for a list the group starts here. The hint is written byte for byte as the site writes it; the app still composes no suggestions and applies no rule. Null or an unknown key seeds Custom, which is the bare two fields the editor opened on before, so a screen handed no template behaves as it did. The picker's one departure from the site: its cards list a template's fields by label, the way the group's schema cards do, rather than counting them -- what an entry asks for is what the choice is made on. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
272b631633
commit
8e502aa857
15 files changed
+1024
-36
No files matched your search
@@ -471,6 +471,18 @@
|
||||
<string name="edit_schema">Edit schema</string>
|
||||
<string name="propose_schema">Propose schema</string>
|
||||
<string name="fields_colon">Fields: %1$s</string>
|
||||
<!-- The template picker a new schema starts on: curare.to's "Start a list" page, with its four shapes. -->
|
||||
<string name="start_a_list">Start a list</string>
|
||||
<string name="a_list_is_a_schema_what_an_entry_may_contain">A list is a schema: what an entry may contain, who may suggest one, and where it lives. The group signs it with its shared key, and only that key can put an entry on the list.</string>
|
||||
<string name="pick_a_shape_to_start_from">Pick a shape to start from. Everything in it can be changed before the group signs.</string>
|
||||
<string name="template_links">Links & text</string>
|
||||
<string name="template_links_description">Reddit’s default: a title with a link or some text, a picture if you like, and a flair.</string>
|
||||
<string name="template_discussion">Discussion</string>
|
||||
<string name="template_discussion_description">Text posts only: a title and a body, with a flair.</string>
|
||||
<string name="template_catalogue">Catalogue</string>
|
||||
<string name="template_catalogue_description">bitcoin.mov’s shape: things with a year, a type, an external id and links — one entry per thing however often it is suggested.</string>
|
||||
<string name="template_custom">Custom</string>
|
||||
<string name="template_custom_description">Just the two fields every list has — an identifier and a title — and whatever you add.</string>
|
||||
<string name="visibility_public">Public</string>
|
||||
<string name="visibility_closed">Closed</string>
|
||||
<string name="visibility_private">Private</string>
|
||||
|
||||
Reference in new issue
Block a user