@salesforce/webapp-template-feature-graphql-experimental 1.35.1 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -65
- package/package.json +6 -43
- package/rules/graphql-data-access-rule.md +5 -5
- package/skills/graphql-data-access/SKILL.md +17 -40
- package/skills/graphql-data-access/docs/explore-schema.md +3 -3
- package/dist/.a4drules/build-validation.md +0 -81
- package/dist/.a4drules/code-quality.md +0 -150
- package/dist/.a4drules/graphql/tools/knowledge/lds-explore-graphql-schema.md +0 -227
- package/dist/.a4drules/graphql/tools/knowledge/lds-generate-graphql-mutationquery.md +0 -212
- package/dist/.a4drules/graphql/tools/knowledge/lds-generate-graphql-readquery.md +0 -185
- package/dist/.a4drules/graphql/tools/knowledge/lds-guide-graphql.md +0 -205
- package/dist/.a4drules/graphql/tools/schemas/shared.graphqls +0 -1150
- package/dist/.a4drules/graphql.md +0 -408
- package/dist/.a4drules/images.md +0 -13
- package/dist/.a4drules/react.md +0 -361
- package/dist/.a4drules/react_image_processing.md +0 -45
- package/dist/.a4drules/skills/install-feature/SKILL.md +0 -67
- package/dist/.a4drules/skills/install-feature/scripts/copy-feature-assets.sh +0 -36
- package/dist/.a4drules/typescript.md +0 -224
- package/dist/.forceignore +0 -15
- package/dist/.husky/pre-commit +0 -4
- package/dist/.prettierignore +0 -11
- package/dist/.prettierrc +0 -17
- package/dist/CHANGELOG.md +0 -487
- package/dist/README.md +0 -18
- package/dist/config/project-scratch-def.json +0 -13
- package/dist/force-app/main/default/webapplications/feature-graphql/.graphqlrc.yml +0 -6
- package/dist/force-app/main/default/webapplications/feature-graphql/.prettierignore +0 -9
- package/dist/force-app/main/default/webapplications/feature-graphql/.prettierrc +0 -11
- package/dist/force-app/main/default/webapplications/feature-graphql/build/vite.config.d.ts +0 -2
- package/dist/force-app/main/default/webapplications/feature-graphql/build/vite.config.js +0 -76
- package/dist/force-app/main/default/webapplications/feature-graphql/e2e/app.spec.ts +0 -24
- package/dist/force-app/main/default/webapplications/feature-graphql/eslint.config.js +0 -113
- package/dist/force-app/main/default/webapplications/feature-graphql/feature-graphql.webapplication-meta.xml +0 -7
- package/dist/force-app/main/default/webapplications/feature-graphql/index.html +0 -13
- package/dist/force-app/main/default/webapplications/feature-graphql/package-lock.json +0 -11134
- package/dist/force-app/main/default/webapplications/feature-graphql/package.json +0 -52
- package/dist/force-app/main/default/webapplications/feature-graphql/playwright.config.ts +0 -24
- package/dist/force-app/main/default/webapplications/feature-graphql/scripts/rewrite-e2e-assets.mjs +0 -23
- package/dist/force-app/main/default/webapplications/feature-graphql/src/api/graphql-operations-types.ts +0 -118
- package/dist/force-app/main/default/webapplications/feature-graphql/src/api/graphql.test.ts +0 -91
- package/dist/force-app/main/default/webapplications/feature-graphql/src/api/graphql.ts +0 -35
- package/dist/force-app/main/default/webapplications/feature-graphql/src/api/utils/accounts.ts +0 -35
- package/dist/force-app/main/default/webapplications/feature-graphql/src/api/utils/query/highRevenueAccountsQuery.graphql +0 -29
- package/dist/force-app/main/default/webapplications/feature-graphql/src/api/utils/user.test.ts +0 -129
- package/dist/force-app/main/default/webapplications/feature-graphql/src/api/utils/user.ts +0 -53
- package/dist/force-app/main/default/webapplications/feature-graphql/src/app.tsx +0 -22
- package/dist/force-app/main/default/webapplications/feature-graphql/src/appLayout.tsx +0 -11
- package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/icons/book.svg +0 -3
- package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/icons/copy.svg +0 -4
- package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/icons/rocket.svg +0 -3
- package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/icons/star.svg +0 -3
- package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/images/codey-1.png +0 -0
- package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/images/codey-2.png +0 -0
- package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/images/codey-3.png +0 -0
- package/dist/force-app/main/default/webapplications/feature-graphql/src/assets/images/vibe-codey.svg +0 -194
- package/dist/force-app/main/default/webapplications/feature-graphql/src/components/AccountsTable.tsx +0 -121
- package/dist/force-app/main/default/webapplications/feature-graphql/src/index.ts +0 -7
- package/dist/force-app/main/default/webapplications/feature-graphql/src/navigationMenu.tsx +0 -81
- package/dist/force-app/main/default/webapplications/feature-graphql/src/pages/About.tsx +0 -12
- package/dist/force-app/main/default/webapplications/feature-graphql/src/pages/AccountsPage.tsx +0 -19
- package/dist/force-app/main/default/webapplications/feature-graphql/src/pages/Home.tsx +0 -12
- package/dist/force-app/main/default/webapplications/feature-graphql/src/pages/NotFound.tsx +0 -18
- package/dist/force-app/main/default/webapplications/feature-graphql/src/pages/new.tsx +0 -10
- package/dist/force-app/main/default/webapplications/feature-graphql/src/router-utils.tsx +0 -34
- package/dist/force-app/main/default/webapplications/feature-graphql/src/routes.tsx +0 -48
- package/dist/force-app/main/default/webapplications/feature-graphql/src/styles/global.css +0 -13
- package/dist/force-app/main/default/webapplications/feature-graphql/tsconfig.json +0 -36
- package/dist/force-app/main/default/webapplications/feature-graphql/tsconfig.node.json +0 -13
- package/dist/force-app/main/default/webapplications/feature-graphql/vite-env.d.ts +0 -1
- package/dist/force-app/main/default/webapplications/feature-graphql/vite.config.ts +0 -69
- package/dist/force-app/main/default/webapplications/feature-graphql/vitest-env.d.ts +0 -2
- package/dist/force-app/main/default/webapplications/feature-graphql/vitest.config.ts +0 -11
- package/dist/force-app/main/default/webapplications/feature-graphql/vitest.setup.ts +0 -1
- package/dist/force-app/main/default/webapplications/feature-graphql/webapplication.json +0 -7
- package/dist/jest.config.js +0 -6
- package/dist/package.json +0 -37
- package/dist/scripts/apex/hello.apex +0 -10
- package/dist/scripts/soql/account.soql +0 -6
- package/dist/sfdx-project.json +0 -12
- package/skills/graphql-data-access/scripts/codegen.js +0 -15
- package/skills/graphql-data-access/scripts/get-graphql-schema.mjs +0 -59
- package/src/force-app/main/default/webapplications/feature-graphql/.graphqlrc.yml +0 -6
- package/src/force-app/main/default/webapplications/feature-graphql/src/api/graphql-operations-types.ts +0 -118
- package/src/force-app/main/default/webapplications/feature-graphql/src/api/graphql.test.ts +0 -91
- package/src/force-app/main/default/webapplications/feature-graphql/src/api/graphql.ts +0 -35
- package/src/force-app/main/default/webapplications/feature-graphql/src/api/utils/accounts.ts +0 -35
- package/src/force-app/main/default/webapplications/feature-graphql/src/api/utils/query/highRevenueAccountsQuery.graphql +0 -29
- package/src/force-app/main/default/webapplications/feature-graphql/src/api/utils/user.test.ts +0 -129
- package/src/force-app/main/default/webapplications/feature-graphql/src/api/utils/user.ts +0 -53
- package/src/force-app/main/default/webapplications/feature-graphql/src/components/AccountsTable.tsx +0 -121
- package/src/force-app/main/default/webapplications/feature-graphql/src/index.ts +0 -7
- package/src/force-app/main/default/webapplications/feature-graphql/src/pages/AccountsPage.tsx +0 -19
- package/src/force-app/main/default/webapplications/feature-graphql/src/routes.tsx +0 -20
- package/src/force-app/main/default/webapplications/feature-graphql/vite.config.ts +0 -69
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js';
|
|
2
|
-
import tseslint from '@typescript-eslint/eslint-plugin';
|
|
3
|
-
import tsparser from '@typescript-eslint/parser';
|
|
4
|
-
import react from 'eslint-plugin-react';
|
|
5
|
-
import reactHooks from 'eslint-plugin-react-hooks';
|
|
6
|
-
import reactRefresh from 'eslint-plugin-react-refresh';
|
|
7
|
-
import globals from 'globals';
|
|
8
|
-
|
|
9
|
-
export default [
|
|
10
|
-
// Global ignores
|
|
11
|
-
{
|
|
12
|
-
ignores: ['build/**/*', 'dist/**/*', 'coverage/**/*'],
|
|
13
|
-
},
|
|
14
|
-
// Config files and build tools (first to avoid inheritance)
|
|
15
|
-
{
|
|
16
|
-
files: ['*.config.{js,ts}', 'vite.config.ts'],
|
|
17
|
-
languageOptions: {
|
|
18
|
-
parser: tsparser,
|
|
19
|
-
parserOptions: {
|
|
20
|
-
ecmaVersion: 'latest',
|
|
21
|
-
sourceType: 'module',
|
|
22
|
-
},
|
|
23
|
-
globals: {
|
|
24
|
-
...globals.node,
|
|
25
|
-
__dirname: 'readonly',
|
|
26
|
-
process: 'readonly',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
plugins: {
|
|
30
|
-
'@typescript-eslint': tseslint,
|
|
31
|
-
},
|
|
32
|
-
rules: {
|
|
33
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
// Main TypeScript/React files
|
|
37
|
-
{
|
|
38
|
-
files: ['**/*.{ts,tsx}'],
|
|
39
|
-
ignores: [
|
|
40
|
-
'coverage',
|
|
41
|
-
'dist',
|
|
42
|
-
'node_modules',
|
|
43
|
-
'build',
|
|
44
|
-
'*.config.{js,ts}',
|
|
45
|
-
'vite.config.ts',
|
|
46
|
-
],
|
|
47
|
-
languageOptions: {
|
|
48
|
-
ecmaVersion: 2020,
|
|
49
|
-
sourceType: 'module',
|
|
50
|
-
parser: tsparser,
|
|
51
|
-
parserOptions: {
|
|
52
|
-
ecmaFeatures: {
|
|
53
|
-
jsx: true,
|
|
54
|
-
},
|
|
55
|
-
ecmaVersion: 'latest',
|
|
56
|
-
sourceType: 'module',
|
|
57
|
-
project: './tsconfig.json',
|
|
58
|
-
},
|
|
59
|
-
globals: {
|
|
60
|
-
...globals.browser,
|
|
61
|
-
JSX: 'readonly',
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
plugins: {
|
|
65
|
-
react,
|
|
66
|
-
'react-hooks': reactHooks,
|
|
67
|
-
'react-refresh': reactRefresh,
|
|
68
|
-
'@typescript-eslint': tseslint,
|
|
69
|
-
},
|
|
70
|
-
rules: {
|
|
71
|
-
...js.configs.recommended.rules,
|
|
72
|
-
...tseslint.configs.recommended.rules,
|
|
73
|
-
...react.configs.recommended.rules,
|
|
74
|
-
...reactHooks.configs.recommended.rules,
|
|
75
|
-
'react/react-in-jsx-scope': 'off',
|
|
76
|
-
'react/prop-types': 'off',
|
|
77
|
-
'react/jsx-no-comment-textnodes': 'off',
|
|
78
|
-
'react/no-unescaped-entities': 'off',
|
|
79
|
-
'@typescript-eslint/no-unused-vars': [
|
|
80
|
-
'error',
|
|
81
|
-
{ argsIgnorePattern: '^_' },
|
|
82
|
-
],
|
|
83
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
84
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
85
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
86
|
-
},
|
|
87
|
-
settings: {
|
|
88
|
-
react: {
|
|
89
|
-
version: 'detect',
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
// Test files
|
|
94
|
-
{
|
|
95
|
-
files: [
|
|
96
|
-
'**/*.test.{ts,tsx}',
|
|
97
|
-
'**/test/**/*.{ts,tsx}',
|
|
98
|
-
'src/test/**/*.{ts,tsx}',
|
|
99
|
-
],
|
|
100
|
-
languageOptions: {
|
|
101
|
-
parser: tsparser,
|
|
102
|
-
globals: {
|
|
103
|
-
...globals.browser,
|
|
104
|
-
...globals.node,
|
|
105
|
-
global: 'writable',
|
|
106
|
-
JSX: 'readonly',
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
rules: {
|
|
110
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<WebApplication xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
3
|
-
<masterLabel>feature-graphql</masterLabel>
|
|
4
|
-
<description>A Salesforce web application.</description>
|
|
5
|
-
<isActive>true</isActive>
|
|
6
|
-
<version>1</version>
|
|
7
|
-
</WebApplication>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>Welcome to React App</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="root"></div>
|
|
11
|
-
<script type="module" src="/src/app.tsx"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|