Repository navigation
feat: polls, events and votes as a page - #733
Merged
Merged
Conversation
Acting as a page, a post could not carry a poll or an event, and the
page could not vote or answer an event. A page now does what a person
does.
- account service: a page root post takes poll or event, built by the
same postRecord as a person's; options, event title and place go
through the blocklist; new page action choice {to, pick} writes the
person's choiceRecord, pick null withdraws; status gains picked, the
picks since the last withdrawal per target, newest first, so the app
folds them as readers do; close tombstones every choice
- app: Publicar posts a poll or event as a page; PollCard and EventCard
read and set the page's vote when acting as a page, drop answers that
land after an identity switch, and resend only on an explicit tap
- legal: Termos and Politica describe page polls, events and votes
- docs: protocol, rpc 5.84, app.md, changelog, verification
Takes main's legal text (version 79, page post media) and re-applies this branch's poll, event and vote sentences as version 80. The page changelog lines leave CHANGELOG.md: each lives in its docs/changelog fragment, as AGENTS.md asks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
O que muda e por quê
Quarto PR da série "página igual à conta". Como Página, não dava para publicar enquete ou evento, nem votar ou confirmar presença. Agora a Página faz o que a pessoa faz.
pollouevent, montada pelo mesmopostRecordda pessoa, nunca com mídia ou prévia. Opções da enquete e título e local do evento passam pela lista de termos.choice{ to, pick }: grava o mesmochoiceRecordda pessoa;pick: nullretira o voto. No diário da própria Página o alvo tem de ser uma enquete viva com a opção, ou um evento.statusda Página trazpicked: por alvo, os votos desde a última retirada, do mais novo ao mais antigo. O app conta o primeiro que a enquete tem, como quem lê conta.Como verificar
Roteiro em
docs/verification/feat-page-polls-events.md. Testes principais:apps/cli/test/pages-choice.test.js,apps/app/test/pageChoice.test.js,pagePost.test.js,packages/rpc/test/methods.test.js,packages/core/test/page-proof.test.js.Limites conhecidos
statustraz só os 1024 alvos mais novos: um voto mais antigo aparece como "sem voto" até a Página votar de novo.