Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

[WIP] Initial working pass for attributes task pilot #316

Draft
wants to merge 1,331 commits into
base: main
Choose a base branch
from

Conversation

JackUrb
Copy link
Contributor

@JackUrb JackUrb commented Aug 31, 2022

Copy of (#262) post-squash

Much of the backend machinery to get these tasks running properly, plus small fixes on the frontend. Initial pilots seem to show workers don't know what they're doing (sometimes), could use tooltipping.

JustinPinero and others added 30 commits April 20, 2021 15:43
Creating storage for points in the DB
Unique Event IDs, and Reward/exp propogation
Creating endpoint for /game/api/my_agent stub
JustinPinero and others added 26 commits August 31, 2021 14:43
* Merging _human and is_player

* Removing old function

* No longer true case about cap on characters
* fixed spacing issue from help message

* fixed sizing issue on tutorial screen

* fixing borders and sizing issues

* added styles for mobile landscape view

* fixed fixed positioning in mobile view

* cleared unused styles

* fixed progress bar text

* fixed text and nameplate styling and landing app tutorial page

* added space at footer for landing app pages

* added views

* updating structure

* added example card component

* added copy arrays, styling example cards, and building good example list

* styled example list components

* styling preview view

* adjusted content and overflow to be right of it's label, fixed intro copy, fixed coloring in details section

* fixed details interaction copy

* fixed alignment of example card content

* building button

* fixed placement of definitions and added spacing

* pre-merge

* added error and success toats

* added screenshot to tutorial, added toast to submit

* duplicated previous task

* formatting constraint events task

* fixed conf

* restructuring app

* building multiple choice

* added answer form

* built reusable question components, added copy, building and styling forms

* added fieldQuestion component

* added fieldrow component

* added attributesetter component

* added constraints component and questions

* styled question components, headers, and layout

* added multiple select question component

* built attribute setter, attribute row, and added dummy data

* styled attribute setter

* connected dummy Data, restyled events and constraint containers, colored object names

* added copy updates from initial thoughts, added location description question

* added taskdatacards and datacard component

* styling cards and field row border

* added formatquestion component

* minor style fixes on field row, added formatquestion component to task card

* added format question component to boolean question component

* fixed formatquestion component

* added drop down component and submit checklist components

* fixed positioning and fixing numbering for questions

* added delete functionality to attribute setter

* added and styled submission component

* Adding new example copy, passing name and descriptions (#245)

* pre pull

* pre pull

* Fixing clobbered run_task.py (#246)

* Adding new example copy, passing name and descriptions

* Fixing run_task.py

* Fixing script config

* successfully updated run_task

* added and styled description to object selector, form tips, and preview image

* fixed payload update

* updated example card component with primary and secondary desc and styled text

* updated example card component with primary and secondary desc and styled text

* Task2 submit (#248)

* adding state for payload

* added error state

* centralizing copy

* added isReversible, removeItems, isRemovingItems isCreatingEntity, createdEntity, isSecondaryHeld state

* building updatedRemoveObjects

* added create entity event to submission handler

* added events and constraints handling and packaging for payload submission

* wired constraint and event state to constraint and event components

* connected new copy object to events

* wiring task 2

* wiring event forms

* fixed field row styles

* added tooltip component, building preview and tutorial copy object

* added task 2 tutorial copy, added and styled tutorial entry component, added and styled preview view

* updated copy for preview and updated layout

* added screenshots for Preview

* finishing final submission and preview changes

* fixed create entity connection to submission

* connected constraints and fixed submission state

* building error handling and checklist component logic

* building error handling and checklist component logic

* added error key to task copy file

* added error toasts, error key, and completion checkboxes component

* fixed checkbox, restyled headers, added plus icon to add attribute button

* fixed error handling for broadcast messsage and item description changes

* fixed attribute setter connection to submission payload

* added documentation to components, removed console logs, fixed tooltip styling, and added mephisto handleSubmit to submit function

* Fixed spacing, removed improperly placed checkboxes, updated  copy, updated screenshots

* merge

* Finalizing Narrations pilot (#257)

* Moving files

* Importing new examine script

* Updated review scripts

* Final changes for pilot

* dropped configs

* style changes based on user feedback

* Missing css class

* Fixing run, fixing copy

* Updating Attributes task final pilot

* Is safe is light task (#256)

* Troubleshooting image loading issue

* added task4, added multiple choice, added run tas and yaml files, build task state

* added task4, added multiple choice, added run tas and yaml files, build task state

* added Sucess and Error Banners

* added copy to task copy, restructuring QuestionBlock component

* added format question, updated taskcopy, added header to QuestionBlock

* added tooltip component

* added checkbox component

* restyled question block orietation, removed unused styles

* added error handling and submissionhandler

* properly styled error banner

* fixed submission issues

* added bootstrap styles, updated comments on Question Block and multiplechoice components, added more copy for preview

* several minor styling fixes, checkbox positioning, alert color, etc

* Task2 locationupdate (#254)

* Troubleshooting image loading issue

* added, connected, and styled onSelectQuestion component for handling location change event

* added, connected, and styled onSelectQuestion component for handling location change event

* added error handling for new location

* removed console.logs from question on select and converted inline styles to classes

* Updating folder location

Co-authored-by: Jack Urbanek <[email protected]>

* Merging task 3 into crowdsourcing ui (#260)

* Troubleshooting image loading issue

* initial setup complete

* building Actor Block

* adding actor block draw functionality

* adding actor block draw functionality

* added styles, building window size state

* added getDimensions utility function, added dimension state to scale component, connectect state to konva stage

* added scale range optionblock footer, styled scale question component and subcomponents, connected dummy data from app.js to task component

* added color gradient for scale, fixing some border styling, and sizing issues

* fixed styling and fixed drag boundaries

* adding more informative variables and comments, fixed boundaries, tooling with flag sizing

* added GetFlagDimensions util function, breaking down scale component into scalefield scalerange scale flag selection gallery components

* fixed scaleRange component to map through array of ranges replacing previous hardcoded values

* changed ScaleRange component name to ScaleFooter

* change pixels to percentages in scalerange section width

* added documentation to ScaleQuestion component

* Fixed left boundary, broke flags and selection gallery into components

* fixing flag placement

* Added input header, added documentation, fixed leftSoftBoundary, fixed left flagpole shift, added rating value to selection state

* building task copy and dummy data

* added task copy

* wiring task copy into question components

* added tagrow and tagquestion

* styled attributes tag question

* added datatype switch for testing

* added conditional rendering to number form in tag question

* added state to tokenizer

* added ref to tokenizer, added header to copy, added header prop to tag question

* Task3 scale component (#249)

* building Actor Block

* adding actor block draw functionality

* adding actor block draw functionality

* added styles, building window size state

* added getDimensions utility function, added dimension state to scale component, connectect state to konva stage

* added scale range optionblock footer, styled scale question component and subcomponents, connected dummy data from app.js to task component

* added color gradient for scale, fixing some border styling, and sizing issues

* fixed styling and fixed drag boundaries

* adding more informative variables and comments, fixed boundaries, tooling with flag sizing

* added GetFlagDimensions util function, breaking down scale component into scalefield scalerange scale flag selection gallery components

* fixed scaleRange component to map through array of ranges replacing previous hardcoded values

* changed ScaleRange component name to ScaleFooter

* change pixels to percentages in scalerange section width

* added documentation to ScaleQuestion component

* Fixed left boundary, broke flags and selection gallery into components

* fixing flag placement

* Added input header, added documentation, fixed leftSoftBoundary, fixed left flagpole shift, added rating value to selection state

* pre payload branch

* added scaled attribute basevalues

* added updateHandler

* fixed attributeupdatehandler

* fixed boolean payload change handler

* fixed custom scale rating and input

* fixed numberic attribute handler

* added numeric attributes array

* added multiple select question and Usefulness scale

* added default questions for each type to task copy

* added attribute questions component and added more documentation to Task component

* fixing tag question component added tooltip component

* updated defaultAttribute questions styles and update functions

* fixed multiple choice component

* added selection consideration to multiplechoice component

* added more informative error banner

* tested submit successfully

* fixed scale component header alignment

* premerge changes, added to tutorial copy

* pre merge

* removed labels from custom attribute scale, added better variables describing fixed number values in scale field, fixed indentation in multiplechoice component, changed placeholder message in tagrow

* Task3 preview (#253)

* added attributeChecklist screenshots

* added tutorial screenshots

* added final screenshot for attributeRadio

* added images to TaskCopy.js

* added copy and screenshots for scales and type specific tutorials

* populated preview with tutorial entry components using taskcopy

* added new screenshots to attributeradio2, attributeradio3 assets, styled preview

* added check for 4 custom boolean attributes

* changed header text color to dark blue

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>

* Moving task3

* Moving safe-light task

Co-authored-by: Justin Pinero <[email protected]>
Co-authored-by: JustinPinero <[email protected]>
* Multi-agent chat first pass

* First round changes, clarity

* Review script

* Forced timeout loop
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 31, 2022
@facebook-github-bot
Copy link

Hi @JackUrb!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants