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

Implement initial data loading sequence #240

Open
jeisses opened this issue Mar 23, 2024 · 0 comments
Open

Implement initial data loading sequence #240

jeisses opened this issue Mar 23, 2024 · 0 comments

Comments

@jeisses
Copy link
Member

jeisses commented Mar 23, 2024

The following data needs to be loaded into the Vue data store when the app initializes:

See also: effectai/effect-network#117

  • All acctaskidx for our user
  • All campaigns
  • All reservations for our user

To find out if campaigns are active we can use campaign.total_tasks > campaign.tasks_done

To find out if the current user has tasks left in the campaign (is a bit more tricky: for each campaign, load the oldest reservation and check if it's expired, and check that campaign.total_tasks > user_last_task.idx)

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

1 participant