redpangilinan / iotawise Goto Github PK
View Code? Open in Web Editor NEWTrack your daily habits, activity streaks, and progress with little effort.
Home Page: https://iotawise.rdev.pro
License: MIT License
Track your daily habits, activity streaks, and progress with little effort.
Home Page: https://iotawise.rdev.pro
License: MIT License
Hey! I noticed there is a timezone issue when creating Activity Logs. When creating a log, it is automatically adding the user's Timezone (I am in EST, GMT-5)
This creates an issue when the user selects a date range. When selected, the range does not include a timezone so the logs on the last day of the range are not included in subsequent results. When manually updating the "to"
date in the URL to include a time later than the timezone offset, the user will see the correct results.
There is a function formatDate
function formatDate(e) {
let t = new Date(e);
return Intl.DateTimeFormat("en-US", {
month: "short",
day: "numeric",
year: "numeric"
}).format(t)
}
that was given amongst many correct dates an e = "16/01/2024"
which caused to throw an error and whole dashboard fails to load (it shows only: "Application error: a client-side exception has occurred (see the browser console for more information).").
After inspecting a call stack it seems the problem lays in a function LogsDeleteButton
that converts this date (in a correct format "Tue Jan 16 2024 ...") using t.date.toLocaleDateString()
which is later passed to formatDate
which causes an error.
I failed to compile it locally (I would be glad for an updated Running Locally section of README), but I assume that changing
Delete logs from {formatDate(logs.date.toLocaleDateString())}?
to Delete logs from {formatDate(logs.date)}?
in components/activity/logs/logs-delete-button.tsx should fix the issue, but I'm unable to confirm.
Suggestion: Add a "Quick Log" button next to an activity dropdown on a dashboard. It should immediatelly create a log with single count on today's date. Users will mostly log a simple entry, choosing an "Add Log" from a dropdown, then filling a form, and confirming it just makes a simple task very tedious.
PS: Great simple app, just what I was looking for, thank you!
I would gladly contribute, I'll just need to learn some typescript first.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.