#neven-marinkovic_code
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1362555220894421252
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
Just to be clear, when you say you've deleted all configuration related to these views, do you mean you ran this command? https://docs.stripe.com/stripe-apps/build-ui#remove-a-view
I still see the UI component on each page within the dashboard
Which UI component are you referring to specifically? A screenshot would be helpful here
I did not use the command "stripe apps remove view ViewName" when I deleted them. I deleted the Customers.tsx, Customers.test.tsx, Home.tsx, and Home.test.tsx files from the project directory. I also removed references to these views in manifest.js and stripe-app.json
My goal is for this component on the right hand of the screen to only display if the user is on the customer details page.
Ah, gotcha
The panel you see on the right is expected behavior. You can close the view with the x at the top
We mention the "generic" wording here:
If your app doesn’t have either a page-specific view for the current page or an app-specific default view, the drawer displays a generic default view that shows the user how to access the app.
https://docs.stripe.com/stripe-apps/reference/viewports#page-specific-availability
Got it. So there is no way to only see a UI component on one specific page? The component will automatically populate on each view and you have the ability to 1. close out of it using the X 2. customize the view for that page. Is this a correct understanding?
That's correct. You can also close the app altogether by clicking the "B" icon at the top (next to the testmode toggle in your screenshot)
I think you're seeing the view on the right auto expand/open because you're using stripe apps start explicitly, is that correct?
I am using that command, correct.
If you've uploaded your app to test mode, you can also just navigate to the Dashboard and see what this looks like without auto expanding/opening. You'll just see the app icon at the top (next to the test mode toggle)
Got it. So if I were to upload my app to Test Mode (following the steps here: https://docs.stripe.com/stripe-apps/upload-install-app#install-your-app-in-test-mode) then when I open up the dashboard I will not experience the component auto expanding. Is that correct?
Correct!
I don't see the component auto expand with the test app I've created on my end. If I click on my app's icon while on a page where I have not explicitly created a view, I see the same "Choose a page..." message
Awesome. Thank you so much for your help and quick responses!
Sure thing!
Sorry, I have one more question. When you created the test app, did you have to create a sandbox to run it in to see the component not auto expand?
Nope, I did this in the older test mode
Interesting. When I go to https://dashboard.stripe.com/test/dashboard after uploading and installing my app, the component is still auto-expanding.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Is your terminal still running by any chance (where you ran stripe apps start)?
It is not still running.