rrce-workflow 0.2.59 → 0.2.60
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/dist/index.js +8 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2951,7 +2951,7 @@ var init_ProjectsView = __esm({
|
|
|
2951
2951
|
const [config, setConfig] = useState2(initialConfig);
|
|
2952
2952
|
const projectItems = allProjects.map((p) => {
|
|
2953
2953
|
const projectConfig = config.projects.find(
|
|
2954
|
-
(c) => c.path && c.path === p.path || !c.path && c.name === p.name
|
|
2954
|
+
(c) => c.path && c.path === p.path || p.source === "global" && c.name === p.name || !c.path && c.name === p.name
|
|
2955
2955
|
);
|
|
2956
2956
|
const isExposed = projectConfig ? projectConfig.expose : config.defaults.includeNew;
|
|
2957
2957
|
return {
|
|
@@ -2969,12 +2969,14 @@ var init_ProjectsView = __esm({
|
|
|
2969
2969
|
const isSelected = selectedIds.includes(item.value);
|
|
2970
2970
|
const project = allProjects.find((p) => p.dataPath === item.value);
|
|
2971
2971
|
if (project) {
|
|
2972
|
+
const existingConfig = newConfig.projects.find((p) => p.name === project.name);
|
|
2973
|
+
const projectPath = project.source === "global" && existingConfig?.path ? existingConfig.path : project.path;
|
|
2972
2974
|
newConfig = setProjectConfig(
|
|
2973
2975
|
newConfig,
|
|
2974
2976
|
project.name,
|
|
2975
2977
|
isSelected,
|
|
2976
2978
|
void 0,
|
|
2977
|
-
|
|
2979
|
+
projectPath
|
|
2978
2980
|
);
|
|
2979
2981
|
}
|
|
2980
2982
|
});
|
|
@@ -3188,7 +3190,10 @@ var init_IndexingStatus = __esm({
|
|
|
3188
3190
|
const fetchStats = async () => {
|
|
3189
3191
|
const newStats = [];
|
|
3190
3192
|
for (const project of projects) {
|
|
3191
|
-
|
|
3193
|
+
let projConfig = findProjectConfig(config, { name: project.name, path: project.path });
|
|
3194
|
+
if (!projConfig && project.source === "global") {
|
|
3195
|
+
projConfig = config.projects.find((p) => p.name === project.name);
|
|
3196
|
+
}
|
|
3192
3197
|
const enabled = projConfig?.semanticSearch?.enabled ?? false;
|
|
3193
3198
|
if (!enabled) {
|
|
3194
3199
|
newStats.push({
|