mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 23:12:04 +00:00
fix(ci): repin the metadata action and drop two dead exports
The freshly released metadata-action v6.1.0 exits without output on the pull-request build path; both call sites pin back to the proven v6.0.0 commit. The dead-code gate also caught an unused read helper and an unused analytics type left behind by the wave — both removed.
This commit is contained in:
1 parent
5b7c554b1e
commit
922fe88c11
3 files changed
+3
-22
No files matched your search
@@ -106,7 +106,7 @@ jobs:
|
||||
|
||||
- name: Compute image labels
|
||||
id: meta
|
||||
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1.0
|
||||
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
|
||||
with:
|
||||
images: ${{ env.IMAGE_REF }}
|
||||
labels: |
|
||||
@@ -295,7 +295,7 @@ jobs:
|
||||
|
||||
- name: Compute image tags & labels
|
||||
id: meta
|
||||
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1.0
|
||||
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
|
||||
with:
|
||||
images: ${{ env.IMAGE_REF }}
|
||||
tags: |
|
||||
|
||||
@@ -81,15 +81,6 @@ export async function getSelfContextForUser(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Back-compat shim for callers that only need the free text (kept so
|
||||
* the questions generator can cheaply inspect the prose alone).
|
||||
*/
|
||||
export async function getAboutMeForUser(
|
||||
userId: string,
|
||||
): Promise<string | null> {
|
||||
return (await getSelfContextForUser(userId)).aboutMe;
|
||||
}
|
||||
|
||||
/** Whole years between `dateOfBirth` and `now`; null when unknown. */
|
||||
export function deriveAgeYears(
|
||||
@@ -187,7 +178,7 @@ export function composeSelfContextText(
|
||||
* One-call variant for the prompt-assembly paths: load the structured
|
||||
* context + the profile facts and return the composed text (or `null`
|
||||
* when the user never wrote anything). Replaces the v1.15.20
|
||||
* `getAboutMeForUser` call sites.
|
||||
* the read path.
|
||||
*/
|
||||
export async function getSelfContextTextForUser(
|
||||
userId: string,
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* - `InsightsAnalyticsData` — insights mother page
|
||||
* (`src/app/insights/page.tsx`); carries `correlations` +
|
||||
* `healthScore` blocks that the sub-pages also don't use.
|
||||
* - `ChecklistAnalyticsData` — onboarding checklist component;
|
||||
* ultra-loose shape that only checks per-type `count` for
|
||||
* "do you have any data of this kind yet?".
|
||||
*
|
||||
@@ -149,12 +148,3 @@ export interface InsightsAnalyticsData {
|
||||
} | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shape consumed by the onboarding checklist
|
||||
* (`src/components/onboarding/getting-started-checklist.tsx`).
|
||||
* Intentionally loose — the checklist only asks
|
||||
* "does any per-type bucket have a non-zero count?".
|
||||
*/
|
||||
export interface ChecklistAnalyticsData {
|
||||
summaries?: Record<string, { count?: number } | undefined>;
|
||||
}
|
||||
Reference in new issue
Block a user