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..

  1. Admin Settings:
  2. (nov24/23) Active work now on dev 2.0.x BRANCH. UX testing in progress.

Comments

SKAUGHT created an issue. See original summary.

skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
StatusFileSize
new17.85 KB
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes

SKAUGHT credited OPTASY.

skaught’s picture

skaught’s picture

  • SKAUGHT committed 65470b45 on 2.1.x-3398863-ajax-bid
    Issue #3398863 by SKAUGHT, OPTASY add an ajax based "refresh current bid...
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes

  • SKAUGHT committed 1a455d64 on 2.1.x-3398863-ajax-bid
    Issue #3398863 by SKAUGHT, OPTASY add an ajax based "refresh current bid...

  • SKAUGHT committed aaee325a on 2.1.x-3398863-ajax-bid
    Issue #3398863 by SKAUGHT, OPTASY add an ajax based "refresh current bid...

  • SKAUGHT committed 32f6eb78 on 2.1.x-3398863-ajax-bid
    Issue #3398863 by SKAUGHT, OPTASY add an ajax based "refresh current bid...
skaught’s picture

Version: 2.1.x-dev » 2.0.x-dev

will apply to 2.0.x.

jbfelix’s picture

Hello,

I have installed the 2.0.x-dev but no option appears for ajax refresh
in which version is it committed ?

Thanks in advance

skaught’s picture

@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!

  • 5febf1b2 committed on 2.1.x-3398863-ajax-bid
    Issue #3398863 by SKAUGHT, OPTASY: add  @adrenalineRate increase
    
jbfelix’s picture

I 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

skaught’s picture

cheers.
(: 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'

  • 4a856a41 committed on 2.0.x-3398863
    Issue #3398863 by SKAUGHT, OPTASY: add an ajax based ''refresh current...

  • 4a856a41 committed on 2.0.x
    Issue #3398863 by SKAUGHT, OPTASY: add an ajax based ''refresh current...

  • e19e586b committed on 2.0.x
    Issue #3398863 by SKAUGHT, OPTASY: add an ajax based ''refresh current...
skaught’s picture

is now on dev branch. external testing in progress.

skaught’s picture

StatusFileSize
new46.21 KB
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
StatusFileSize
new88.14 KB
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Status: Active » Needs review
skaught’s picture

Assigned: skaught » danrod
danrod’s picture

skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
skaught’s picture

Category: Feature request » Bug report
Issue summary: View changes
danrod’s picture

StatusFileSize
new75.88 KB

I installed the latest 2.0.x-dev release and I can see the new option for ajax refresh, can be moved to RTBC+1

New option for ajax refresh

skaught’s picture

Status: Needs review » Reviewed & tested by the community

thanks! tag is ready.

skaught’s picture

Status: Reviewed & tested by the community » Fixed

new release (2.0.4) done.

skaught’s picture

Assigned: danrod » Unassigned
skaught’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.