Commit graph

1860 commits

Author SHA1 Message Date
Michael
725048c864
fix helix docs with new image and whitespace for code blocks (#1100)
* update helix image to be square to fix stretching

* fix whitespace in helix docs for code blocks
2026-03-23 22:12:49 +00:00
Mahad Kalam
f145cc2baa
Fix repo mapping job silently failing (#1102) 2026-03-23 13:07:00 +00:00
Mahad Kalam
523d7e6ffb
Bugfixes (#1101)
* Progress bar should be primary colour

* Projects page shouldn't refresh on archive

* Fix GitHub syncing

* Add HCA lookup

* Fix .ad and .mdx

* Misc.

* Badges can use owner/repo

* Format + make Zeitwerk happy
2026-03-23 12:51:04 +00:00
Mahad Kalam
245c458f41
Filter out raw_data (#1099) 2026-03-22 18:33:01 +00:00
Mahad Kalam
95580df3ba
Bye raw_heartbeat_uploads! (#1098)
* Drop raw_heartbeat_uploads

* oops

* Make it friendly

* finalizad

* goog

* bundlarr

* remove the newlines
2026-03-22 18:16:19 +00:00
dependabot[bot]
8681dbd9bc
Bump http from 6.0.1 to 6.0.2 (#1095)
Bumps [http](https://github.com/httprb/http) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/httprb/http/releases)
- [Changelog](https://github.com/httprb/http/blob/main/CHANGELOG.md)
- [Commits](https://github.com/httprb/http/compare/v6.0.1...v6.0.2)

---
updated-dependencies:
- dependency-name: http
  dependency-version: 6.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>
2026-03-22 12:12:23 +00:00
Mahad Kalam
a9f3b613cd
Fix crash when project name contains newline characters (#1096)
Project names with newlines (e.g. from misbehaving editor plugins) caused
ActionController::UrlGenerationError when loading /my/projects because Rails
route constraints reject newlines in URL parameters.

- Strip control characters from project names at heartbeat ingestion time
- Detect newlines in broken_project_name? to mark such projects as broken
- Skip URL generation for broken project names to prevent the crash

https://claude.ai/code/session_016CtSDw18BePckUBQ2teeuQ

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-20 20:21:12 +00:00
Mahad Kalam
10a30290e8
Bundle and package updates (#1092)
* Update Bundle + Bun

* Let's use Rails 8.2?

* ffs

* arghhhh
2026-03-19 12:09:09 +00:00
github-actions[bot]
2bd0a5ff5c
Update Linguist languages.yml to latest upstream (#1078)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-19 11:21:52 +00:00
Michael
41f30aadc1
Add documention for the Helix editor (#1085)
* add helix icon

* make helix setup guide based off of godot's

* register helix in docs controller

* Update docs/editors/helix.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update docs/editors/helix.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update docs/editors/helix.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update docs/editors/helix.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update docs/editors/helix.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Casing changes

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>
2026-03-19 11:19:52 +00:00
Alex Radu
e0423fe495
Add 'today' to dashboard logged time sentence (#1083)
* Add 'today' to dashboard logged time sentence

* Add comma :P

---------

Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>
2026-03-17 18:17:19 +00:00
Mahad Kalam
b915f6d4d9
Revert "Fix grouped duration_seconds overcounting by using global LAG instead…" (#1077)
This reverts commit 972d6d2e33.
2026-03-15 21:51:17 +00:00
Mahad Kalam
d38b7f71f5
Mailer previews + partialify the weekly summary (#1076)
* Mailer previews + partialify

* oops
2026-03-15 20:35:48 +00:00
Mahad Kalam
972d6d2e33
Fix grouped duration_seconds overcounting by using global LAG instead of partitioned LAG (#1075) 2026-03-15 20:22:01 +00:00
Mahad Kalam
9858cec9de Fix flaky HeartbeatExportTest 2026-03-15 16:03:06 +00:00
Mahad Kalam
27b1c4c167 Switch to Inter in emails 2026-03-15 15:33:34 +00:00
Mahad Kalam
8d00418059
Spring cleaning (#1074)
* fix: use owner/repo format for project badges

Updates badge URLs to use GitHub-style owner/repo format (e.g., "hackclub/hackatime")
instead of project names. This ensures compatibility with external badge services that
expect repository paths.

Changes:
- Add Repository#full_path method to get owner/repo format
- Update settings controller to pass both display names and repo paths
- Update Badges component to display project names but use repo paths in URLs

* fix: improve user lookup in API v1 stats endpoint

Use the robust lookup_user method for username parameter in the /api/v1/stats endpoint
to ensure consistent user lookup across all API endpoints. This properly handles Slack
UIDs (HCA IDs), numeric user IDs, and usernames in the correct priority order.

* fix: reduce clutter on new user homepage

Simplify the new user experience by:
- Removing redundant "Hello friend" text from setup notice (header already provides context)
- Hiding GitHub link banner when setup notice is shown to focus user on primary action

This reduces visual clutter and helps new users focus on completing setup first.

* fix: enable full app layout for new OAuth application page

Remove layout=false directive that was preventing the app header and navigation
from appearing on the new OAuth application creation page.

* fix: add antigravity editor to docs

Add documentation for Antigravity, a VSCode fork from Google with built-in AI
features. Includes setup instructions for tracking time with Hackatime using the
WakaTime extension.

* fix: improve stat card subtitle positioning

Remove absolute positioning from subtitle text to allow it to flow naturally after
the main value. This prevents the subtitle from being pushed to the bottom when
other cards have longer content.

* fix: align settings action buttons to card end on larger screens

Remove width constraint from footer to allow action buttons to align to the right
edge of the full card width instead of being constrained to a narrower container.

* fix: improve heartbeat importer visibility on light themes

Update import provider cards and radio buttons to have better contrast on light themes:
- Use bg-surface-100 instead of bg-darker for better card visibility
- Increase radio button border thickness and use darker border color
- Add hover and focus states for better interactivity

* Split up settings controller + perf + goal display

* Make stat card subtitles larger

* Fix AG + VS Code

* Remove Shiba refs

* Bundle update
2026-03-15 15:26:32 +00:00
Mat Manna
49ea53128d
feat: add hacka-box to badges settings (#1073)
* feat: add hacka-box to badges settings

* style: fix rubocop and svelte formatting issues (literally 1984 btw)

* Fix formatting in HackaBox Gist section

---------

Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>
2026-03-15 13:51:27 +00:00
Mat Manna
07bcbfb432
fix: unauthd signin page link on non intertiafied pages like /leaderboards (#1072) 2026-03-15 11:06:43 +00:00
Mat Manna
c4bf861fa1
fix: total time label on projects page (#1071) 2026-03-14 16:53:43 +00:00
Mahad Kalam
28fa174861
Add Sentry monitoring for previously unreported errors (#1066)
* Add Sentry monitoring for previously unreported errors

* Fix

* Fixes

* whoops!
2026-03-13 11:06:12 +00:00
Mahad Kalam
922e7384c0
Fix email from name/dates, login flash, wakatime_setup redirect, Sunday 6:30pm GMT (#1067)
* Smol fixes

* Map <<LAST_LANGUAGE>

* whoops

* Fix

* Move emails from Friday to Sunday
2026-03-13 10:53:57 +00:00
Mahad Kalam
607480ff8d
Imports v2.5 (#1065)
* Imports are back!!

* Settings UI v3

* Use Inertia forms for heartbeat imports

* Update app/javascript/pages/Users/Settings/Data.svelte

* Update Bundle

* Fix broken Form/Button markup in Data.svelte settings page

* Update JS deps

* Greptile fixes

* Remove dead code

* Fixy wixy

* woohoo

* fixes

* Fix

* Fixes

* Fix TC

* Fix TC

* welp

* test

* Even more Greptile fixes
2026-03-13 09:34:40 +00:00
github-actions[bot]
cf72b56a4b
Update Linguist languages.yml to latest upstream (#1061)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>
2026-03-12 21:28:30 +00:00
Mahad Kalam
667d3a7c93
WakaTime/Hackatime v1 imports + Settings v2 (#1062)
* Imports are back!!

* Settings UI v3

* Use Inertia forms for heartbeat imports

* Update app/javascript/pages/Users/Settings/Data.svelte

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update Bundle

* Fix broken Form/Button markup in Data.svelte settings page

* Update JS deps

* Greptile fixes

* Remove dead code

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-03-12 21:27:10 +00:00
Mahad Kalam
ea9596cb7d
Linguist auto-updater! (god I hate GHA) (#1059) 2026-03-12 08:48:06 +00:00
Mahad Kalam
60db83996a
Revert "Revert "Migrate Lapse heartbeats + concurrent index on heartbeats' user_agent"" (#1058)
* Revert "Revert "Migrate Lapse hbs + concurrent index on heartbeats' user_agen…"

This reverts commit 1d6947903b.

* Delete db/migrate/20260311170528_update_lapse_heartbeat_language.rb
2026-03-11 17:26:40 +00:00
Mahad Kalam
1d6947903b
Revert "Migrate Lapse hbs + concurrent index on heartbeats' user_agent (#1056)" (#1057)
This reverts commit cda06a30be.
2026-03-11 17:18:46 +00:00
Mahad Kalam
cda06a30be
Migrate Lapse hbs + concurrent index on heartbeats' user_agent (#1056)
* Add concurrent index on heartbeats user_agent

* whoops, forgot to commit :skulk:
2026-03-11 17:08:38 +00:00
Mahad Kalam
606bdaed01
Clean up migrations + schema.rb (#1055)
* Drop unused heartbeat lookup tables and their FK columns

Remove 8 abandoned normalization tables (heartbeat_branches,
heartbeat_categories, heartbeat_editors, heartbeat_languages,
heartbeat_machines, heartbeat_operating_systems, heartbeat_projects,
heartbeat_user_agents) and their corresponding foreign key columns
from the heartbeats table. None had models, associations, or any
application code referencing them.

* Remove migrations cancelling each other out
2026-03-11 16:52:35 +00:00
Mahad Kalam
55a63b4ec1
Make Linguist extensible via languages_custom.yml (#1054)
* Support custom language definitions via languages_custom.yml

* Add workflow to auto-update Linguist languages.yml from upstream

* Use deep_merge
2026-03-11 16:05:03 +00:00
Mahad Kalam
06d58362e1
Add Lapse as a recognized language with color (#1053) 2026-03-11 13:06:48 +00:00
Freddie Yershon
6d0bfa433f
Add Hackastreak extension to the list (#1045)
* Add HackaStreak extension to the list

* Update app/javascript/pages/Extensions/Index.svelte

* Fix description casing for HackaStreak extension

* Add button label for extension installation

* Apply suggestion from @skyfallwastaken

Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>

* Fix description formatting for HackaStreak

I think this is right, I'm not 100% sure?

---------

Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>
2026-03-07 22:23:26 +00:00
Micha Albert
504964a518
Fix ban notice wording (#1038)
* Fix ban notice wording

* fix CI for ban notice

* resolve ban message changes

* fix CI for revised ban notice changes
2026-03-05 05:19:02 +00:00
Mahad Kalam
2cbf2b6cdc
Add installer repo to README (#1036) 2026-03-04 12:45:57 +00:00
Mat Manna
9c9b97f7af
Add HCA OAuth Instructions to DEVELOPMENT.md (#1025)
* add new icon from bounty

* docs: add local oauth instructions to DEVELOPMENT.md

* docs: edit language / spacing a bit for consistency

* docs: add vite build step to local development instructions

* docs: apply suggestion from @skyfallwastaken

Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>

---------

Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>
2026-03-03 19:48:58 +00:00
Mahad Kalam
75180f5c51
Add LICENSE 2026-03-03 15:58:43 +00:00
Mahad Kalam
9c91d71a1b
Remove maintenance mode middleware, controller, and page (#1031) 2026-03-02 20:07:17 +00:00
AJ
6fb37ad075
Update Settings > Integrations page to match theme (#1029)
* Update Integrations.svelte

Change Reconnect GitHub button from white text to black text

* Changed it from text-black to text-on-primary

* Update Integrations.svelte
2026-03-02 19:53:12 +00:00
Mahad Kalam
d16c67d1e9
Add maintenance page (#1030)
* Add maintenance page

* Update the page a lil

* Oops

* Fixes!
2026-03-02 16:01:40 +00:00
Mahad Kalam
483c723bc4
Fix stats_controller's total_seconds param (#1022) 2026-03-01 19:07:07 +00:00
Mahad Kalam
1f695850e5
Bring back Mailkick (#1021)
* Sources say Charlie Kick is stable. Please god

* Some tests + guards + unsub URL fix

* Fix lockfile!

* bin/rubocop -A

* if this does not work I am going to kms

* phew
2026-03-01 14:26:54 +00:00
Mahad Kalam
c846217ce6
Revert all commits after d5d987a8f4 (#1020)
Reverts the following commits:
- 2e3cfd60 Revert Mailkick
- de320443 Merge branch 'main'
- efd189a8 Add safety-hatch for summary emails
- d5c62922 Remove exploding queries (#1018)
- 2b37201d Bump actions/upload-artifact from 6 to 7 (#1007)
- a4c10b47 Expand scopes to all time for summaries/goals (#1017)
- 4dec2f44 Unsubscribe links + slow job monitoring (#1016)
2026-03-01 13:09:10 +00:00
Mahad Kalam
0c7fb13c82
Revert Mailkick (#1019) 2026-03-01 12:56:23 +00:00
Mahad Kalam
de32044332 Merge branch 'main' of https://github.com/hackclub/hackatime 2026-03-01 12:43:51 +00:00
Mahad Kalam
efd189a8c4 Add safety-hatch for summary emails 2026-03-01 12:43:41 +00:00
Mahad Kalam
d5c6292220
Remove exploding queries (#1018) 2026-03-01 12:42:28 +00:00
dependabot[bot]
2b37201dac
Bump actions/upload-artifact from 6 to 7 (#1007)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>
2026-03-01 12:19:36 +00:00
Mahad Kalam
a4c10b473a
Expand scopes to all time for summaries/goals (#1017)
* Expand scopes to all time for summaries/goals

* oops i forgor to remove the second line
2026-03-01 12:18:22 +00:00
Mahad Kalam
4dec2f44a4
Unsubscribe links + slow job monitoring (#1016)
* Notable + unsubscribe links

* Add the migrations/initializers!

* oops

* Fix a bug

* Address Copilot warn

* Fixes

* stop swallowing errors!!!!

* Flipper flag WeeklySummaryEmailJob

* Split WeeklySummaryEmailJob into new email
2026-03-01 12:11:38 +00:00