-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add Blueprints preview #3863
Add Blueprints preview #3863
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3863 +/- ##
=======================================
Coverage 79.27% 79.27%
=======================================
Files 281 281
Lines 12745 12745
Branches 2842 2842
=======================================
Hits 10104 10104
Misses 2641 2641
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Clicking outside dialog to close I find really annoying, as in my first attempt to create a blueprint just now, I accidentally clicked out, which closed the dialog, and I lost all progress. Screen.Recording.2024-05-16.at.11.40.26.movI'm okay with this being functionality for the viewer, as there is no risk of progress-loss, but if there is a "cancel" button, I don't think click-outside should be enabled |
It can be easily removed, I added it because I have a habit of clicking outside of dialogs to close them. |
I agree it's a useful feature, but only if the dialog doesn't have a form in place. For the |
Also noticed this odd behaviour if we click on the zoom controls of the flow-viewer? Screen.Recording.2024-05-16.at.13.46.05.movHave confirmed this only happens on the Blueprint screen, the existing flow viewer on team library and snapshots function fine |
That's strange! I messed about with the zoom controls but not on that specific page! I'll take a look |
# Conflicts: # frontend/src/components/flow-viewer/SnapshotImportDialog.vue # frontend/src/pages/device/Snapshots/index.vue # frontend/src/pages/instance/Snapshots/index.vue
@cstns I see you have renamed the snapshot viewer dialog to "flow viewer" and changed the It was intended this component would be able to show other parts of a snapshot in future iterations (e.g. the module list, the env vars etc). I think a better option would be to instead add an additional This would mean in a future iteration, we could also support viewing the modules for blueprints modules and env vars too. |
We haven't implemented that functionality now, so I think the approach @cstns has taken is the correct one. It doesn't prevent any future iteration to then adapt this and include the extra points you've mentioned. |
No it doesnt, but renaming it "flow viewer" and reducing scope from what it currently is means it will need another refactoring. With up front knowledge (as provided) a 3rd rename and reverting this work can be avoided. All I am asking is to bear these point in mind. |
I think flow viewer is still appropriate here - it's more generalised than Blueprints, Library Entry or Snapshot which are the uses cases you're referring to? |
Not really, it will be (once we can show modules/env vars/etc) even more generic than that (more like thingViewer), but i'll stop quibbling over the name, it'll just be an under the hood implementation oddity ;) As for reducing the parameter scope for the |
Sounds reasonable - @cstns please take action accordingly 😄 |
I'm not sure I follow. Both snapshots and blueprints have similar structures and the component's show could cover them, in which case the component name becomes problematic because it's not only a flow viewer but a more detailed viewer |
For those following along, we had a chat about this. The function parameter was named @cstns & I then agreed we can now keep a singular |
We just have to find a name for that |
Please proceed as you had already named it @cstns - I don't want us holding up a PR over bikeshedding a name for a component |
Code all looks good, just updating to |
Description
Adding support to preview blueprints using the flow-renderer across blueprint tiles
Related Issue(s)
closes #3838
closes #3875
Checklist
Documentation has been updatedUpgrade instructionsConfiguration detailsConceptsChangesflowforge.yml
?Issue/PR raised onFlowFuse/helm
to update ConfigMap TemplateIssue/PR raised onFlowFuse/CloudProject
to update values for Staging/ProductionLabels
Includes a DB migration? -> add thearea:migration
label