Add flexible date pickers and export options to stock dashboard

Introduces a reusable date picker component with support for single date, date range, and month selection. Updates the stock management page to allow exporting reports by daily, weekly, monthly, or custom date ranges using the new pickers. Refactors promotion form to use the new date picker for start and end dates. Adds more business quotes to the quotes config.
This commit is contained in:
NotII
2025-07-30 00:38:25 +02:00
parent 48cfd45fb1
commit 1b51f29c24
5 changed files with 575 additions and 39 deletions

View File

@@ -1,8 +1,3 @@
/**
* Business motivation quotes for the dashboard
* Collection of quotes from successful entrepreneurs and business leaders
*/
export interface Quote {
text: string;
author: string;
@@ -50,6 +45,38 @@ export const businessQuotes: Quote[] = [
{ text: "If you want to achieve greatness stop asking for permission.", author: "Anonymous" },
{ text: "Things work out best for those who make the best of how things work out.", author: "John Wooden" },
{ text: "The most valuable businesses of coming decades will be built by entrepreneurs who seek to empower people rather than try to make them obsolete.", author: "Peter Thiel" },
// Additional quotes - Vision and leadership
{ text: "Leadership is the capacity to translate vision into reality.", author: "Warren Bennis" },
{ text: "A goal without a plan is just a wish.", author: "Antoine de Saint-Exupéry" },
{ text: "Good business leaders create a vision, articulate the vision, passionately own the vision, and relentlessly drive it to completion.", author: "Jack Welch" },
// Additional quotes - Risk, failure, and learning
{ text: "Fail often so you can succeed sooner.", author: "Tom Kelley" },
{ text: "Dont worry about failure; you only have to be right once.", author: "Drew Houston" },
{ text: "In the middle of difficulty lies opportunity.", author: "Albert Einstein" },
{ text: "Risk more than others think is safe. Dream more than others think is practical.", author: "Howard Schultz" },
// Additional quotes - Action and hustle
{ text: "Ideas are easy. Implementation is hard.", author: "Guy Kawasaki" },
{ text: "Success usually comes to those who are too busy to be looking for it.", author: "Henry David Thoreau" },
{ text: "Done is better than perfect.", author: "Sheryl Sandberg" },
{ text: "Action is the foundational key to all success.", author: "Pablo Picasso" },
// Additional quotes - Customer and product
{ text: "People don't buy what you do; they buy why you do it.", author: "Simon Sinek" },
{ text: "The customer is the most important part of the production line.", author: "W. Edwards Deming" },
{ text: "Make something people want and sell that, or be someone people need and sell yourself.", author: "Naval Ravikant" },
// Additional quotes - Resilience and mindset
{ text: "Success is walking from failure to failure with no loss of enthusiasm.", author: "Winston Churchill" },
{ text: "Whether you think you can or you think you cant, youre right.", author: "Henry Ford" },
{ text: "Strength and growth come only through continuous effort and struggle.", author: "Napoleon Hill" },
{ text: "Believe you can and you're halfway there.", author: "Theodore Roosevelt" },
// Additional quotes - Money and value
{ text: "Try not to become a man of success, but rather try to become a man of value.", author: "Albert Einstein" },
{ text: "Price is what you pay. Value is what you get.", author: "Warren Buffett" },
];
// For backward compatibility with existing code
@@ -88,4 +115,4 @@ export function getQuotesByTheme(keyword: string): Quote[] {
return businessQuotes.filter(quote =>
quote.text.toLowerCase().includes(keyword.toLowerCase())
);
}
}