-
Notifications
You must be signed in to change notification settings - Fork 12
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
Report v2 #201
Conversation
…rm into report-v2
…rrect model being displayed on view assessment page
title: "Object parameter grouping", | ||
subtitle: `You can now group your objects for material selection by any parameter on your model.`, | ||
title: "Report Object v2", | ||
subtitle: `The way that we store your carbon reports has now changed. The updates allow for faster loading, carbon heat maps, and makes it easier to access your data.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"make" instead of "makes"
value: "parameters.Construction Carbon A5.value" | ||
}, | ||
{ | ||
name: "Materials", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this to the start of the array, to make the Materials
the default category shown
@@ -21,7 +24,7 @@ export interface SpeckleObjectFormComplete { | |||
id: string; | |||
speckle_type: string; | |||
formData: ObjectFormDataComplete; | |||
reportData?: ReportData; | |||
reportData?: ReportDataChild; | |||
} | |||
|
|||
export interface ObjectFormDataComplete { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make this more DRY, please?
SpeckeleObject
, ObjectFromData
, and ObjectFormDataComplete
are the same. ObjectFromData
and ObjectFormDataComplete
are also not used anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SpeckleObject
is used in theObjectsObj
type, which is used on theAssessment.vue
view.ObjectFormData
is used in theSpeckleObject
interface.ObjectFormDataComplete
is used inSpeckleObjectFormComplete
which is used in theAssessment.vue
view and thecarbonCalculator.ts
file.ObjectFormData
is used in theSpeckleObject
interface.ObjectFormDataComplete
is used inSpeckleObjectFormComplete
.
If I remember right, a lot of these exist, and appear to be the same, because I wanted to have interfaces that both could/couldn't contain some fields, and interfaces that definitely would contain the same fields. I think that this was mainly done to make things easier in the Assessment.vue
view.
A lot of this file/folder is heavily linked to the Assessment.vue
view, which is incredibly messy and is difficult to figure out. It's the type of file where you can change on thing and that causes things elsewhere to break without you realising. Really that file needs a whole re-write, but that would be a massive job at this point. I might try to pull together some diagrams and stuff to help us better understand what's going on.
title: "Object parameter grouping", | ||
subtitle: `You can now group your objects for material selection by any parameter on your model.`, | ||
title: "Report Object v2", | ||
subtitle: `The way that we store your carbon reports has now changed. The updates allow for faster loading, carbon heat maps, and gives you easier to access your data.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please rephrase and gives you easier to access your data.
:D
* Report v2 (#201) * assessment page saves in new v2 object * mostly working I think * child objects properly appear on server * includes materials and transport colours in report parent object now * removed comment * moved around a load of functions to (hopefully) make things a little cleaner * clean up * model object id now saved to report object to be more certain that correct model being displayed on view assessment page * child objects actually contain total carbon * wrote main parameter update function, don't know if it works yet * almost working * attempted to make things work * adding param function works (kinda) * cleaned up addParams method a little bit, should more reliably work now * model with new params being correctly uploaded * carbon heatmap inside Act! * started adding some controls for the viewer on the report viewer page * continued work on the viewer controls on the report viewing page * can change model views on the view report page * report viewer can load both v1 and v2 reports * updated v1 report to v2 works * added key to report viewer page (it's rubbish, but gets the job done) * removed most of the console.log's * added message to the final loading spinner on the assessment page * object parameter grouping now properly works * updated version number * cleaned things up * updated speckle viewer * almost working * working (as far as I know) * clean up * clean up * text update * text update 2 * added links (#215)
Fairly large pr making an update to the report object. Contains a couple of changes:
More info on some of these changes here #180.
User's pre-update reports will not be directly updated as that would have a high chance of causing issues. Instead, any new reports that are created post-update will be made using this version of the report.
To test: