Skip to content
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

Use dynamic async components for workspace view tabs + 1.6.x -> master (SimpleTree view) #1318

Merged
merged 8 commits into from
Jun 12, 2023

Conversation

MetRonnie
Copy link
Member

@MetRonnie MetRonnie commented Jun 8, 2023

In order to incorporate the dynamically imported SimpleTree view it seemed necessary to make all the views dynamically imported in Vue 3. Closes #1221.

I also took this opportunity to use <Teleport> instead of the hacky solution for displaying these views in the Lumino tabs. (Hat tip to @kinow for the suggestion, it is rather nice!). Closes #1273.

Sync:

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Tests are not needed.
  • No changelog entry needed.

oliver-sanders and others added 7 commits December 1, 2022 13:05
* A new bare-bones live tree view not available in production mode.
* Indended to serve as documentation and a guide for future view
  development.
Resolved Conflicts:
	src/store/workflows.module.js
	src/views/Workspace.vue
simple tree: bare-bones tree view for documentation purposes
@MetRonnie MetRonnie added the sync label Jun 8, 2023
@MetRonnie MetRonnie added this to the 2.0.0 milestone Jun 8, 2023
@MetRonnie MetRonnie self-assigned this Jun 8, 2023
@MetRonnie MetRonnie requested review from oliver-sanders and wxtim June 8, 2023 12:56
Copy link
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks grand to me! 🙇 👏

import LogView from '@/views/Log.vue'
import AnalysisView from '@/views/Analysis.vue'

// Use dynamic async components for lazy loading:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

class="h-100"
/>
</Teleport>
</template>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 👏 👏

@MetRonnie MetRonnie changed the title Use dynamic async components for workspace view tabs + 1.6.x deconflict (SimpleTree view) Use dynamic async components for workspace view tabs + 1.6.x -> master (SimpleTree view) Jun 9, 2023
Comment on lines +65 to +71
const allViews = [
{ name: 'Tree', component: TreeView, icon: mdiFileTree },
{ name: 'Table', component: TableView, icon: mdiTable },
{ name: 'Graph', component: GraphView, icon: mdiGraph },
{ name: 'Log', component: LogView, icon: mdiFileDocumentMultipleOutline },
{ name: 'Analysis', component: AnalysisView, icon: mdiChartLine },
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the long term we should think about how to make views more "plugable". It would be helpful for this information to remain tethered with the view, perhaps in some kind of metadata / sidecar file that could be imported separately. Would be worth taking a look at how Jupyter Lab make their "views" plugable as they face a similar (but more advanced) problem here.

No need for changes, this is great for now, but something to store in the back of the mind for later work...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a "pending" issue to preserve this, #1319

Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@oliver-sanders oliver-sanders merged commit 8295187 into master Jun 12, 2023
@oliver-sanders oliver-sanders deleted the 1.6.x-deconflict branch June 12, 2023 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate using Teleport for Lumino widgets workspace: avoid importing views until needed
5 participants