Skip to content
Merged

0.19 #293

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# StatWrap Changelog

## 0.0.19 - November 26, 2025

### Change Summary

- Improve search by excluding user folders from R, RStudio, Python, Jupyter, etc. from indexing.

**Full Changelog**: https://github.com/StatTag/StatWrap/compare/0.0.18...0.0.19

## 0.0.18 - November 20, 2025

### Change Summary
Expand Down
13 changes: 13 additions & 0 deletions app/constants/search-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ module.exports = {
// File indexing settings
indexing: {
maxFileSize: 0.1 * 1024 * 1024,
excludedDirectories: ['node_modules', '.git', '.statwrap',
// Python
'__pycache__', '.venv', 'venv', '.pytest_cache', '.pybuilder', '.ipynb_checkpoints',, '__pypackages__',
// R and RStudio
'.Rproj.user'
],

excludedFiles: [
// R and RStudio
'.Rhistory', '.Rapp.history',
// Mac
'.DS_Store'
]
},

// Search settings
Expand Down
2 changes: 1 addition & 1 deletion app/containers/AboutPage/AboutPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default class AboutPage extends Component {
render() {
return (
<div className={styles.container} data-tid="container">
<h1>StatWrap v0.18</h1>
<h1>StatWrap v0.19</h1>
<div className={styles.copyright}>
(c) 2021-2025 Northwestern University Feinberg School of Medicine
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "statwrap",
"productName": "StatWrap",
"version": "0.0.18",
"version": "0.0.19",
"description": "Reproducible research made easy",
"main": "./main.prod.js",
"author": {
Expand Down
9 changes: 7 additions & 2 deletions app/services/SearchService.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Messages from '../constants/messages';
import Constants from '../constants/constants';

const SEARCH_CONFIG_VERSION = '1.0';
const EXCLUDED_DIRS = ['node_modules', '.git', '.statwrap', '__pycache__', '.venv', 'venv'];

class SearchService {
constructor() {
Expand Down Expand Up @@ -822,12 +821,18 @@ class SearchService {
const stats = fs.statSync(fullPath);

if (stats.isDirectory()) {
if (!EXCLUDED_DIRS.includes(item)) {
// Don't process ignored directories
if (!SearchConfig?.indexing?.excludedDirectories.includes(item)) {
await scanDirectory(fullPath);
}
} else if (stats.isFile()) {
totalFiles++;

// Skip any ignored files
if (SearchConfig?.indexing?.excludedFiles.includes(item)) {
continue;
}

if (stats.size > fileSizeLimit) {
skippedLargeFiles++;
continue;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "statwrap",
"productName": "StatWrap",
"version": "0.0.18",
"version": "0.0.19",
"description": "Reproducible research made easy",
"scripts": {
"build": "concurrently \"yarn build-main\" \"yarn build-renderer\" \"yarn build-worker\" \"yarn build-preload\"",
Expand Down