-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Job clean refactor #419
Job clean refactor #419
Conversation
I introduce a certain date format here. I must stress that I see advantage in formatting dates only client side and me as well as Luxon advises against using custom formats. That means just pass ISO date strings or Unix timestamps and let the client figure it out. This goes further: I prefer not to render HTML server side, not to format numbers and not to postfix (SI) units of measurement (although we could provide the unit of measurements separately). This way the client has the final say in formatting. |
1e9ee4e
to
f194c5f
Compare
cdbc3a0
to
341f77e
Compare
c1210c0
to
2d7893a
Compare
25215c4
to
67469a0
Compare
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.
Some issues I've noticed, apart from these is looking good!
Expected filament costs.
- When no spool selected I get Total 0, and Tool 0: null. Total is correct but tool should not be null. We can't really default here regardless so 0 is fine.
- Expected Units Total displays 0, even with units on Tool. This is actually a bug of mine so I'm happy to take a look if you'd prefer? I did this like. Been meaning to fix for a while.
- Expected printer cost isn't fixed to 2 decimal places. Should be 0.04 on my test gcode and got 0.0429327937923
Luxon is a sweet package good choice! Yes I agree there, we can certainly work to push this more client side. Especially for V2. |
f2abe90
to
7ba6bc7
Compare
Lets fix the bugs you mention in this PR. There's breathing room for it, only 5 files changed. I hope to have more PR's like that in future (be honest, History Clean was way to big haha). |
d84821a
to
6e6af55
Compare
@NotExpectedYet are the bugs you mentioned related to this PR?
I have no idea what to do haha. What should I look at in the UI or, even better, is this related to this PR?
Please do, because this PR doesnt do a lot except slight code cleanup (no big changes) and date formatting.
The third rounding bug is fixed for now server-side. |
156dd29
to
4cc127d
Compare
4cc127d
to
1d1a116
Compare
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.
I'll approve this now and then we can fix my bug in another PR.
This is followup of #406 and will keep track of that first and when that other PR is merged, I will rebase this one on top.
generate(...)
and date formatting ✔️ ✔️