rename(phase 1): CapaKraken → Nexus across code, UI, docs, CI (#61)
CI / Architecture Guardrails (push) Successful in 2m38s
CI / Assistant Split Regression (push) Successful in 3m33s
CI / Typecheck (push) Successful in 3m51s
CI / Lint (push) Successful in 5m2s
CI / E2E Tests (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / Release Images (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Architecture Guardrails (push) Successful in 2m38s
CI / Assistant Split Regression (push) Successful in 3m33s
CI / Typecheck (push) Successful in 3m51s
CI / Lint (push) Successful in 5m2s
CI / E2E Tests (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / Release Images (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
rename(phase 1): CapaKraken → Nexus across code, UI, docs, CI (#61) Co-authored-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com> Co-committed-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com>
This commit was merged in pull request #61.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
## Problem
|
||||
|
||||
CapaKraken currently uses a flat `hoursPerDay` on allocations. The chargeability reporting model requires:
|
||||
Nexus currently uses a flat `hoursPerDay` on allocations. The chargeability reporting model requires:
|
||||
|
||||
- Country-specific daily working hours (8h Germany, 9h India, variable Spain)
|
||||
- Public holidays per country AND metro city
|
||||
@@ -33,23 +33,23 @@ SAH = effectiveHoursPerDay * (workingDaysInPeriod - absenceDays)
|
||||
|
||||
### Daily Working Hours by Country
|
||||
|
||||
| Country | Daily Hours | Special Rules |
|
||||
|---|---|---|
|
||||
| Costa Rica | 8h | - |
|
||||
| Germany | 8h | - |
|
||||
| Hungary | 8h | - |
|
||||
| India | 9h | - |
|
||||
| Italy | 8h | - |
|
||||
| Portugal | 8h | - |
|
||||
| Spain | variable | Fridays always 6.5h; Mon-Thu 6.5h during 1 Jul - 15 Sep, otherwise 9h |
|
||||
| United Kingdom | 8h | - |
|
||||
| Country | Daily Hours | Special Rules |
|
||||
| -------------- | ----------- | --------------------------------------------------------------------- |
|
||||
| Costa Rica | 8h | - |
|
||||
| Germany | 8h | - |
|
||||
| Hungary | 8h | - |
|
||||
| India | 9h | - |
|
||||
| Italy | 8h | - |
|
||||
| Portugal | 8h | - |
|
||||
| Spain | variable | Fridays always 6.5h; Mon-Thu 6.5h during 1 Jul - 15 Sep, otherwise 9h |
|
||||
| United Kingdom | 8h | - |
|
||||
|
||||
### FTE Impact
|
||||
|
||||
- FTE is stored with at least 2 decimal places (e.g. 0.50, 0.80)
|
||||
- FTE can change per month (contract changes, joiners/leavers)
|
||||
- Part-time 50% in Germany: 8h * 0.50 = 4h effective daily hours
|
||||
- Part-time 80% in India: 9h * 0.80 = 7.2h effective daily hours
|
||||
- Part-time 50% in Germany: 8h \* 0.50 = 4h effective daily hours
|
||||
- Part-time 80% in India: 9h \* 0.80 = 7.2h effective daily hours
|
||||
|
||||
## Schema Changes
|
||||
|
||||
@@ -114,8 +114,8 @@ interface SAHInput {
|
||||
fte: number;
|
||||
periodStart: Date;
|
||||
periodEnd: Date;
|
||||
publicHolidays: Date[]; // from country + metro city
|
||||
absenceDays: Date[]; // vacation, illness, other
|
||||
publicHolidays: Date[]; // from country + metro city
|
||||
absenceDays: Date[]; // vacation, illness, other
|
||||
}
|
||||
|
||||
interface SAHResult {
|
||||
@@ -134,11 +134,11 @@ Spain schedule handling:
|
||||
|
||||
```typescript
|
||||
interface SpainScheduleRule {
|
||||
type: 'spain';
|
||||
fridayHours: number; // 6.5
|
||||
type: "spain";
|
||||
fridayHours: number; // 6.5
|
||||
summerPeriod: { from: string; to: string }; // "07-01" to "09-15"
|
||||
summerHours: number; // 6.5
|
||||
regularHours: number; // 9.0
|
||||
summerHours: number; // 6.5
|
||||
regularHours: number; // 9.0
|
||||
}
|
||||
|
||||
function getSpainDailyHours(date: Date, rule: SpainScheduleRule): number;
|
||||
|
||||
Reference in New Issue
Block a user