wip: adjustment reason edit with turbo-frame link and turbo template with no index#6045
wip: adjustment reason edit with turbo-frame link and turbo template with no index#6045chaimann wants to merge 3 commits intosolidusio:mainfrom
Conversation
tvdeyen
left a comment
There was a problem hiding this comment.
I like this very much! I only would like us to still be able to render the new/edit routes.
There seems to be a syntax error, that's why the specs are still failing.
|
|
||
| describe "GET /edit" do | ||
| it "renders the edit template with a 200 OK status" do | ||
| it "redirects when the request is not Turbo-Frame" do |
There was a problem hiding this comment.
No, we want that these routes still accessible in ie. new tabs or tests w/o javascript.
|
Test failures fixed in #6048 |
|
@tvdeyen no worries, glad I could help! The only downside with it is that browser will make two GET requests to Also, with dedicated edit route there are few issues that I found:
I'm sure, though, that these could be fixed easily |
I cannot reproduce those in #6046 |
|
@tvdeyen nope, haven't checked it yet. Just double checked in my branch, the |
Can you check out my branch and verify if this is still the case for you? It is not for me locally and not in tests (they are all passing). I would prefer to continue the conversation as a review of #6046 as I updated a lot more components already. Thanks for all the great feedback. This really helps to fix the issues with the new admin |
|
perfect, let's proceed in #6046 |
|
closing in favour of #6046 |
Summary
This is a draft PR to collect feedback on the proposed solution. If it looks good, I'll make changes to other routes that open modals in admin.
This addresses #6014 (comment) as a potential solution to the index table being loaded on visiting a route rendered within a modal.
editcomponentChecklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: