Skip to content

Commit d95a346

Browse files
authored
Shared configs/workflows/loader (#153)
* use the loader in build * add Logos tests * update readme * fix lockfile * use release-package type config. * lint * update coverage * lint ignore * hoist pnpm install * update divider test * output built leafs
1 parent 065e538 commit d95a346

File tree

6 files changed

+2008
-10
lines changed

6 files changed

+2008
-10
lines changed

.github/workflows/deploy-apps.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ jobs:
4949
echo "skip_steps=false" >> "$GITHUB_OUTPUT"
5050
fi
5151
52+
53+
- name: Install pnpm
54+
if: steps.changes.outputs.skip_steps != 'true'
55+
run: npm install -g pnpm
56+
5257
- name: Set up Node (v24) with pnpm cache
5358
if: steps.changes.outputs.skip_steps != 'true'
5459
uses: actions/setup-node@v4
@@ -60,10 +65,6 @@ jobs:
6065
pnpm-lock.yaml
6166
**/pnpm-lock.yaml
6267
63-
- name: Install pnpm
64-
if: steps.changes.outputs.skip_steps != 'true'
65-
run: npm install -g pnpm
66-
6768
- name: Ensure pnpm store exists for caching
6869
if: steps.changes.outputs.skip_steps != 'true'
6970
shell: bash

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ lerna-debug.log*
88

99
node_modules
1010
dist-ssr
11-
dist
11+
/dist
1212
pub
1313
coverage/*
1414
!coverage.yml

apps/nutritionfacts/src/Components/Layout/Divider.test.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
22

33
// Set up the mock before importing Divider
44
vi.mock("@instructure/ui", () => {
5-
const ViewMock = vi.fn(({ children, ...props }) => (
6-
<div data-testid="view-mock" {...props}>
7-
{children}
8-
</div>
9-
));
5+
const ViewMock = vi.fn(({ children, ...props }) => {
6+
const { borderColor, borderWidth, ...rest } = props;
7+
return (
8+
<div
9+
data-testid="view-mock"
10+
style={{ borderColor, borderWidth }}
11+
{...rest} // rest should not include borderColor or borderWidth
12+
>
13+
{children}
14+
</div>
15+
);
16+
});
1017
return { View: ViewMock };
1118
});
1219

packages/aiinfo/dist/index.cjs

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

packages/aiinfo/dist/index.d.ts

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import { AiInformationProps } from '@instructure/ui';
2+
import { DataPermissionLevelsProps } from '@instructure/ui';
3+
import { NutritionFactsProps } from '@instructure/ui';
4+
5+
declare const AiInfo: AiInfoProps;
6+
export { AiInfo }
7+
export default AiInfo;
8+
9+
export declare type AiInfoAiInformationProps = {
10+
[uid: string]: AiInformationProps;
11+
};
12+
13+
export declare type AiInfoDataPermissionLevelsProps = {
14+
[uid: string]: DataPermissionLevelsProps;
15+
};
16+
17+
export declare type AiInfoFeatureProps = {
18+
nutritionFacts: NutritionFactsProps;
19+
dataPermissionLevels: DataPermissionLevelsProps;
20+
aiInformation: AiInformationProps;
21+
uid: string;
22+
revision: string;
23+
group: string;
24+
name: string;
25+
description: string;
26+
};
27+
28+
export declare type AiInfoNutritionFactsProps = {
29+
[uid: string]: NutritionFactsProps;
30+
};
31+
32+
export declare type AiInfoProps = {
33+
[uid: string]: AiInfoFeatureProps;
34+
};
35+
36+
export declare const aiInformation: AiInfoAiInformationProps;
37+
38+
export declare const askyourdata: AiInfoFeatureProps;
39+
40+
export declare const bcealttext: AiInfoFeatureProps;
41+
42+
export declare const canvascoursetranslation: AiInfoFeatureProps;
43+
44+
export declare const canvasdiscussionsummaries: AiInfoFeatureProps;
45+
46+
export declare const canvasgradingassistance: AiInfoFeatureProps;
47+
48+
export declare const canvasinboxtranslation: AiInfoFeatureProps;
49+
50+
export declare const dataPermissionLevels: AiInfoDataPermissionLevelsProps;
51+
52+
export declare const discussioninsights: AiInfoFeatureProps;
53+
54+
export declare const igniteagent: AiInfoFeatureProps;
55+
56+
export declare const nutritionFacts: AiInfoNutritionFactsProps;
57+
58+
export declare const portfolios: AiInfoFeatureProps;
59+
60+
export declare const rubricgenerator: AiInfoFeatureProps;
61+
62+
export declare const smartsearch: AiInfoFeatureProps;
63+
64+
export { }

0 commit comments

Comments
 (0)