hackclub / hackclub/hackatime

Bug: Subdirectories registered as projects with 0m duration and hidden on 'My Projects' page

Open
#1,683 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
204
Forks
167
Avg merge
19h 55m
Merged PRs (30d)
27

Description

## Problem Description
There is a discrepancy between the **Project Durations** chart and the **My Projects** overview page. Subdirectories (like `css` and `_layouts`) are incorrectly being classified as standalone projects with `0m` time, but they do not appear under the **My Projects** dashboard.

## Steps to Reproduce
1. Open a project that contains subfolders such as `css/` or `_layouts/`.
2. View the dashboard under **Project Durations**.
3. Observe that subfolders are listed as separate projects with `0m` duration.
4. Navigate to **My Projects** and notice only the main project is listed (1 project instead of 3).

## Expected Behavior
- Subdirectories should not be parsed as separate projects unless explicitly configured with a `.wakatime-project` file.
- The project count and list in **Project Durations** should consistently match the list displayed on the **My Projects** page.

## Actual Behavior
The parser extracts subfolders as individual projects with `0m` time on the duration breakdown, but the **My Projects** list excludes them, creating inconsistent UI states.

## Screenshots
- **Project Durations showing 3 projects (`Raise your Builder page`, `css`, `_layouts`):**
![Project Durations Screenshot](https://github.com/user-attachments/assets/6b133584-1f8f-46de-ae85-e157293351d3)

- **My Projects page showing only 1 active project:**
![My Projects Screenshot](https://github.com/user-attachments/assets/476d8a63-e572-4ab5-8e62-88bde47d6291)

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named in the report. Start by reproducing the discrepancy with a project containing css/ or _layouts/, then trace how subdirectories become projects in Project Durations and how My Projects filters them. Done means both views consistently exclude subdirectories unless a .wakatime-project file explicitly configures them.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
backend, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.