You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by as...@apache.org on 2026/10/10 11:27:59 UTC
(maka) branch fix/ci-workhub-fixture created (now cd5e1c1cad)
This is an automated email from the ASF dual-hosted git repository.
Astro-Han pushed a change to branch fix/ci-workhub-fixture
in repository https://gitbox.apache.org/repos/asf/maka.git
at cd5e1c1cad fix(desktop): provide WorkHub enablement in dock tests
This branch includes the following new commits:
new cd5e1c1cad fix(desktop): provide WorkHub enablement in dock tests
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
(maka) 01/01: fix(desktop): provide WorkHub enablement in dock tests
Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
Astro-Han pushed a commit to branch fix/ci-workhub-fixture
in repository https://gitbox.apache.org/repos/asf/maka.git
commit cd5e1c1cadc6ce669b5693d701d215403b62b0a7
Author: AstroHan <le...@outlook.com>
AuthorDate: Sat Oct 10 21:27:51 2026 +1000
fix(desktop): provide WorkHub enablement in dock tests
Mount the existing WorkHub enablement provider instead of passing the retired enabled prop. This restores Desktop compilation after #5938 met the provider-owned switch from #5936 without changing production behavior.
Generated-by: Maka (gpt-6.1-sol)
---
apps/desktop/src/main/__tests__/workhub-dock.test.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/apps/desktop/src/main/__tests__/workhub-dock.test.ts b/apps/desktop/src/main/__tests__/workhub-dock.test.ts
index eec0681540..a961e103db 100644
--- a/apps/desktop/src/main/__tests__/workhub-dock.test.ts
+++ b/apps/desktop/src/main/__tests__/workhub-dock.test.ts
@@ -24,6 +24,7 @@ import { createRoot, type Root } from 'react-dom/client';
import { parseHTML } from 'linkedom';
import { deferred } from '@maka/core/test-only/async-primitives';
import { LocaleProvider } from '@maka/ui';
+import { WorkHubEnablementProvider } from '../../renderer/application/contracts/workhub-workspace/workhub-enablement.js';
import { WorkHubDock, WorkHubServicesProvider, type WorkHubServices } from '../../renderer/features/workhub/index.js';
import type { WorkHubHost, WorkHubPresentationSnapshot } from '../../shared/workhub-presentation.js';
@@ -96,7 +97,8 @@ async function mount() {
} } as unknown as WorkHubServices;
root = createRoot(document.querySelector('#root')!);
await act(async () => root!.render(createElement(LocaleProvider, { locale: 'en', children:
- createElement(WorkHubServicesProvider, { services }, createElement(WorkHubDock, { enabled: true, workbar: { bottomOpen: false, rightCollapsed: true } })),
+ createElement(WorkHubEnablementProvider, { value: { isEnabled: () => true, subscribe: () => () => {} } },
+ createElement(WorkHubServicesProvider, { services }, createElement(WorkHubDock, { workbar: { bottomOpen: false, rightCollapsed: true } }))),
})));
const frame = async (count = 1) => {
for (let index = 0; index < count; index++) await act(async () => {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org