reported:
"no idea another person had increased the 'current bid', had to reload page several times"
Story:
a user loads an auction page, sits for a moment, then hits the 'place your bid" submit. meanwhile: someone else has already submitted. true auction value is now higher. this first/current user get Bid error..
- update Item Amount input & new current min attribute(unless focused*, submitting)
- update Current Offer (formatter value) value
- balance 'you hold hightest bid' messaging.

a11y forward toggle to below BID number for user to opt into ajax refresh.
-> inspiration: https://kittygiraudel.com/2021/04/05/an-accessible-toggle/
dev notes:
- route based access.
- perm 'Access Bidding Form'
- auction_item entity route upcast from new refresh controller
- dev: db logger with mircrotime, ip, uid
- Keeping Watchdog log of Refresh Controller
- \Drupal::state()->set('auctions.bid_refresh_log',true);
- \Drupal::state()->delete('auctions.bid_refresh_log');
- admin options for 'default on',
- admin option time to refresh
- [right side 'refresh' icon]
- will dim (opactiy .1) if input focus (pause refresh of input)
- *will 'spin' back/forth when refresh promise is triggered — no amount update happening.
- *will 'pulse' (scale/pulse up, back to normal) — when refresh promise had NEW BID .
- *will 'suck in' (scale-in-2-zero back to normal) INHERIT refresh — if user has focus on Amount Input (user maybe adding their own value)
- amount item background color will be green when refresh is active/enabled and user has focus. amount will not update if user has focus (is changing amount). *testing/ux needs verifications
- *refreshAdrenaline: setting. last XXseconds (def 60) refresh will ping every second until time.
- 'user hits submit' refresh automatically pauses while html submit is happening..
- Admin Settings:

- (nov24/23) Active work now on dev 2.0.x BRANCH. UX testing in progress.

| Comment | File | Size | Author |
|---|---|---|---|
| #56 | issue-3398863-test1.png | 75.88 KB | danrod |
| #41 | refresh-options.png | 88.14 KB | skaught |
| #30 | bid-refresh-demo-a.png | 46.21 KB | skaught |
| #6 | 3398863-mock.png | 17.85 KB | skaught |
Comments
Comment #2
skaughtComment #3
skaughtComment #4
skaughtComment #5
skaughtComment #6
skaughtComment #7
skaughtComment #8
skaughtComment #9
skaughtComment #11
skaughtComment #12
skaughtComment #14
skaughtComment #15
skaughtComment #16
skaughtComment #20
skaughtwill apply to 2.0.x.
Comment #21
jbfelix commentedHello,
I have installed the 2.0.x-dev but no option appears for ajax refresh
in which version is it committed ?
Thanks in advance
Comment #22
skaught@jbfelix
of course, this is not released work, nor merged down to dev yet. it is on branch '2.0.x-3398863' thanks.
^[EDIT, have moved to phaseB branch]
I am just about to push a new sub-feature (adrenalineRate). there is user-interaction vs Ajax refresh still in progress (ensure manual entry by user is not wiped out..). a little UX for success, etc in late phase.
please do let me know any comments!
Comment #24
jbfelix commentedI can't wait to see the result, can you let us know when it's published?
Well done for all the work you've already done
Comment #25
skaughtcheers.
(: this should be released to a new tag to the project very shortly. I will tease by early dec for sure..
----
released 2.0.3 today (other concerns) but will include other UX WIP in this general body of work that is ready (:
have moved branches, pre cleanup for this work line: '2.0.x-3398863'
Comment #29
skaughtis now on dev branch. external testing in progress.
Comment #30
skaughtComment #31
skaughtComment #32
skaughtComment #33
skaughtComment #34
skaughtComment #35
skaughtComment #36
skaughtComment #37
skaughtComment #38
skaughtComment #39
skaughtComment #40
skaughtComment #41
skaughtComment #42
skaughtComment #43
skaughtComment #44
skaughtComment #45
skaughtComment #46
skaughtComment #47
skaughtComment #48
skaughtComment #49
skaughtComment #50
danrodComment #51
skaughtComment #52
skaughtComment #53
skaughtComment #54
skaughtComment #55
skaughtComment #56
danrodI installed the latest 2.0.x-dev release and I can see the new option for ajax refresh, can be moved to RTBC+1
Comment #57
skaughtthanks! tag is ready.
Comment #58
skaughtnew release (2.0.4) done.
Comment #59
skaughtComment #60
skaught