PAIR-code / PAIR-code/deliberate-lab

[Open ended] Make stock allocation easier

Open
#751 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale starter bug
Dominant language
TypeScript
Stars
96
Forks
40
Avg merge
2d 11h
Merged PRs (30d)
20

Description

One idea for initial setup: Given n items, when a participant has edited n-1 items, programmatically set the last item to be 100 - the allocations of the others.

This should only happen one time, otherwise it may be confusing as the participant edits.

From a participant: "I decided 15% on the first one, and split the rest between the other two. I was trying to figure out how to do it mostly"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the participant interface for editing stock allocations and the code that tracks allocation changes. Implement the one-time behavior described in the issue: when only one item remains unset after the others are edited, set it to the remaining percentage. Verify that later edits do not repeatedly overwrite the participant’s changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.