Commit graph

137 commits

Author SHA1 Message Date
Mahad Kalam
e3456be187
goaaaal! (#985)
* Add goals

* Fix up some migrations

* Formatting

* Simplify migration

* Update test/controllers/settings_goals_controller_test.rb

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

* Update test/controllers/settings_goals_controller_test.rb

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

* Fix svelte-check issues, make CI less janky on dev

* svelte-check/fix tests

* Fix N+1s

* Formatting!

* More tests, fix anonymization and N+1

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-02-19 18:47:01 +00:00
Mahad Kalam
17d9679547
llms.txt/llms-full.txt/.md docs routes, SSR (#977)
* llms.txt/llms-full.txt/.md docs routes, SSR

* Fixes!

* Tests!

* More fixes

* Fix SSR!

* Update bin/docker-entrypoint

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

* Use Bun for SSR!

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-02-18 08:34:06 +00:00
Mahad Kalam
3fbc925572
Remove unused ERBs, /wakatime-alternative (#976)
* Remove unused ERBs, /wakatime-alternative

* Update grid icons

* Fix classes
2026-02-18 06:44:27 +00:00
Mahad Kalam
3f5470464a
New signed out page, new sign in page, no minimal login, fix redirect (#968)
* New signed out page, new sign in page, no minimal login, fix redirect
issue

* Format + deps

* Implement that fix

* Readd the numbers

* Remove the +s
2026-02-17 17:08:11 +00:00
Mahad Kalam
f3350234f5
Modals! New projects page! Better dev imports! Fix OAuth2 projects! (#958)
* Modals! New projects page!

* Update modal close buttons

* Make progress bar better

* Various fixes + tests

* Formatting

* Fix tests?
2026-02-16 23:11:25 +00:00
Mahad Kalam
044a1e4fea
Use Inertia deferred props + Prettier/svelte-check (#957) 2026-02-16 10:29:04 +00:00
Mahad Kalam
a375cf9c45
Fix build + remove unused files + fix that weird link behaviour with non-Inertia pages (#951)
* Remove unused files

* Fix build!

* unlinkify when it matters + no what is hackatime
2026-02-15 18:16:33 +00:00
Mahad Kalam
42ceec73cb
Upgrade Inertia + new settings page (#950)
* New settings?

* New Settings page!

* Vendor Inertia

* Fix some issues

* <Link>ify the site!
2026-02-15 17:32:26 +00:00
End
5f5eb93aed
Allow rotating OAuth applications' secrets (#933)
* feat(oauth): add rotate_secret action for oauth applications

Add POST routes and controller actions for both owner-facing and admin
OAuth application secret rotation using Doorkeeper's renew_secret.

* feat(oauth): add rotate secret button and flash display to views

Add Rotate Secret button with confirmation dialog to both owner and
admin show pages. Display rotated secret via flash with copy button.

* fix(oauth): restrict admin secret rotation to superadmins only

Add explicit superadmin authorization check in rotate_secret action.
The route constraint already limits access, but this adds defense in
depth at the controller level to prevent privilege escalation.

* fix(oauth): address PR review feedback for secret rotation

- Remove duplicate stale lines in admin controller
- Fix indentation in admin controller, both show views
- Add superadmin guard to admin rotate_secret action
- Use I18n for flash messages in doorkeeper controller
- Add respond_to HTML/JSON branches matching existing patterns
- Fix double space in before_action array

* let's clean up a bit?

* pt 2.

* Make it actually work :P

---------

Co-authored-by: Mahad Kalam <mahadkalam1234@gmail.com>
Co-authored-by: Mahad Kalam <55807755+skyfallwastaken@users.noreply.github.com>
2026-02-15 13:28:39 +00:00
Mahad Kalam
6c15a4a8b4 Loading skellies :D 2026-02-11 01:29:48 +00:00
Mahad Kalam
25d8035cff Revert "Add cache clear ubutton"
This reverts commit 5597574dad.
2026-02-11 01:10:23 +00:00
Mahad Kalam
5597574dad Add cache clear ubutton 2026-02-11 01:08:06 +00:00
Mahad Kalam
ef3f36c829
Inertia migration/UI3 (#911)
* Inertia p1?

* Inertia'fied signed out homepage?

* Split up signed in page

* WIP signed in v2?

* Better signed in?

* Clean up extensions page!

* Fix currently hacking

* Better docs page?

* Docs update 2

* Clean up "What is Hackatime?" + get rid of that godawful green dev mode

* Better nav?

* Cleaner settings?

* Fix commit times

* Fix flashes + OS improv

* Setup v2

* Readd some of the syncers?

* Remove stray emdash

* Clean up Step 3

* Oops, remove .vite

* bye bye, /inertia-example

* bin/rubocop -A

* Fix docs vuln
2026-02-09 11:26:30 +00:00
Mahad Kalam
2e0f128946
Add /api/v1/banned_users/counts (#907) 2026-02-05 18:23:21 +00:00
Mahad Kalam
166d9d30a0
ahoy is walking the plank (#903)
* Remove Ahoy

* Simplify migration

* sync migrations

* Update db/migrate/20260204113033_drop_ahoy_tables.rb

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-04 13:13:48 +00:00
Mahad Kalam
7e54f109ba
Revert "Add PgHero (#894)" (#895) 2026-02-02 17:45:00 -05:00
Mahad Kalam
a2716fcdb0
Add PgHero (#894) 2026-02-02 21:17:26 +00:00
Evan Gan
5a48670aac
Add banned_users endpoint to AdminController and update routes (#870)
* Add banned_users endpoint to AdminController and update routes

* Merge branch 'main' into addingGetBanAdminAPI_Endpoint

* move function out of private

* docs

* re swaggerize
2026-01-29 14:05:37 -05:00
Tom (Deployor)
8d0215ff0f
feat: added actual api docs (rswag) + ci enforcement (#846)
* feat: add API documentation and CI checks

- Add Rswag for automated API documentation generation
- Add Swagger specs for all endpoints
- Add CI step to enforce that swagger.yaml stays in sync with code
- Add static test keys in seeds.rb for easier testing
- Update AGENTS.md and README.md to support this

* Merge branch 'main' of https://github.com/deployor/hackatime

* Merge branch 'main' into main

* Deprecations! Yay! :)

* It was wan addicent i swear linter! Dont hurt me

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Copilot..... we love you! Also this project is open and so are api docs meant to be if another AI reads ts!

* Merge branch 'main' of https://github.com/deployor/hackatime

* Merge branch 'main' into main

* Merge branch 'main' into main

* Update app/controllers/api/admin/v1/admin_controller.rb

If you say so

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update spec/requests/api/v1/my_spec.rb

I guessss?

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Failed my own CI wow.... EMBARRASSINGGGG

* Merge branch 'main' into main

* Merge branch 'main' into main

* clarify wording on internal/revoke

* Merge branch 'main' into main

* update swagger docs
2026-01-27 01:05:49 -05:00
Echo
209b24effa
skeleton profiles (#853) 2026-01-26 00:08:33 -05:00
Echo
133f85d3a1
Joe endpoints for fraud (#850)
type shit

Co-Authored-By: ByteAtATime <byteatatime@proton.me>
2026-01-25 23:00:12 -05:00
Echo
3cb070e36c
skeleton leaderboards (#849) 2026-01-25 22:39:26 -05:00
Echo
55c8f5b926
Oauth apps for all! (#810)
* linting

* migrations

* user modelassss

* controllers

* views and shii

* fix bad input on seeds

* fix intenting

* DRY!!!
2026-01-19 22:24:21 -05:00
Echo
58f106c746
additional admin api endpoints (#782)
* additional admin api endpoints

* lint
2026-01-12 22:46:47 -05:00
Echo
bb55113732
add back broken routes from 777 (#778) 2026-01-08 12:33:48 -05:00
Echo
063403e4a0
admin api rework (#777)
Co-authored-by: TheUnknownHacker <128781393+The-UnknownHacker@users.noreply.github.com>
2026-01-08 12:28:21 -05:00
Echo
7ebb1b2085
archive projects (#770) 2026-01-06 09:28:39 -05:00
Echo
c62cb0f7da
remove mailing system (#763) 2026-01-03 09:25:47 -05:00
Echo
ae7d9c73fb
admin perms check (#760) 2026-01-03 08:34:57 -05:00
Max Wofford
e6ed172d85
Remove old neighborhood logic (#753)
Co-authored-by: Echo <github@3kh0.net>
2025-12-30 21:31:57 +01:00
nora
a1df7eddd1
add admin key revocation endpoint (#747)
* add admin key revocation endpoint

* include key name
2025-12-29 16:35:10 -05:00
Fox Ellison-Taylor
aee56d48ce
fuzzy admin user search (#741)
Co-authored-by: Echo <github@3kh0.net>
2025-12-28 20:24:47 +01:00
Kartikey Chauhan
3160a27bb1 remove execute endpoint 2025-12-28 10:39:37 +05:30
christian dubsky
378654db67
leaderboard api (#718)
Co-authored-by: Christian Well <christandubsky20@gmail.com>
2025-12-21 01:18:48 -05:00
Echo
335cc42654
Profiles (#719)
* new username logic

* lint

* change up settings for username

* user profiles
2025-12-21 00:54:04 -05:00
Arca Ege Cengiz
385bea56f7
add ability to unlink emails (#698) 2025-12-09 18:22:44 -05:00
Echo
64f9d9cb34
data deletion oneshot (#691) 2025-12-07 22:49:40 -05:00
Max Wofford
1680c03f63
Disable mailroom (#681) 2025-12-03 15:03:36 -05:00
Max Wofford
336ae5c944
Add HCA signin (#684) 2025-12-03 14:05:30 -05:00
Echo
64fc0f1f1b
better error handling (#677)
* swap honeybadger for sentry

* better error pages
2025-12-01 12:33:01 -05:00
Max Wofford
0e54365059
Add extensions page (#648) 2025-11-21 18:23:42 -05:00
Echo
0250448b5a
andrew rotate keys (#624) 2025-11-15 17:57:10 -05:00
Zach Latta
11948a33cc Try to improve SEO 2025-10-22 19:18:06 +00:00
Max Wofford
6ce033c98d
Add api key pulling for desktop client (#563) 2025-10-03 21:05:28 -04:00
Max Wofford
5ae07f5643
Patch up oauth implementation (#560) 2025-10-03 18:22:37 -04:00
Jeffrey Wang
9d8cc0d75d
Add heartbeat import (#469) 2025-08-18 22:51:18 -04:00
Fox Ellson-Taylor
08cd34e6cc
expose more data to admins (#484)
Co-authored-by: Echo <github@3kh0.net>
2025-08-18 17:54:54 -04:00
Echo
f9bf2dc3ed
Revert "privacy policy deluxe (#473)" (#475) 2025-08-12 17:12:58 -04:00
Echo
34b8bb2152
privacy policy deluxe (#473) 2025-08-12 16:30:12 -04:00
Echo
be9de21425
forgor to add to routes 2025-08-11 00:28:22 -04:00