Closed jibees closed 3 years ago
Concerning files in app/assets/javascripts
(like bulk_invoice.html.haml
, image_upload.html.haml
, exchange_products_panel_footer.html.haml
)
Quote from @Matt-Yorkley:
Ah... the slightly weird files under assets/javascript/templates are loaded dynamically by Angular in some cases and don't really work like regular Rails views. They work via the angular-rails-templates gem. Hopefully some day that whole directory will be deleted 🙈 I'm not sure if rendering normal partials will work in those templates, so we might have to leave that for now...
context: https://github.com/openfoodfoundation/openfoodnetwork/pull/6640#issuecomment-758129824
All this files seems to lead to an unreachable svg. coopcircuits.fr: https://coopcircuits.fr/assets/spinning-circles.svg returns a 404 Not Found
by nginx.
Hey @jibees ,
I've found another occurrence, on order cycles, in the Incoming Products
and Outgoing Products
tabs:
Description
From #2772 (and its PR: #6640), loading spinner is a "reusable" component. There are 3 cases that are missing. This aim of this issue is to complete these 3 missing cases, and finish the work.
Expected Behavior
In each 3 cases we must see the loading spinner.
Actual Behaviour
We cannot see the loading spinner:
Steps to Reproduce
Scenario 1: Bulk invoice printing
/admin/orders?q[s]=completed_at+desc
Scenario 2: Capturing or Shipping an order from orders page.
Go to
/admin/orders?q[s]=completed_at+desc
Press onbefore the green check is displayed there was a spinner the button now looks like Pressing this one should have the same behavior (spinner before green check button)
Scenario 3: Use the image upload modal
admin/products
Scenario 4: Load all variants for incoming or outgoing product in a order cycle edition
/admin/order_cycles/[ORDER_CYCLE_ID]/incoming
Animated Gif/Screenshot
Scenario 1
Scenario 3
Severity
bug-s4: it's annoying, but you can use it
Your Environment