-
Notifications
You must be signed in to change notification settings - Fork 18
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
MG-93 - Add support for creating charts #103
Conversation
@Musilah Please resolve the conflicts and mark as Ready for review when it's ready. |
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.
Add a separate templates
subdirectory for charts and charts modals.
1a749a9
to
c0a7326
Compare
@@ -5,15 +5,15 @@ | |||
"packages": { | |||
"": { | |||
"devDependencies": { | |||
"prettier": "^3.1.0", |
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.
why are you removing the prettier dependency? It's used for prettier formatting
ui/jsonObject.go
Outdated
@@ -21,59 +21,65 @@ func CreateItem() []Item { | |||
Widget: "lineChart", |
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.
rename this file to a more descriptive name.
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.
and remove the to be deleted comment
ui/jsonObject.go
Outdated
Content: "This is a small sentence about a line chart", | ||
Image: "https://example.com/image9.jpg", | ||
Widget: "gauge", | ||
Widget: "tempGauge", | ||
}, | ||
{ | ||
Title: "Line Chart", |
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.
Line chart is being repeated a couple of times
c0a7326
to
9743af1
Compare
ui/charts.go
Outdated
{ | ||
Title: "Time Series Line Chart", | ||
Content: "This is a small sentence about a line chart", | ||
Image: "https://example.com/image1.jpg", |
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.
remove the image field if we are not using it. If we are using it, find relevant open source images to use for the images
9743af1
to
e687f0d
Compare
height: 600, | ||
}); | ||
var app = {}; | ||
const categories = (function () { |
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.
use var
instead of const
Signed-off-by: Musilah <[email protected]>
Signed-off-by: Musilah <[email protected]>
Signed-off-by: Musilah <[email protected]>
Signed-off-by: Musilah <[email protected]>
Signed-off-by: Musilah <[email protected]>
Signed-off-by: Musilah <[email protected]>
Signed-off-by: Musilah <[email protected]>
Signed-off-by: Musilah <[email protected]>
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.
Newly added widgets are not resizable. However, if I first save and after that enter edit mode, I can see the resize option.
Signed-off-by: ianmuchyri <[email protected]>
* add charts support Signed-off-by: Musilah <[email protected]> * add bar and line charts Signed-off-by: Musilah <[email protected]> * add charts subdirectory Signed-off-by: Musilah <[email protected]> * fox service.go Signed-off-by: Musilah <[email protected]> * add dynamicdatachartmodal Signed-off-by: Musilah <[email protected]> * add images to widgets Signed-off-by: Musilah <[email protected]> * add chart widget images Signed-off-by: Musilah <[email protected]> * fix: remove copyright images Signed-off-by: Musilah <[email protected]> * remove comment from code Signed-off-by: ianmuchyri <[email protected]> --------- Signed-off-by: Musilah <[email protected]> Signed-off-by: ianmuchyri <[email protected]> Co-authored-by: ianmuchyri <[email protected]>
* add charts support Signed-off-by: Musilah <[email protected]> * add bar and line charts Signed-off-by: Musilah <[email protected]> * add charts subdirectory Signed-off-by: Musilah <[email protected]> * fox service.go Signed-off-by: Musilah <[email protected]> * add dynamicdatachartmodal Signed-off-by: Musilah <[email protected]> * add images to widgets Signed-off-by: Musilah <[email protected]> * add chart widget images Signed-off-by: Musilah <[email protected]> * fix: remove copyright images Signed-off-by: Musilah <[email protected]> * remove comment from code Signed-off-by: ianmuchyri <[email protected]> --------- Signed-off-by: Musilah <[email protected]> Signed-off-by: ianmuchyri <[email protected]> Co-authored-by: ianmuchyri <[email protected]>
* add charts support Signed-off-by: Musilah <[email protected]> * add bar and line charts Signed-off-by: Musilah <[email protected]> * add charts subdirectory Signed-off-by: Musilah <[email protected]> * fox service.go Signed-off-by: Musilah <[email protected]> * add dynamicdatachartmodal Signed-off-by: Musilah <[email protected]> * add images to widgets Signed-off-by: Musilah <[email protected]> * add chart widget images Signed-off-by: Musilah <[email protected]> * fix: remove copyright images Signed-off-by: Musilah <[email protected]> * remove comment from code Signed-off-by: ianmuchyri <[email protected]> --------- Signed-off-by: Musilah <[email protected]> Signed-off-by: ianmuchyri <[email protected]> Co-authored-by: ianmuchyri <[email protected]>
* add charts support Signed-off-by: Musilah <[email protected]> * add bar and line charts Signed-off-by: Musilah <[email protected]> * add charts subdirectory Signed-off-by: Musilah <[email protected]> * fox service.go Signed-off-by: Musilah <[email protected]> * add dynamicdatachartmodal Signed-off-by: Musilah <[email protected]> * add images to widgets Signed-off-by: Musilah <[email protected]> * add chart widget images Signed-off-by: Musilah <[email protected]> * fix: remove copyright images Signed-off-by: Musilah <[email protected]> * remove comment from code Signed-off-by: ianmuchyri <[email protected]> --------- Signed-off-by: Musilah <[email protected]> Signed-off-by: ianmuchyri <[email protected]> Co-authored-by: ianmuchyri <[email protected]>
* add charts support Signed-off-by: Musilah <[email protected]> * add bar and line charts Signed-off-by: Musilah <[email protected]> * add charts subdirectory Signed-off-by: Musilah <[email protected]> * fox service.go Signed-off-by: Musilah <[email protected]> * add dynamicdatachartmodal Signed-off-by: Musilah <[email protected]> * add images to widgets Signed-off-by: Musilah <[email protected]> * add chart widget images Signed-off-by: Musilah <[email protected]> * fix: remove copyright images Signed-off-by: Musilah <[email protected]> * remove comment from code Signed-off-by: ianmuchyri <[email protected]> --------- Signed-off-by: Musilah <[email protected]> Signed-off-by: ianmuchyri <[email protected]> Co-authored-by: ianmuchyri <[email protected]>
* add charts support Signed-off-by: Musilah <[email protected]> * add bar and line charts Signed-off-by: Musilah <[email protected]> * add charts subdirectory Signed-off-by: Musilah <[email protected]> * fox service.go Signed-off-by: Musilah <[email protected]> * add dynamicdatachartmodal Signed-off-by: Musilah <[email protected]> * add images to widgets Signed-off-by: Musilah <[email protected]> * add chart widget images Signed-off-by: Musilah <[email protected]> * fix: remove copyright images Signed-off-by: Musilah <[email protected]> * remove comment from code Signed-off-by: ianmuchyri <[email protected]> --------- Signed-off-by: Musilah <[email protected]> Signed-off-by: ianmuchyri <[email protected]> Co-authored-by: ianmuchyri <[email protected]>
What type of PR is this?
What does this do?
This creates chart templates that will be added to the widgets.
Which issue(s) does this PR fix/relate to?
Have you included tests for your changes?
Did you document any new/modified functionality?
Notes
The charts being added include: