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

Use Stimulus to update JobTracker Display #2319

Open
7 of 18 tasks
JoeCohen opened this issue Aug 19, 2024 · 1 comment · May be fixed by #2586
Open
7 of 18 tasks

Use Stimulus to update JobTracker Display #2319

JoeCohen opened this issue Aug 19, 2024 · 1 comment · May be fixed by #2586
Assignees
Labels
iNat interaction with iNat
Milestone

Comments

@JoeCohen
Copy link
Member

JoeCohen commented Aug 19, 2024

Improve Job Tracker by updating it with Stimulus, improving details.

Tasks

  • Find and study some examples
  • Add js inat-import-job-controller
  • update only Status display (start by updating just this part of the view)
    • Modify app/views/controllers/inat_import_job_trackers/show.html.erb
    • Add tests
    • Fix redirect to authorization_url
    • Change Callback URL on iNat for the MushroomObserver Test app
    • Refactor InatImports#show view per Nimmo suggestion
    • Get id of tracker; use it to call Tracker
    • Add tracker attributes
    • Job should update Tracker, rather than (or in addition to) Import
    • Simplify authorization_response; remove unneeded ivars
    • Add reset job link to InatImports#show view
    • manual test
    • RuboCop
    • Merge & Deploy
    • Immediately change Callback URL on iNat for the MushroomObserver app
  • Update other items with Stimulus/Turbo. (a separate PR)
@JoeCohen JoeCohen mentioned this issue Aug 19, 2024
1 task
@JoeCohen JoeCohen changed the title User feedback InatImportJob User feedback Aug 19, 2024
@JoeCohen JoeCohen added the iNat interaction with iNat label Aug 19, 2024
@JoeCohen JoeCohen self-assigned this Aug 19, 2024
@JoeCohen JoeCohen mentioned this issue Aug 29, 2024
18 tasks
@JoeCohen JoeCohen changed the title InatImportJob User feedback InatImportJob js feedback Sep 13, 2024
@JoeCohen JoeCohen added this to the import all milestone Oct 1, 2024
@JoeCohen
Copy link
Member Author

JoeCohen commented Dec 7, 2024

Stimulus examples:

  • app/javascript/controllers/field-slip-job_controller.js
static targets = ["link", "seconds", "pages", "status"]
  • app/views/controllers/projects/field_slips/_tracker_row.erb partial when is modified by by the js controller
    (called by app/views/controllers/projects/field_slips/new.html.erb:) which
    Has 4 places where data is plugged in: link, seconds, pages, status
  • Add user quotas for showing original images Add user quotas for showing original images #2520
  • app/javascript/controllers/image_loader_controller.js

@JoeCohen JoeCohen changed the title InatImportJob js feedback Use Stimulus to update JobTracker Display Dec 7, 2024
@JoeCohen JoeCohen linked a pull request Dec 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iNat interaction with iNat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant