Skip to content

Commit 2cb2635

Browse files
committed
refactor(demo-data): simplify demo data seed documentation
- Removed detailed descriptions of demo data contents from the migration documentation to streamline the information presented. - Updated the demo data seed migration to maintain clarity while focusing on essential details for first-time users.
1 parent 309b8df commit 2cb2635

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

packages/web/src/common/storage/migrations/external/demo-data-seed.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,8 @@ function generateDemoData() {
179179
* This migration checks if the user has any existing events or tasks.
180180
* If storage is empty (first-time user), it populates the app with
181181
* sample data so they can immediately explore functionality.
182-
*
183-
* Demo data includes:
184-
* - 4 timed today events with different priorities (work, self, relationships, unassigned)
185-
* - 1 all-day today event
186-
* - 2 someday events (week and month)
187-
* - 5 today tasks
188-
* - 3 completed yesterday tasks
189-
* - 1 tomorrow task
190182
*/
183+
191184
export const demoDataSeedMigration: ExternalMigration = {
192185
id: "demo-data-seed-v1",
193186
description: "Seed demo data for first-time users",

packages/web/src/views/Day/components/ContextMenu/TaskContextMenu.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe("TaskContextMenu", () => {
4242
await waitFor(async () => {
4343
expect(await screen.findByText("Delete Task")).toBeInTheDocument();
4444
});
45-
}, 10000);
45+
});
4646

4747
it("should show Delete Task menu item when menu is open", async () => {
4848
const user = userEvent.setup();

packages/web/src/views/Day/view/DayViewContent.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe("TodayViewContent", () => {
177177

178178
// Assert task is removed from DOM
179179
expect(taskCheckbox).not.toBeInTheDocument();
180-
}, 10000);
180+
});
181181

182182
it("should NOT delete task when Delete key is pressed on input field", async () => {
183183
const { user } = renderWithDayProviders(<DayViewContent />);

0 commit comments

Comments
 (0)