Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

screenshots for democracy page #1713

Open
brenzi opened this issue Nov 18, 2024 · 2 comments
Open

screenshots for democracy page #1713

brenzi opened this issue Nov 18, 2024 · 2 comments
Assignees

Comments

@brenzi
Copy link
Member

brenzi commented Nov 18, 2024

For documentation, we'd like to mock an example democracy page. It should look somewhat similar to this populated scenario (bot-communities)

image

and one with old proposals
image

I'd like to be able to edit/mock all proposal data. but we can start with the ones in above screenshots

@brenzi brenzi changed the title screenshot for democracy page screenshots for democracy page Nov 18, 2024
@clangenb
Copy link
Member

I have been looking into this a little bit. The democracy stuff is quite involved, it is more effort than expected to mock all this. Especially, as one has to consider quite many things when creating the mock data, and there is quite some networking involved.

Furthermore (something I have forgotten), our integration tests don't use any mocked data anymore. So I would have to instantiate a new integration test suite to reintroduce the mocks.

Hence, I think I want to try another route, however, it will not be the ultra low-hanging fruit we envisioned initially:

I believe the quickest way would be to actually create the proposals in the bootstrap script as an extra step, which is only executed with extra flag --populate-proposals. The additional advantage here would be that we can actually interact with the proposals in the integration tests and test the app at the same time.

Pro

  • Our encointer-cli already knows how to do that, hence the quickest way
  • We can actually test the app, and we can stay true to our integration testing paradigm
  • ??

Con

  • Creating a reasonably sized electorate will take some time
  • ??

@brenzi
Copy link
Member Author

brenzi commented Nov 19, 2024

We have that already: bot-communities already populafes proposals and votes randomly. Electorate can be grown to thousanda within reasonable time

But that's not what I need now. I think I'll simply hardcode values on a branch and screenshot manually

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

No branches or pull requests

2 participants