Skip to content

Conversation

joepavitt
Copy link
Contributor

Description

  • "Add Instance" button for Hosted Instances
    • Directs to the "Create Instance" page when clicked
    • Add appropriate permissions check to the button too
  • "Add Instance" button for Remote Instances
    • Opens "Add Remote Instance" dialog
    • Only shows when permissions are set

Related Issue(s)

Closes #6085

@joepavitt joepavitt requested a review from hardillb September 30, 2025 12:41
@joepavitt
Copy link
Contributor Author

joepavitt commented Sep 30, 2025

@hardillb FYI - assigning you as a reviewer, as I know Serban and nick are locked in RBAC, and Steve on ONNX atm

Copy link

codecov bot commented Sep 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.80%. Comparing base (b8e2af2) to head (fe5d524).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6089   +/-   ##
=======================================
  Coverage   76.80%   76.80%           
=======================================
  Files         381      381           
  Lines       19253    19253           
  Branches     4627     4627           
=======================================
  Hits        14788    14788           
  Misses       4465     4465           
Flag Coverage Δ
backend 76.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hardillb
Copy link
Contributor

@joepavitt re-running backend tests as this is all frontend code so not sure why it's failing

@hardillb
Copy link
Contributor

hardillb commented Sep 30, 2025

@joepavitt adding a new device never shows the install instructions, just takes you straight to the device overview page, so no way to get the credentials without clicking on the "finish setup" button or going back to the device list and regenerating them (the finish setup also shows warning about regenerating credentials).

Screencast.From.2025-09-30.14-35-02.mp4

@joepavitt
Copy link
Contributor Author

Good point, I overlooked that step. Will address it.

@gstout52
Copy link
Contributor

gstout52 commented Oct 6, 2025

@hardillb Are you able to pick this up?
cc @knolleary

@hardillb
Copy link
Contributor

hardillb commented Oct 6, 2025

@gstout52 no, not really

@gstout52
Copy link
Contributor

gstout52 commented Oct 6, 2025

We'll need to find the right person for it. @knolleary Perhaps @cstns when he is back from OOO?

@knolleary knolleary requested a review from cstns October 7, 2025 12:14
@knolleary
Copy link
Member

@cstns please pick this one up and help get over the line

@cstns cstns removed their request for review October 8, 2025 08:33
@cstns
Copy link
Contributor

cstns commented Oct 8, 2025

From what I can tell, this is a two-part problem:

  1. We need to redirect to the newly created remote instance.
  2. We need to open the remote instance credentials dialog.

The easiest short-term fix would be to only do step two: open the credentials dialog for that specific remote instance without performing a redirect.

The long-term and sustainable fix would be to decouple dialogs from components, similar to how the left/right drawers work. This would allow more complex operations, such as triggering a page redirect followed by a modal. Specifically, we should be able to open a modal from anywhere by passing a data payload and the modal component to load asynchronously. This would remove the need to include each modal in every page where it might be used (and rendered).

I’d estimate the long-term fix at 1 SP, plus 0.25 SP to implement the redirect and credentials modal for the current task, and 0.25 SP to apply the easy fix to meet the immediate requirements.

@cstns
Copy link
Contributor

cstns commented Oct 8, 2025

I replaced the redirect callback after creating a device from the team dashboard with showing the credentials dialog. Let me know If you'd like me to follow up on my previous comment

@hardillb
Copy link
Contributor

hardillb commented Oct 8, 2025

@cstns is this ready for review again?

@cstns
Copy link
Contributor

cstns commented Oct 8, 2025

yes, I replaced the redirect to the device page with opening the credentials dialog.

@gstout52
Copy link
Contributor

gstout52 commented Oct 8, 2025

yes, I replaced the redirect to the device page with opening the credentials dialog.

Thanks @cstns for laying out the options and pursuing the quicker win here.

@hardillb
Copy link
Contributor

hardillb commented Oct 8, 2025

@cstns this still isn't doing what I reported to joe when creating a new device.

It still doesn't open the device credentials dialog when creating a new device, it just opens the device's overview page

@hardillb
Copy link
Contributor

hardillb commented Oct 8, 2025

@cstns are you sure you pushed changes, the commit history just shows merges of main

@cstns
Copy link
Contributor

cstns commented Oct 8, 2025

it was added in 6fc996e ~5h ago, checking pre-staging once built to confirm

@cstns
Copy link
Contributor

cstns commented Oct 8, 2025

confirming it works on pre-staging

@hardillb
Copy link
Contributor

hardillb commented Oct 8, 2025

The commit was not present in the tree when I pulled it to test or when I reviewed it, it just shows the 2 merge main commits

image

@hardillb hardillb merged commit 43936a7 into main Oct 8, 2025
23 checks passed
@hardillb hardillb deleted the 6085-add-instance-overview branch October 8, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add 'Create Instance' buttons on the home page

5 participants