Skip to content

Conversation

@ktny
Copy link
Owner

@ktny ktny commented Jul 6, 2025

Summary

  • Remove redundant loadAllSessions function
  • Rename loadSessionsInTimeRange to loadSessions for better clarity
  • Update App component to use the unified loading function

Test plan

  • Code compiles without errors
  • Existing functionality remains unchanged
  • All time filtering works as expected

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Refactor

    • Unified session loading logic under a single timeline-based function with simplified filtering.
    • Renamed session-related types and functions to more generic timeline and event terminology.
    • Streamlined data loading and grouping processes for improved consistency.
  • Chores

    • Updated all relevant imports and type references to use the new timeline and event nomenclature.

@coderabbitai
Copy link

coderabbitai bot commented Jul 6, 2025

## Walkthrough

The changes refactor session event handling by replacing domain-specific types (`SessionEvent`, `SessionTimeline`) with generic ones (`Event`, `Timeline`), unify and rename loading functions into a single `loadTimelines` function with simplified filtering, and update all related imports and type annotations across the codebase and tests accordingly. No core logic or control flow is changed.

## Changes

| File(s)                                      | Change Summary                                                                                                         |
|----------------------------------------------|------------------------------------------------------------------------------------------------------------------------|
| src/core/parser/index.ts                      | Replaced domain-specific types with generic ones; renamed `loadSessionsInTimeRange``loadTimelines`; removed `loadAllSessions`; simplified event loading and grouping logic. |
| src/models/models.ts                          | Renamed `SessionEventSchema``EventSchema`, `SessionEvent``Event`, and `SessionTimeline``Timeline`; updated interface property types accordingly.                    |
| src/ui/App.tsx                               | Updated imports and state types to use `Timeline` and `loadTimelines`; replaced calls to old session-loading functions with unified `loadTimelines`.                       |
| src/ui/ProjectTable.tsx                       | Updated import and prop type from `SessionTimeline` to `Timeline`.                                                     |
| src/ui/components/ProjectRow.tsx              | Updated import and prop type from `SessionTimeline` to `Timeline`.                                                     |
| src/ui/components/TimelineBar.tsx             | Updated import and prop type from `SessionTimeline` to `Timeline`.                                                     |
| src/ui/utils/tableUtils.ts                     | Updated import and function parameter type from `SessionTimeline[]` to `Timeline[]`.                                  |
| src/utils/__tests__/project-filter.test.ts    | Updated imports, function signatures, and mock data types from `SessionTimeline` to `Timeline`.                       |
| src/utils/__tests__/sort.test.ts               | Updated imports and mock data types from `SessionTimeline` to `Timeline`.                                             |
| src/utils/sort.ts                              | Updated import and function parameter/return types from `SessionTimeline[]` to `Timeline[]`.                          |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant UI as App.tsx
    participant Parser as Parser Module

    UI->>Parser: loadTimelines({startTime?, endTime?, projectNames?}, progressTracker)
    Parser->>Parser: scan project directories for .jsonl files
    Parser->>Parser: parse and validate events using EventSchema
    Parser->>Parser: filter events by time and project names
    Parser->>Parser: group events by repository
    Parser->>Parser: create timelines from grouped events
    Parser-->>UI: Promise<Timeline[]>

Possibly related PRs

Poem

🐇 Through fields of code, I hop and see,
Events and timelines, now fancy-free.
One function calls, no fuss, no maze,
Loading data in simpler ways.
With names aligned and types anew,
The code runs smooth, like morning dew!
🌿✨


<!-- walkthrough_end -->
<!-- This is an auto-generated comment: all tool run failures by coderabbit.ai -->

> [!WARNING]
> There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.
> 
> <details>
> <summary>🔧 ESLint</summary>
> 
> > If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.
> 
> npm error Exit handler never called!
> npm error This is an error with npm itself. Please report this error at:
> npm error   <https://github.com/npm/cli/issues>
> npm error A complete log of this run can be found in: /.npm/_logs/2025-07-06T05_10_42_132Z-debug-0.log
> 
> 
> 
> </details>

<!-- end of auto-generated comment: all tool run failures by coderabbit.ai -->


---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 059e0fcc8e9ce1d1fef12d9f502ef46a0eb8abe9 and 91be8e0db84a00c31ea7bbe63fcec8696c54ac1b.

</details>

<details>
<summary>📒 Files selected for processing (10)</summary>

* `src/core/parser/index.ts` (13 hunks)
* `src/models/models.ts` (2 hunks)
* `src/ui/App.tsx` (4 hunks)
* `src/ui/ProjectTable.tsx` (2 hunks)
* `src/ui/components/ProjectRow.tsx` (1 hunks)
* `src/ui/components/TimelineBar.tsx` (1 hunks)
* `src/ui/utils/tableUtils.ts` (2 hunks)
* `src/utils/__tests__/project-filter.test.ts` (2 hunks)
* `src/utils/__tests__/sort.test.ts` (2 hunks)
* `src/utils/sort.ts` (2 hunks)

</details>

<details>
<summary>✅ Files skipped from review due to trivial changes (6)</summary>

* src/ui/components/ProjectRow.tsx
* src/ui/components/TimelineBar.tsx
* src/ui/utils/tableUtils.ts
* src/utils/__tests__/sort.test.ts
* src/utils/__tests__/project-filter.test.ts
* src/models/models.ts

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (2)</summary>

* src/ui/App.tsx
* src/core/parser/index.ts

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🧬 Code Graph Analysis (2)</summary>

<details>
<summary>src/ui/ProjectTable.tsx (1)</summary><blockquote>

<details>
<summary>src/models/models.ts (1)</summary>

* `Timeline` (24-33)

</details>

</blockquote></details>
<details>
<summary>src/utils/sort.ts (1)</summary><blockquote>

<details>
<summary>src/models/models.ts (1)</summary>

* `Timeline` (24-33)

</details>

</blockquote></details>

</details>

</details>

<details>
<summary>🔇 Additional comments (4)</summary><blockquote>

<details>
<summary>src/ui/ProjectTable.tsx (2)</summary>

`3-3`: **LGTM! Import path updated correctly.**

The import has been properly updated to use the generic `Timeline` type from the unified models location.

---

`14-14`: **LGTM! Type interface updated consistently.**

The interface property type has been correctly updated from `SessionTimeline[]` to `Timeline[]`. Based on the interface definition in `src/models/models.ts` (lines 24-33), all required properties (`projectName`, `eventCount`, `activeDuration`, `startTime`, `endTime`) are present and compatible.

</details>
<details>
<summary>src/utils/sort.ts (2)</summary>

`1-1`: **LGTM! Import updated to use generic Timeline type.**

The import has been correctly updated to use the generic `Timeline` type from the unified models location, aligning with the refactoring objective.

---

`28-28`: **LGTM! Function signatures updated consistently.**

The function parameter and return types have been properly updated to use `Timeline[]` instead of `SessionTimeline[]`. All properties used in the sorting logic (`projectName`, `startTime`, `eventCount`, `activeDuration`) are present in the new `Timeline` interface, ensuring compatibility.



Also applies to: 32-32

</details>

</blockquote></details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNxU3bABsvkCiQBHbGlcSHFcLzpIACIbEgAzNDF8Ci4AVQx4ePlEaUR4fCwvfDRaeAwiSHjsDDECjGRMenzmbi8s+QBBKwBJaMg5SGxcvgBrXAx5bWZkAntcfzRmdvIw2BJ7PPrIYtLyyura8UK0dtx5crWNpiUBNFyNGHXGWExSZHKGL2wlPxJmfASfZXP60Gq0TChAAGu1onR8AGUtoVEFCqjU6oV0Bh6P4MEtgbhniQAB5IcQVSAwkq0JGIfIonoYaDwNg2N4kNGHTFYObU0p0hkNNFzVm8QHXLzOdSyR6dWhlY74nyyAA0IM63G4ClahXYKGQ2G4EJo9DmeHg7QAXhsiagall4FFcvTtrDgdylY84LaQjwpVgmBh4vAKDM1tQQTdrixuJbpJAAO7qWD4PCQSgUFKIdWk8kejFK04yv7MbQNIa1V4VOjqproHxhVkbENeGgUD0kajYfzIIMU4JhfBJlKjdDIUncUSm73PWxJ+6QUjkKimpMpkH3fKIXCYBgbfDxSAAYSlPw2x8UJA0Rn0xnAUDI9EPOAIxDIyjXTFY7C4vH4wjTpICaDNGVCqOoWg6HeJhQO4HyNFgaB4IQy6flE35sBgnB+Ggib2I4ZYuAM8hgSoaiaNouhgIY96mAYiAUAwAD0TD+Mx3DOCMzHlEoJIaLgiAcAY0SiQYFiQJ0PTviu1DOoRzjyC+DDVu8bjPNGC7IP4iTJP4ZrDv4bRJLazy8CQQJpsgtAsOWYCIFODCOgwYSyFOyBQoK9QAKJSNhULqp5yIYL57AIip/xoAF2L0EFrqFCyb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2S5bOua20yY2Ah0uYsdHJNav0Byj/RqSuk2Y6rGwyWBHdEEZYoSkmt/CE96piyip6jcEsus/Qu6j69Mr69igE7igG1G3A9BRgTBbYHxUi7SSWHsXkV7M4gipSx2jg1S0m/eUXZGzkle1K7YsykusWU4P2HhJEuYUBP9fODyOOhoQmpXRU/dV49SjXVsgc9w6msIP0Wm8cEYP6YW/2cLY9CWhIKW/cbzFg4ywaZW4DfhATSe4817IMbcGgbCZ6VW/wpk/ZNyrWzy4SmPHgPyvkgKw2jS5bC+1s+B9AOjaLdahQCjV7TAROXcQI2W9A4OZ6gpYcXjEMK2QIuYGc58Oc3khPJhv3PO9bQu6vcunOoSeamu+0pa+uhYxukCt0oRiC04/CjrfhZY16qgu6xiyi/vGiotBXImxIoi26kHBx3g6/NiwQji36kQ/68QrR9Gre9nE5finEurXeigfe3pAck64+pU3DFSjaMw0jBoTCnGnxAGno0Ir2cJngSJyWHErDDBhsZ+g8u6jxlU8+zSqw7SuwvShZeIQykBmkpQMhxkyc8B6h0bLy5M3ypRxclAo2tmo6H5RwzG821uiVXDO20O72k+io9ULRjeX6Upb2xqDZv6TNH2y/OZ0GUOkOhZ6qwB529ZzZlEbZy5XZ0pWOi5hq2o587bLRofbqu8AwWCBPP+5CN8fRjCFgXzLgKgfCACxSEiXh5QCCSiaCGib5h8HzdQAazCsa/wIEayugAaqFUIL5n5gABgAFYABOEgAl+IYLAADhIBJf3AAEZaB6Wup4h6WAAmWgEl+IIlgltlhIAAFgADY0ACWSABAqWVBaXqJDAfmSX6XQEaWCXaBxX+WRWCWGAABmelrsAAdlUBIEFY1cpdECpcFZJcFYYCJdVYYHlelboigEwhRbRYGoxadC4VoAGr030CAA -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=ktny/ccstat&utm_content=87):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

ktny and others added 3 commits July 6, 2025 14:02
- Remove loadAllSessions function as it was redundant
- Rename loadSessionsInTimeRange to loadSessions for clarity
- Update App component to use unified loadSessions function
- Simplify parameter handling in session loading logic

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ktny ktny force-pushed the refactor/simplify-session-loading branch from 059e0fc to 91be8e0 Compare July 6, 2025 05:09
@ktny ktny merged commit 08c56e6 into main Jul 6, 2025
0 of 2 checks passed
@ktny ktny deleted the refactor/simplify-session-loading branch July 6, 2025 05:12
@github-actions
Copy link

github-actions bot commented Jul 6, 2025

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants