Skip to content

gui bugfix: make workspaces navigatable #833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 6, 2025

Conversation

ejkorol
Copy link
Member

@ejkorol ejkorol commented Jun 6, 2025

This PR fixes the workspaces to be navigatable on the gui explorer view, and adds tests for the selected-item/index.tsx view to check if query will actually change when a side-item is clicked for a workspace item.

The major change is adding a to property on the workspace items:

     items.push({
+      ...importer,
+      to: importer as QueryResponseNode,
       id: importer.id,
       title,
       version: importer.version || '',
       name: importer.name || '',
       stacked: false,
-      size: 1,
       labels: undefined,
+      size: 1,
     })
   }

and updating the getItemQuery to use the to property:

 const getItemQuery = (item: GridItemData) => {
   if (!item.to) return ''
-  const name = item.spec?.name ? `#${item.spec.name}` : ''
+  const name = item.to.name ? `#${item.to.name}` : ''
   return name.trim()
 }

Other Changes

  • adds a workspace label
  • bugfixes the {ref} to ${ref} in the selected-item's item-header

ejkorol added 4 commits June 5, 2025 19:53
- adds a `to` property on `getWorkspaceItems` for the `importer`
- on `getItemQuery` we get the query based on the `to.name` not the
  `spec.name`
- creates tests to check if the query will change on side-item click
Copy link

vercel bot commented Jun 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Jun 6, 2025 0:02am

@ejkorol ejkorol marked this pull request as ready for review June 6, 2025 01:10
@ejkorol ejkorol requested review from lukekarrys and ruyadorno June 6, 2025 01:10
@lukekarrys lukekarrys merged commit b0d7476 into main Jun 6, 2025
13 checks passed
@lukekarrys lukekarrys deleted the ejkorol/gui-bugfix-navigate-workspaces branch June 6, 2025 01:18
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.

2 participants