You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "liuxiaocs7 (via GitHub)" <gi...@apache.org> on 2026/09/14 19:53:16 UTC
[PR] fix(desktop): stop Daily Review transition flash [maka]
liuxiaocs7 opened a new pull request, #5314:
URL: https://github.com/apache/maka/pull/5314
## Summary
Switching from Scheduled Tasks to Daily Review briefly showed a full-page lazy-loading spinner, followed by Daily Review's own skeleton and a 150 ms opacity animation. Load `DailyReviewPanel` with the Module Hub and remove the redundant entry animation so the transition proceeds directly through the stable Daily Review loading state.
Fixes #5313
Before:

After:

## Verification
- `npm run lint`
- `npm run format:check`
- `npm run build`
- `npm run typecheck`
- `npx knip --workspace apps/desktop`
- `npx knip --workspace packages/ui`
- Focused Module Hub Storybook run: 6/6 passed
- `npm --workspace @maka/desktop run build-storybook`
- `npm --workspace @maka/desktop run smoke:storybook`: 360 stories / 389 renders passed
- Reverse regression check: restoring the previous lazy panel and entry animation made the new transition assertion fail (`1` animation observed, expected `0`); the fixed implementation passes.
- `npm run check:asf-headers` is blocked by pre-existing untracked files under `docs/` outside this change. The staged commit hook's ASF header audit passed for the files in this PR.
## AI use
Select exactly one:
- [ ] No generative tool made a substantive contribution
- [x] Generative tooling made a substantive contribution
Tool(s) and scope: Codex diagnosed the transition sequence, implemented the UI fix and Storybook regression coverage, and prepared the contribution artifacts.
## Checklist
- [x] Tests cover the change and fail without it
- [x] Lint, format, typecheck and the affected suites pass locally
Does this PR entail a change in behavior?
- [x] Yes — described under Summary above
- [ ] No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on PR #5314:
URL: https://github.com/apache/maka/pull/5314#issuecomment-5810438367
@Astro-Han Both findings from your latest review are addressed in the current head, `5eaae3558`:
1. **P1 — main integration:** `d4b21fce6` merged main through `0a5b9dc95`, including the recall/modal-state renames, deep-research removal, and catalog refactor. Main's `isDefaultRuntimeHostResolvable(...)` handling is preserved in Daily Review and the sibling controllers/helpers you identified. The controller tests pass.
2. **P3 — reads completing after navigation:** `5eaae3558` moves the successful cache write before the cancellation guard in both Health and Permission Center. Page state updates remain guarded, and cache keys come from the request-time Host. Permission Center still commits only when both reads succeed. Eight new tests exercise the production pages through unmounts, Host switches, split permission/capability completion, and failures. The three successful-completion regressions failed before the fix and pass now.
The earlier findings remain addressed by `0d09ec1d2` and `1913981cd7`, including the Daily Review remount cache, Settings refresh-failure coverage, loading indicators, accessibility/copy cleanup, story documentation, and removal of the PR-only PNGs. The earlier P2 inline thread is resolved. Skills/Scheduled Tasks lazy loading remains outside this PR, as noted in your review.
Validation on the current head: 87 related tests passed, including the eight new cases; 112 renderer architecture tests and strict-base validation passed, along with lint, formatting, build, typecheck, both knip checks, and the commit checks. [CI for this head](https://github.com/apache/maka/actions/runs/35973286781) is still running.
Main has since gained `276faf1c9`, a one-line ScheduledTask tool-description correction. That later commit is not included yet; the semantic drift identified in P1 is reconciled.
_Posted by Codex on behalf of @liuxiaocs7._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on code in PR #5314:
URL: https://github.com/apache/maka/pull/5314#discussion_r4047254971
##########
apps/desktop/stories/module-hubs.stories.tsx:
##########
@@ -911,12 +919,71 @@ export const HostAutomationsScheduledTasks: Story = {
),
};
+/**
+ * Starts on Scheduled Tasks to observe the first switch; `play` leaves Daily
+ * Review visible for the visual catalog. With autoplay disabled, the initial
+ * Scheduled Tasks page is intentional.
+ */
+// Real path: sidebar → 定时任务 → 每日回顾.
export const HostAutomationsDailyReview: Story = {
render: () => (
<ModuleHubHostSurface
- selection={{ section: 'automations', module: 'daily-review' }}
+ selection={{ section: 'automations', module: 'scheduled-tasks' }}
/>
),
+ play: async ({ canvasElement }) => {
+ const dailyReview = await waitForStoryButton(
+ canvasElement,
+ (candidate) => candidate.textContent?.includes('每日回顾') === true,
+ );
+ let lazyFallbacks = 0;
+ let dailyReviewEntryAnimations = 0;
+ const mutationObserver = new MutationObserver((records) => {
+ for (const record of records) {
+ for (const node of record.addedNodes) {
+ if (!(node instanceof Element)) continue;
+ const fallbacks = [
+ ...(node.matches('.maka-lazy-fallback') ? [node] : []),
+ ...node.querySelectorAll('.maka-lazy-fallback'),
+ ];
+ for (const fallback of fallbacks) {
+ // Ignore Scheduled Tasks even if its chunk settles after play
+ // starts. The target also covers an added fallback removed again
+ // before this observer callback runs.
+ if (
+ fallback.closest('[data-module="daily-review"]')
+ || (record.target instanceof Element
+ && record.target.closest('[data-module="daily-review"]'))
+ ) lazyFallbacks += 1;
+ }
+ }
+ }
+ });
+ const onAnimationStart = (event: Event) => {
+ if (
+ event instanceof AnimationEvent
+ && event.animationName === 'maka-daily-review-enter'
+ ) {
+ dailyReviewEntryAnimations += 1;
+ }
+ };
Review Comment:
Posted by Codex on behalf of @liuxiaocs7.
Addressed in 1913981cd7. The Daily Review controller now retains the last successful today summary and seeds the leaf before its first render. Every mount still revalidates; cold entry has one stable loading state, and cached revisits retain content through pending/failed refreshes. Host lifecycle events and local-day rollover invalidate the cache; cancelled, superseded, and pre-invalidation reads cannot overwrite it.
The story now uses the production provider/controller and explicitly holds service reads pending across browser paints. It counts inner skeleton mounts through cold entry, navigation away/back, failure, and retry. Disabling cached initialization makes it fail with `expected 2 to be 1`; the fixed version mounts the skeleton only on cold entry.
Also addressed the P3s: removed both PR-only PNGs from the source tree and cumulative PR diff, removed their PR-body links, added `role="alert"` to Health errors, documented the Health story's autoplay-dependent final view, and derive cache keys from the same Host context used by each page's reads. Skills/Scheduled Tasks lazy loading stays outside this PR.
Local validation passed: 56 Module Hub/Settings tests, 112 architecture tests plus strict-base validation, eight browser plays, lint/format/build/typecheck, both knip workspaces, ASF headers, and Storybook typecheck/build. The new CI run is being monitored.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on code in PR #5314:
URL: https://github.com/apache/maka/pull/5314#discussion_r4093445172
##########
apps/desktop/src/renderer/settings/settings-snapshot-cache.ts:
##########
@@ -62,6 +75,8 @@ export function createSettingsSnapshotCache(): SettingsSnapshotCache {
let runtimeHostCatalog: DesktopRuntimeHostProfileSnapshot | undefined;
const runtimeHostSettings = new Map<string, RuntimeHostAppSettings>();
const runtimeHostConnections = new Map<string, RuntimeHostConnectionsSnapshot>();
+ const runtimeHostHealth = new Map<string, HealthSnapshot>();
Review Comment:
Addressed this P2 and both P3 notes in f4f843a9d, after syncing main through c299cc17a in 0febb336c.
- Health/Permissions now bind cache reads to the existing Runtime Host generation authority. The same generation boundary retires their page state on a same-ID epoch change, even without a readiness dip. Old snapshots cannot seed the new incarnation, and retired reads cannot overwrite its cache.
- Each resource gives the latest started read its own commit token. Successful reads still warm the cache after unmount; superseded completions cannot replace newer data, and pruning a removed Host also retires pending writes.
- Daily Review now invalidates for default-Host events or events affecting its cached/pending Host. Unrelated non-default readiness/removal events preserve both the cached day and an in-flight refresh.
Validation: 274 Settings/Module Hub tests passed, including 55 focused cases; full build/typecheck, lint/format, both Knip checks, and strict renderer architecture checks passed. Storybook build and all seven focused browser plays passed. Removing the generation match, request token check, generation remount boundary, or event filter makes the corresponding regression assertions fail.
The remote head is f4f843a9d. GitHub CI is running on that head; the PR description now reflects the final behavior and validation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on PR #5314:
URL: https://github.com/apache/maka/pull/5314#issuecomment-5738572317
@Astro-Han I've checked both review rounds against the current head, `1913981cd7`. All requested changes within this PR's scope are addressed in `0d09ec1d2` and `1913981cd7`:
- Daily Review now seeds the page from a controller-owned last-good summary. The production-provider story holds reads pending across browser paints and covers revisits, refresh failure, and retry; removing cached initialization makes the skeleton-count assertion fail. The P2 thread is now resolved.
- Both Settings refresh-failure paths have regression coverage and visible refresh progress. Health errors carry `role="alert"`, and cache keys derive from the same Host context used for reads.
- Both PNGs are absent from the source tree and cumulative PR diff; their PR-body links are removed. The story docblocks, dead loading copy, shared snapshot types, and scoped fallback observer are also addressed, and the eager-loading trade-off is documented.
Skills/Scheduled Tasks lazy-loading flashes remain outside this PR, as noted in your review.
[CI passed on this exact head](https://github.com/apache/maka/actions/runs/35351790624), including Desktop e2e and Storybook smoke (382 stories, 414 theme renders). Ready for another look when you have a moment. Thanks!
_Posted by Codex on behalf of @liuxiaocs7._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on PR #5314:
URL: https://github.com/apache/maka/pull/5314#issuecomment-5726312563
@Astro-Han Thanks for the detailed review. Addressed the findings in 0d09ec1d2739728d8ea287da1188681ec8c20f77 and updated the PR description:
1. Added `HealthCenterRefreshFailed` and `PermissionCenterRefreshFailed`. They seed the Host-scoped cache, hold reads pending, then reject them. Assertions cover retained content, inline errors, no skeleton insertion, successful retry, and subsequent failure. Permissions and capabilities fail independently; a partially successful refresh must preserve the last complete pair.
2. Removed `modules.loadingDailyReview` from the type and all three locales.
3. Kept eager loading and documented its startup bundle cost. Pre-warming on the automations hub mount can still lose the race to a fast switch or direct entry; eager loading guarantees there is no intermediate lazy fallback on those paths.
4. Added a docblock explaining that `HostAutomationsDailyReview` starts on Scheduled Tasks and reaches its final Daily Review state through `play`, including what to expect with autoplay disabled.
5. Both refresh controls now use the existing button loading state while cached content remains visible. The new stories exercise pending requests without timer-dependent assertions.
6. Aligned loading initialization with the initialized snapshots and reused `PermissionCenterSnapshot` (plus `HealthSnapshot` in the surface props).
7. Scoped the fallback observer to the Daily Review module so Scheduled Tasks cannot contribute to its count.
Validation: all six focused Storybook plays passed, along with 20 Settings cache tests, 112 architecture tests, lint, format, build, typecheck, both knip checks, and ASF headers. Restoring the full-page error branches makes both new stories fail; restoring a delayed Daily Review lazy fallback makes the scoped counter fail with `1` instead of `0`. GitHub CI is currently running.
_Posted by Codex on behalf of @liuxiaocs7._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han commented on code in PR #5314:
URL: https://github.com/apache/maka/pull/5314#discussion_r4092031758
##########
apps/desktop/src/renderer/settings/settings-snapshot-cache.ts:
##########
@@ -62,6 +75,8 @@ export function createSettingsSnapshotCache(): SettingsSnapshotCache {
let runtimeHostCatalog: DesktopRuntimeHostProfileSnapshot | undefined;
const runtimeHostSettings = new Map<string, RuntimeHostAppSettings>();
const runtimeHostConnections = new Map<string, RuntimeHostConnectionsSnapshot>();
+ const runtimeHostHealth = new Map<string, HealthSnapshot>();
Review Comment:
**P2 — the new health/permission caches ignore the Runtime Host epoch** (reasonable reconnect path). The codebase's own authority keys Host-owned resources `profileId:hostId@epoch` (`runtimeHostSettingsKey` consumers: `usageTargetKey`, `RuntimeHostSettingsGenerationBoundary`, `settings-request-authority` — 'a lifecycle epoch change invalidates every outstanding ticket even when the renderer-facing key stays the same'). These maps are epoch-free and `settings-surface.tsx` seeds/commits them by `selectedRuntimeHostKey` only, with no `invalidateSettingsResourceGeneration` equivalent on lifecycle events. Concrete path: host reconnects with stable hostId (epoch bump) → readiness dip remounts the page → `initialSnapshot` seeds incarnation-N health/permissions as current, and a pre-reconnect in-flight read can still commit post-reconnect under the unchanged key. Smallest fix: key these entries by the generation-aware key already exported (`useRuntimeHostSettingsGenerationKey()` /
`${key}:${epoch}`), matching `usageTargetKey`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@maka.apache.org>.
github-actions[bot] commented on PR #5314:
URL: https://github.com/apache/maka/pull/5314#issuecomment-6538553316
<!-- maka-lifecycle:stale-warning -->
This pull request has had no new commits for 30 days and has been marked stale. It will be closed in 7 days unless a new commit is pushed.
Comments do not reset this timer: only a new commit does. If the pull request is intentionally long-lived, a maintainer can apply the `pinned` label.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@maka.apache.org>.
github-actions[bot] closed pull request #5314: fix(desktop): stop Daily Review and Settings transition flashes
URL: https://github.com/apache/maka/pull/5314
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on code in PR #5314:
URL: https://github.com/apache/maka/pull/5314#discussion_r4047254971
##########
apps/desktop/stories/module-hubs.stories.tsx:
##########
@@ -911,12 +919,71 @@ export const HostAutomationsScheduledTasks: Story = {
),
};
+/**
+ * Starts on Scheduled Tasks to observe the first switch; `play` leaves Daily
+ * Review visible for the visual catalog. With autoplay disabled, the initial
+ * Scheduled Tasks page is intentional.
+ */
+// Real path: sidebar → 定时任务 → 每日回顾.
export const HostAutomationsDailyReview: Story = {
render: () => (
<ModuleHubHostSurface
- selection={{ section: 'automations', module: 'daily-review' }}
+ selection={{ section: 'automations', module: 'scheduled-tasks' }}
/>
),
+ play: async ({ canvasElement }) => {
+ const dailyReview = await waitForStoryButton(
+ canvasElement,
+ (candidate) => candidate.textContent?.includes('每日回顾') === true,
+ );
+ let lazyFallbacks = 0;
+ let dailyReviewEntryAnimations = 0;
+ const mutationObserver = new MutationObserver((records) => {
+ for (const record of records) {
+ for (const node of record.addedNodes) {
+ if (!(node instanceof Element)) continue;
+ const fallbacks = [
+ ...(node.matches('.maka-lazy-fallback') ? [node] : []),
+ ...node.querySelectorAll('.maka-lazy-fallback'),
+ ];
+ for (const fallback of fallbacks) {
+ // Ignore Scheduled Tasks even if its chunk settles after play
+ // starts. The target also covers an added fallback removed again
+ // before this observer callback runs.
+ if (
+ fallback.closest('[data-module="daily-review"]')
+ || (record.target instanceof Element
+ && record.target.closest('[data-module="daily-review"]'))
+ ) lazyFallbacks += 1;
+ }
+ }
+ }
+ });
+ const onAnimationStart = (event: Event) => {
+ if (
+ event instanceof AnimationEvent
+ && event.animationName === 'maka-daily-review-enter'
+ ) {
+ dailyReviewEntryAnimations += 1;
+ }
+ };
Review Comment:
Posted by Codex on behalf of @liuxiaocs7.
Addressed in 1913981cd7. The Daily Review controller now retains the last successful today summary and seeds the leaf before its first render. Every mount still revalidates; cold entry has one stable loading state, and cached revisits retain content through pending/failed refreshes. Host lifecycle events and local-day rollover invalidate the cache; cancelled, superseded, and pre-invalidation reads cannot overwrite it.
The story now uses the production provider/controller and explicitly holds service reads pending across browser paints. It counts inner skeleton mounts through cold entry, navigation away/back, failure, and retry. Disabling cached initialization makes it fail with `expected 2 to be 1`; the fixed version mounts the skeleton only on cold entry.
Also addressed the P3s: removed both PR-only PNGs from the source tree and cumulative PR diff, removed their PR-body links, added `role="alert"` to Health errors, documented the Health story's autoplay-dependent final view, and derive cache keys from the same Host context used by each page's reads. Skills/Scheduled Tasks lazy loading stays outside this PR.
Local validation passed: 56 Module Hub/Settings tests, 112 architecture tests plus strict-base validation, eight browser plays, lint/format/build/typecheck, both knip workspaces, ASF headers, and Storybook typecheck/build. CI also passed for this exact commit: [run 35351790624](https://github.com/apache/maka/actions/runs/35351790624), including Desktop e2e and Storybook smoke.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on PR #5314:
URL: https://github.com/apache/maka/pull/5314#issuecomment-5830332942
Fixed the CI failures in `0d3f8d8b9`.
The geometry gate exposed a virtua bug: consecutive ResizeObserver batches can write scroll corrections before the browser reports the first write. The second correction reused the old offset and overwrote the first. Both main (`d74eef4f1`) and the previous PR head (`d4c4f1068`) reproduced two cold-reader slips in all three local trials, with a maximum displacement of about 365px.
The small patch to virtua's React ESM/CJS bundles accumulates corrections until the native scroll event acknowledges them. It keeps the new delta separate from the accumulated total so opposite corrections can cancel correctly. The existing measurement buffer and geometry thresholds are preserved. The patch's upstream MIT license is included in `LICENSE`.
The executor-catalog Storybook play also waits for both model rows to become visible after clicking, matching the neighboring loading-state test's readiness convention.
Validation:
- Four regression cases fail against unpatched ESM/CJS and pass with the patch, including opposite corrections, a measurement equal to its estimate, and a later acknowledged scroll.
- All 663 UI tests pass after a clean build.
- All 9 geometry trials pass. The mixed scene records 0–1 cold slips (maximum 24.16px during initial mounting); all warm sweeps have zero reader slips and zero height drift.
- Full Storybook smoke passes: 436 stories / 473 theme renders.
- All 94 source-release checks pass, and the root postinstall applies the patch successfully to restored original vendor files.
- Remote CI [test](https://github.com/apache/maka/actions/runs/36117886694) and [windows_recovery](https://github.com/apache/maka/actions/runs/36117887271) both pass on the final head. Linux CI records one cold slip of 23.94px in the mixed scene, with zero warm slips; the tool and long-code scenes have zero slips.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han commented on code in PR #5314:
URL: https://github.com/apache/maka/pull/5314#discussion_r4046929389
##########
apps/desktop/stories/module-hubs.stories.tsx:
##########
@@ -911,12 +919,71 @@ export const HostAutomationsScheduledTasks: Story = {
),
};
+/**
+ * Starts on Scheduled Tasks to observe the first switch; `play` leaves Daily
+ * Review visible for the visual catalog. With autoplay disabled, the initial
+ * Scheduled Tasks page is intentional.
+ */
+// Real path: sidebar → 定时任务 → 每日回顾.
export const HostAutomationsDailyReview: Story = {
render: () => (
<ModuleHubHostSurface
- selection={{ section: 'automations', module: 'daily-review' }}
+ selection={{ section: 'automations', module: 'scheduled-tasks' }}
/>
),
+ play: async ({ canvasElement }) => {
+ const dailyReview = await waitForStoryButton(
+ canvasElement,
+ (candidate) => candidate.textContent?.includes('每日回顾') === true,
+ );
+ let lazyFallbacks = 0;
+ let dailyReviewEntryAnimations = 0;
+ const mutationObserver = new MutationObserver((records) => {
+ for (const record of records) {
+ for (const node of record.addedNodes) {
+ if (!(node instanceof Element)) continue;
+ const fallbacks = [
+ ...(node.matches('.maka-lazy-fallback') ? [node] : []),
+ ...node.querySelectorAll('.maka-lazy-fallback'),
+ ];
+ for (const fallback of fallbacks) {
+ // Ignore Scheduled Tasks even if its chunk settles after play
+ // starts. The target also covers an added fallback removed again
+ // before this observer callback runs.
+ if (
+ fallback.closest('[data-module="daily-review"]')
+ || (record.target instanceof Element
+ && record.target.closest('[data-module="daily-review"]'))
+ ) lazyFallbacks += 1;
+ }
+ }
+ }
+ });
+ const onAnimationStart = (event: Event) => {
+ if (
+ event instanceof AnimationEvent
+ && event.animationName === 'maka-daily-review-enter'
+ ) {
+ dailyReviewEntryAnimations += 1;
+ }
+ };
Review Comment:
**P2 — the third flash source survives, and this observer cannot see it (normal path).** This assertion counts `.maka-lazy-fallback` and `animationstart` — both sources the PR removes. But `DailyReviewPanel` still mounts `createDailyReviewActivityState` with `resolvedView: null` and `pendingScopeKey` set, so `loading` is true on first paint and `{!displayedSummary && loading}` renders the 3-bar `<Skeleton>` stack (`daily-review-panel.tsx:337`) until the post-paint `fetchDay` IPC resolves — a guaranteed flash on *every* visit to the leaf. The story's `fetchDay` resolves in a microtask so the inner skeleton never paints there, which is why this stays green. Either persist the resolved summary across mounts (the same snapshot-cache pattern the Settings pages just adopted — hold it in the controller/provider, seed `activityState` from it) or narrow the claim and the observer to the two sources actually removed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@maka.apache.org>.
github-actions[bot] commented on PR #5314:
URL: https://github.com/apache/maka/pull/5314#issuecomment-6716839682
<!-- maka-lifecycle:stale-close -->
This pull request has been closed because it received no new commits during the 7-day grace period. This is not a judgement on the merit of the change; it only keeps the review queue aligned with work that is actively in flight.
The branch and review history are preserved. Push a new commit and reopen the pull request whenever the work is ready to continue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(desktop): stop Daily Review and Settings transition flashes [maka]
Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on PR #5314:
URL: https://github.com/apache/maka/pull/5314#issuecomment-5829623223
Simplified the implementation in d4c4f1068 after an ablation pass; main is synced through d74eef4f1.
- Each Settings/Daily Review read now owns a fresh entry carrying the last successful snapshot. Superseded or invalidated completions only update detached entries. This removes the extra Settings token and the separate Daily Review generation/read counters; its shared state is one current entry instead of four variables.
- Cache initialization, Host generation/reset, abort handling and relevant-event filtering remain necessary: removing them reproduces the transition/concurrency failures. Reusing one entry across reads fails 6 Settings cases and 3 Daily Review cases in the simplified version.
- The animation experiment exposed a test blind spot: the story's fixture flag applied `animation: none !important` to every descendant. The Daily Review transition story now enables real motion and checks that flag is absent. Restoring the old animation now fails the browser assertion, as does restoring the lazy fallback or removing cached initialization.
Validation: 277 Settings/Module Hub tests passed (57 focused cases), full build/typecheck, lint/format, both Knip checks, strict architecture checks, and seven browser plays all passed. The PR description reflects the simplified implementation and the corrected animation coverage.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org