diff --git a/docs/work-summary.md b/docs/work-summary.md index 7e6a789..eef4fe0 100644 --- a/docs/work-summary.md +++ b/docs/work-summary.md @@ -1,44 +1,130 @@ # Work Summary from Git History -Generated 2026-11-22 from `main` at `origin/main`. - -Local `main` was 4 commits behind `origin/main` at the time of writing, so the four newest PR commits (#52–#55) are included. Only commits reachable from `main` are counted; work on unmerged branches is excluded. +All 63 PRs are included: 58 merged (#3–#75), 4 closed but unmerged (#2, #25, #40, #46), and 1 open (#74). PR #71 is excluded as an unrelated prank PR that comments out the entire codebase. The tables also include 14.0 h of manually reported work that did not produce a PR. ## Method -There is no timesheet data in the repository, so hours are estimated from commit timestamps: +Hours are estimated per PR, as we did not track accurate timesheet data. PR metadata comes from `gh pr view` against `git.ntnu.no`. For merged PRs the diff is taken from the merge commit on `main`; for closed PRs it is the diff from the branch head to its merge base with `main`; for open PRs it is the current branch diff. PR #46 uses the manually tracked 3.0 h. + +This is how we calculate the estimated work hours: + +- **Author time from commit sessions, not gaps.** Non-merge commits are grouped into sessions; a gap of more than 2 hours starts a new session. A session counts 0.5 h plus its span, capped at 2 h. Idle time between sessions is not counted. +- **Per-member pace.** For each member, observed pace is their attributed effective lines divided by their active hours. Active hours sum over active days, with at least 2 h counted on a day with commits and up to 8 h if the commit session spans longer. The paces used are Henry's self-reported 350 lines/hour and observed paces for the others: Nicolay 307, Sivert 255 and Kristian 79. Work on a PR is the larger of that member's session time and their lines divided by their own pace. This is the main source of uncertainty. +- **Overhead.** Add 0.5 h per PR and 0.25 h per non-merge commit for setup, linting, test runs and iteration. +- **Review time.** Count external review events from `gh pr view --json reviews`: 0.2 h per approval or comment, 0.5 h per change request, 0.1 h per dismissal, capped at 1.5 h per PR. Self-reviews are excluded, and review hours go to the reviewer. +- **Attribution.** The fixed 0.5 h goes to the PR author; each commit's 0.25 h goes to that commit's author; session/volume work is split by each commit's diff size. Multi-author PRs are therefore not credited only to the PR author. +- **Dates.** Author work is assigned to commit dates; review work is assigned to review dates. + +The PR model gives a range from a session-only lower bound of about 150 h to a per-member-pace upper bound of about 201 h. Manual non-PR work adds 14.0 h, for an overall total of 214.6 h. The tables use the per-member pace. If commits were batched or generated rather than written over time, the observed pace is overstated and the lower bound is more appropriate. PR #74 counts only its two new documentation commits, because its branch also contains the already-merged #72 commits. + +## Manual adjustments (work not in PRs) -- Per member per day: first commit to last commit. -- A day with a single commit counts as 0.5 hours. -- "Total" is estimated person-hours, so it can exceed the team's wall-clock window when members worked in parallel. -- PRs are squash-merged, meaning each commit represents an entire PR. The estimates are therefore rough and likely a lower bound. +These hours were supplied manually for work that did not produce a PR. They are not derived from git and are kept separate from the PR estimates. -The two initial course-staff commits by Trond Aalberg (29.08) are excluded. The `sivertlv` identity is merged with Sivert Lindblad Vårum, and the two Kristian email identities are merged with Kristian Numme. +| Member | Hours | Allocation | +| --------- | -------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| Henry | 10.0 | 2.0 in 28.09–04.10, 2.0 in 12.10–18.10, 1.0 in 19.10–25.10, 1.0 in 26.10–01.11, 0.5 in 09.11–15.11, 2.0 in 16.11–22.11, 1.5 in 23.11–29.11 — VM and cloud infrastructure | +| Nicolay | 2.0 | 1.0 in 26.10–01.11 and 1.0 in 16.11–22.11 — pre-Azure and last-week infrastructure support | +| Kristian | 2.0 | 1.0 in 26.10–01.11 and 1.0 in 16.11–22.11 — pre-Azure and last-week infrastructure support | +| **Total** | **14.0** | | -## Summary by date +## Summary by PR -| Date | Team window | Total person-hours | Members (estimated hours) | -| --------- | ----------: | -----------------: | ------------------------------------------------ | -| Tue 29.09 | 15:42–17:23 | 2.2 h | Henry 1.7, Sivert 0.5 | -| Wed 14.10 | 13:48–15:43 | 1.9 h | Henry 1.9 | -| Thu 15.10 | 20:27–22:55 | 3.6 h | Henry 2.5, Sivert 0.6, Kristian 0.5 | -| Fri 16.10 | 23:12 | 0.5 h | Henry 0.5 | -| Tue 27.10 | 18:44–21:41 | 3.9 h | Henry 2.9, Nicolay 0.5, Sivert 0.5 | -| Thu 29.10 | 13:29–20:07 | 18.8 h | Henry 5.0, Nicolay 5.3, Sivert 4.1, Kristian 4.4 | -| Fri 30.10 | 17:11 | 0.5 h | Nicolay 0.5 | -| Mon 09.11 | 14:19–19:48 | 9.7 h | Henry 5.5, Nicolay 4.2 | -| Sun 22.11 | 14:21–15:39 | 1.8 h | Henry 1.3, Nicolay 0.5 | -| **Total** | **9 dates** | **42.9 h** | **4 members** | +PR author is listed first; other members with non-merge commits are listed after. “Commits” is non-merge / total commits in the PR. Author hours are for all contributors; review hours are for external reviewers. + +| PR | Merged / closed | Title | Author(s) | Commits | Diff (+/−) | Author h | Review h | Total h | +| --------: | ----------------- | --------------------------------------------------------------------------------------------- | ---------------- | ----------: | ---------: | --------: | -------: | --------: | +| #2 | closed 2026-09-29 | add react-ts template | Sivert | 1/1 | 429/0 | 2.4 | 0.0 | 2.4 | +| #3 | 2026-09-29 | Add tanstack start bootstrap project | Henry | 2/2 | 1596/16 | 5.6 | 0.2 | 5.8 | +| #4 | 2026-09-29 | Create intial spec/plan for the project | Henry | 1/1 | 134/0 | 1.2 | 0.2 | 1.4 | +| #7 | 2026-10-14 | Update monorepo structure, and add backend | Henry | 1/1 | 674/250 | 3.0 | 0.2 | 3.2 | +| #8 | 2026-10-14 | Add venue, city, and price sighting models with seed data | Henry | 2/2 | 324/13 | 1.9 | 0.2 | 2.1 | +| #9 | 2026-10-14 | Create initial migration | Henry | 2/2 | 101/0 | 1.5 | 0.2 | 1.7 | +| #10 | 2026-10-15 | Replace todo schema with venue and price sighting GraphQL schema | Henry | 2/2 | 118/50 | 2.1 | 0.3 | 2.4 | +| #11 | 2026-10-15 | feat: added map component | Kristian | 1/1 | 25/9 | 1.2 | 0.2 | 1.4 | +| #12 | 2026-10-15 | Add CI/CD pipeline that builds and deploys the app to the VM | Henry | 6/6 | 255/17 | 2.8 | 0.2 | 3.0 | +| #13 | 2026-10-15 | 6 make frontend with minimal functionality | Sivert, Nicolay | 9/12 | 132/299 | 5.3 | 0.3 | 5.6 | +| #14 | 2026-10-15 | Serve built public assets under the /project2 base path | Henry | 1/1 | 11/1 | 1.2 | 0.2 | 1.4 | +| #15 | 2026-10-15 | fix(project): change backend port from 4000 to 3001 like in project requirements | Sivert | 1/1 | 5/5 | 1.2 | 0.7 | 1.9 | +| #16 | 2026-10-15 | Fix deploy script base url | Henry | 1/1 | 1/5 | 1.2 | 0.2 | 1.4 | +| #17 | 2026-10-15 | Remove accidental extra http from deploy script base url | Henry | 1/1 | 1/1 | 1.2 | 0.2 | 1.4 | +| #18 | 2026-10-16 | Update README | Henry | 5/5 | 78/209 | 2.7 | 0.3 | 3.0 | +| #22 | 2026-10-27 | Update to Postgres 18 with UUIDv7 and TIMETZ | Henry | 4/4 | 52/39 | 3.2 | 0.2 | 3.4 | +| #25 | closed 2026-10-27 | add search field, dosent work as db not queryable yet | Sivert | 1/1 | 200/4 | 1.5 | 0.0 | 1.5 | +| #26 | 2026-10-27 | Moved venue view into index, and moved helper functions into viewvenue.tsx | Nicolay | 2/2 | 48/50 | 1.6 | 0.2 | 1.8 | +| #27 | 2026-10-27 | Add GraphQL search, city and proximity-sorted venue queries | Henry | 4/4 | 59/0 | 2.0 | 0.2 | 2.2 | +| #28 | 2026-10-27 | Fix deploy script skipping | Henry | 1/1 | 0/3 | 1.2 | 0.2 | 1.4 | +| #29 | 2026-10-27 | 24 search functionality | Sivert | 5/6 | 431/66 | 3.8 | 0.2 | 4.0 | +| #30 | 2026-10-27 | Add venue reviews: mutation, GraphQL wiring and seed data | Henry | 4/4 | 114/11 | 2.5 | 0.2 | 2.7 | +| #31 | 2026-10-29 | Add venue view | Nicolay | 4/5 | 843/22 | 4.3 | 0.2 | 4.5 | +| #32 | 2026-10-29 | add favicon | Sivert | 1/1 | 12/1 | 1.2 | 0.2 | 1.4 | +| #34 | 2026-10-29 | Add user location to find nearby pubs | Henry | 4/5 | 683/276 | 3.8 | 0.2 | 4.0 | +| #35 | 2026-10-29 | Apply Prisma migrations on deploy | Henry | 1/1 | 109/18 | 1.2 | 0.4 | 1.6 | +| #36 | 2026-10-29 | fix wrong env url and make map better to use | Kristian | 2/2 | 2/2 | 1.6 | 0.2 | 1.8 | +| #37 | 2026-10-29 | Filter | Sivert | 1/1 | 413/38 | 2.4 | 0.2 | 2.6 | +| #38 | 2026-10-29 | component and e2e testing | Kristian, Sivert | 5/8 | 1588/4 | 10.7 | 0.2 | 10.9 | +| #39 | 2026-10-29 | Guinness Styling | Nicolay | 2/3 | 230/128 | 2.0 | 0.2 | 2.2 | +| #40 | closed 2026-10-29 | Fix/venue map over header | Nicolay | 3/4 | 231/129 | 2.3 | 0.0 | 2.3 | +| #41 | 2026-10-29 | Style fixes | Nicolay | 2/2 | 50/48 | 1.7 | 0.2 | 1.9 | +| #43 | 2026-10-29 | fix: bugs in testing | Kristian, Henry | 7/9 | 29/14 | 4.1 | 0.2 | 4.3 | +| #44 | 2026-10-29 | [AI-GEN] Improve Lighthouse scores: performance, accessibility and best practices | Henry | 6/6 | 540/121 | 3.7 | 0.2 | 3.9 | +| #45 | 2026-10-30 | Removed all kickers and fixed cluster number bug | Nicolay | 5/5 | 17/32 | 3.1 | 0.4 | 3.5 | +| #46 | closed 2026-11-06 | added oddy | Sivert | 1/1 | 83/12 | 3.0 | 0.0 | 3.0 | +| #47 | 2026-11-09 | Paginate venues | Henry | 2/2 | 432/16 | 2.3 | 0.2 | 2.5 | +| #48 | 2026-11-09 | added real venues and support for non-applicable opening times (varying) | Nicolay | 1/2 | 404/99 | 2.2 | 0.3 | 2.5 | +| #49 | 2026-11-09 | Add price sighting field in venue view | Nicolay | 2/2 | 250/11 | 1.8 | 0.2 | 2.0 | +| #50 | 2026-11-09 | Switched map solution to use vectors and cleaned up POIs | Nicolay | 1/1 | 736/22 | 3.2 | 0.2 | 3.4 | +| #51 | 2026-11-09 | Add chip to home page for current city | Henry | 4/5 | 43/17 | 2.7 | 0.2 | 2.9 | +| #52 | 2026-11-22 | Map preview and zoom in on location | Nicolay | 1/1 | 212/87 | 1.6 | 0.2 | 1.8 | +| #53 | 2026-11-22 | Deploy to Azure (with https) | Henry | 11/11 | 1088/13 | 7.1 | 0.4 | 7.5 | +| #54 | 2026-11-22 | Create admin panel and price sightings funcitonality | Henry | 7/8 | 2384/289 | 9.5 | 0.3 | 9.8 | +| #55 | 2026-11-22 | Fix CI not resetting db after test, causing failing seeding for runs on other branches | Henry | 1/1 | 11/0 | 1.2 | 0.2 | 1.4 | +| #56 | 2026-11-22 | Fix VM and Azure deployment failures | Henry | 3/3 | 59/7 | 2.0 | 0.2 | 2.2 | +| #57 | 2026-11-22 | Fix migrate-job polling query in CI | Henry | 1/1 | 11/5 | 1.2 | 0.2 | 1.4 | +| #58 | 2026-11-22 | Feat/add venue new city | Sivert | 7/7 | 831/122 | 5.7 | 1.5 | 7.2 | +| #59 | 2026-11-22 | Harps in reviews and fixed show all nearby button | Nicolay | 1/1 | 49/30 | 1.2 | 0.2 | 1.4 | +| #60 | 2026-11-22 | Improved price sorting | Nicolay | 2/2 | 77/1 | 1.7 | 0.3 | 2.0 | +| #61 | 2026-11-22 | Removed map display limit and seed tweaks | Nicolay | 1/1 | 33/25 | 1.2 | 0.2 | 1.4 | +| #62 | 2026-11-25 | Manage reviews and venues | Nicolay, Sivert | 2/3 | 1503/104 | 6.6 | 1.0 | 7.6 | +| #63 | 2026-11-25 | Rewrite UI to make the map the central part of the UI and add infinite scroll to landing page | Henry | 3/3 | 2004/576 | 7.8 | 0.2 | 8.0 | +| #65 | 2026-11-25 | remove custom font | Sivert | 1/1 | 6/65 | 1.2 | 0.2 | 1.4 | +| #66 | 2026-11-26 | Venue map no longer disappears on mobile | Nicolay | 1/1 | 1/1 | 1.2 | 0.2 | 1.4 | +| #67 | 2026-11-26 | Let admins edit venue information | Henry | 3/3 | 2592/349 | 9.2 | 0.2 | 9.4 | +| #68 | 2026-11-26 | Improve city search and venue address handling | Henry | 6/6 | 1021/266 | 5.3 | 0.2 | 5.5 | +| #69 | 2026-11-26 | Limited map attribution lift rule to home page | Nicolay | 1/1 | 4/2 | 1.2 | 0.2 | 1.4 | +| #70 | 2026-11-27 | Reduce location TTL | Henry | 1/1 | 78/9 | 1.2 | 0.2 | 1.4 | +| #72 | 2026-11-27 | fix mock location notice | Kristian | 3/3 | 2/1 | 1.8 | 0.2 | 2.0 | +| #73 | 2026-11-27 | Move production deployment to the rsmafia.org domain | Henry | 2/2 | 21/10 | 1.6 | 0.2 | 1.8 | +| #74 | open 2026-11-27 | Updated Spec and technical choices | Kristian | 2/5 | 298/4 | 4.8 | 0.4 | 5.2 | +| #75 | 2026-11-27 | feat/add open-status chip for venues | Sivert | 1/1 | 340/3 | 2.1 | 0.4 | 2.5 | +| **Total** | | **63 PRs** | | **172/192** | | **184.6** | **16.0** | **200.6** | + +Hour values are rounded to one decimal; totals are computed before rounding, so rows may not sum exactly. The PR table totals 200.6 h; the manual adjustments above add 14.0 h, for an overall total of 214.6 h. ## Summary by member -| Member | Active dates | Commits | Estimated hours | -| ----------------------- | -----------: | ------: | --------------: | -| Henry Græsberg | 8 | 25 | 21.3 h | -| Nicolay Bennett Rennemo | 5 | 9 | 11.0 h | -| Sivert Lindblad Vårum | 4 | 6 | 5.7 h | -| Kristian Numme | 2 | 4 | 4.9 h | +| Member | PRs authored | Non-merge commits | PR-authored h | Manual h | Reviewed h | Total h | Share | +| --------- | -----------: | ----------------: | ------------: | -------: | ---------: | --------: | ---------: | +| Henry | 30 | 93 | 94.3 | 10.0 | 5.6 | 109.9 | 51.2% | +| Nicolay | 16 | 33 | 37.6 | 2.0 | 4.2 | 43.8 | 20.4% | +| Sivert | 11 | 28 | 34.6 | 0.0 | 3.9 | 38.5 | 18.0% | +| Kristian | 6 | 18 | 18.1 | 2.0 | 2.3 | 22.4 | 10.4% | +| **Total** | **63** | **172** | **184.6** | **14.0** | **16.0** | **214.6** | **100.0%** | + +PR-authored hours are split across the members who made non-merge commits, not credited solely to the PR author. For example, Sivert wrote most of the component tests in #38, which Kristian opened. Manual hours are the non-PR adjustments above; reviewed hours are the review-event estimates. + +## Summary by week -Summed daily team windows are approximately 22.4 hours. The 42.9-hour total is person-hours where members worked in parallel. +| Week | Henry | Nicolay | Sivert | Kristian | Total | +| ----------- | --------: | -------: | -------: | -------: | --------: | +| 28.09–04.10 | 8.8 | – | 2.6 | 0.2 | 11.7 | +| 12.10–18.10 | 20.5 | 3.1 | 5.5 | 1.8 | 30.8 | +| 19.10–25.10 | 3.9 | – | – | – | 3.9 | +| 26.10–01.11 | 17.4 | 17.2 | 15.5 | 11.8 | 61.9 | +| 02.11–08.11 | – | – | 3.0 | – | 3.0 | +| 09.11–15.11 | 12.6 | 9.2 | – | 0.4 | 22.2 | +| 16.11–22.11 | 18.7 | 11.2 | 7.6 | 1.0 | 38.5 | +| 23.11–29.11 | 28.0 | 3.1 | 4.3 | 7.2 | 42.6 | +| **Total** | **109.9** | **43.8** | **38.5** | **22.4** | **214.6** | -Strictly local `main`, without the four 22.11 commits, would be 8 dates and 41.1 person-hours. +Weeks are ISO weeks (Monday–Sunday), using commit and review dates. Weekly totals include the manual non-PR adjustments. Daily attribution is too noisy because large PRs are often committed in one batch; the weekly view is more reliable.