An error occurred while fetching folder content.
user avatar
[PC-944] Clean up interactions in new script context path
Vihang Mehta authored
Summary: Takes care of refreshing the editor when the breadcrumbs change, updates the URL whenever breadcrumbs change even if it doesn't yet represent a valid run, auto-runs the script when anything changes if doing so would be valid. Puts back the `/live/clusters/:cluster/script` route for scripts that don't have special routing. DOES NOT re-enable the pod or namespace special URLs yet (nor does it yet put in redirects for them).

Test Plan: Visit `withpixie.ai:8080/` with `USE_SIMPLIFIED_ROUTING=true` in `vizier.tsx`. Scripts should execute automatically when the URL contains valid execution params. The breadcrumbs changing should automatically update the editor and run the script when doing so is valid. A number of weird errors should now show the snackbar instead of whitescreening the entire page.

Reviewers: vihang, philkuz

Reviewed By: vihang

Subscribers: philkuz, vihang

JIRA Issues: PC-944

Differential Revision: https://phab.corp.pixielabs.ai/D8665

GitOrigin-RevId: 90af447083657ab31c4d806bc3e8c06c0db8c075
93f45b62
Name Last commit Last update
..