Commit Graph

915 Commits

Author SHA1 Message Date
Ahmed Bouhuolia
9feebb2b1a Merge branch 'develop' into refactor/typescript-preferences-containers 2026-05-31 22:03:20 +02:00
Ahmed Bouhuolia
de28aea086 refactor(typescript): add proper types to Preferences container files
Remove @ts-nocheck directives and add TypeScript interfaces for
Preferences container components (Users, Roles, Accountant, Branches,
Currencies). Replace duplicated withUserPreferences HOC with existing
withDialogActions. Install @types/flat for the flat module.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 21:58:11 +02:00
Ahmed Bouhuolia
b6970fefc2 refactor: convert containers default exports to named exports
## Summary
Converted 905 default exports in src/containers to named exports for improved tree-shaking, better IDE refactoring support, and consistency with modern TypeScript practices.

## Changes
- Converted `export default function X` to `export function X` (916 files)
- Converted `export default compose(...)(X)` to `export const X = compose(...)(XInner)` with HOC wrapping
- Updated 373 import sites from default to named imports
- Fixed 136 React.lazy() imports to use .then() pattern for compatibility with named exports
- Updated re-export patterns in index files
- Fixed edge cases (alert arrays, connector HOCs, type definitions)

## Implementation
- Created codemod script: codemod-containers-exports.js (905 files converted)
- Created import updater: codemod-update-default-imports.js (373 imports fixed)
- Created lazy import fixer: codemod-fix-lazy-imports.js (136 lazy imports fixed)
- Manual fixes for 30 edge-case files (arrays, HOC factories, type definitions)

## Testing
- TypeScript type check: 0 codemod-related errors
- All lazy imports updated with .then() pattern
- All import sites updated to use named imports
- Zero remaining default exports in containers directory

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 20:08:39 +02:00
Ahmed Bouhuolia
7a70195ac0 feat(sdk): add table accept header to report fetchers and refactor audit log hooks
- Add `accept: application/json+table` header to all SDK report table
  fetcher functions for proper table response negotiation
- Refactor audit log query hooks to use SDK fetch functions instead of
  manual API calls with qs.stringify
- Modernize useInfiniteQuery to object syntax with initialPageParam
- Replace deprecated keepPreviousData option with placeholderData import
- Uncomment AuditLogHeader, AuditLogLoadingBar, and AuditLogBody components

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 18:52:44 +02:00
Ahmed Bouhuolia
7e787cf288 wip 2026-05-30 21:43:13 +02:00
Ahmed Bouhuolia
757480d258 wip 2026-05-30 19:37:03 +02:00
Ahmed Bouhuolia
326daaf4b4 wip 2026-05-30 00:40:35 +02:00
Ahmed Bouhuolia
3d687d51e1 wip 2026-05-29 13:32:59 +02:00
Ahmed Bouhuolia
d7d1783eee wip 2026-05-27 23:28:17 +02:00
Ahmed Bouhuolia
4a84d5996e wip 2026-05-27 17:37:39 +02:00
Ahmed Bouhuolia
f7d9ac765b Merge branch 'develop' into feat/query-hooks-refactor-kebab-case 2026-05-22 17:12:01 +02:00
Ahmed Bouhuolia
fa98b06a09 refactor(webapp): standardize withX HOC types with shared MapState generic and props interfaces
- Extract shared `MapState<MappedProps, OwnProps>` generic into `containers/hoc.types.ts`,
  replacing 57 per-file local type duplicates
- Add exported `WithXProps` interfaces to all state HOCs that lacked them, replacing
  `MapState<Record<string, unknown>, Props>` with the properly typed generic
- Add exported `WithXActionsProps` interfaces to all action HOCs, annotating
  `mapDispatchToProps` return types and ensuring consistent exports
- Fix TS errors in `withAlertStoreConnect`, `withDrawers`, `withAuthentication`,
  `withCurrentOrganization`, and `withOrganization` (missing args and missing casts)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-22 15:25:45 +02:00
Ahmed Bouhuolia
bae7222230 Merge pull request #1100 from bigcapitalhq/refactor/store-kebab-case-rename
refactor(webapp): rename store files and folders to kebab-case
2026-05-20 21:58:34 +02:00
Ahmed Bouhuolia
d44ced73ad wip 2026-05-20 21:47:41 +02:00
Ahmed Bouhuolia
5edc3e4723 wip 2026-05-20 21:30:39 +02:00
Ahmed Bouhuolia
f77baaa84f wip 2026-05-20 20:57:29 +02:00
Ahmed Bouhuolia
a1a2f86e86 refactor(webapp/store): update all import paths to match kebab-case renames
Update ~112 files across packages/webapp/src to use the new
kebab-case folder and file names introduced in the previous commit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 00:48:46 +02:00
Ahmed Bouhuolia
3d529833d5 refactor(webapp/store): rename store files/folders to kebab-case and .ts extension
- Rename 19 PascalCase/camelCase folders to kebab-case
  (e.g. CashflowAccounts → cashflow-accounts, financialStatement → financial-statement)
- Rename all .tsx store files to .ts (no JSX in any store file)
- Rename camelCase/PascalCase file base names to kebab-case
  (e.g. paymentMades.reducer.tsx → payment-mades.reducer.ts)
- Rename 9 root-level store files to kebab-case
  (createStore.tsx → create-store.ts, reducers.tsx → reducers.ts, etc.)
- Update all ~112 import paths across packages/webapp/src to match new paths

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 00:46:06 +02:00
Ahmed Bouhuolia
445bc8a582 Merge pull request #1078 from bigcapitalhq/feat/ee-workspaces-multi-org-pr
feat(ee): add multi-organization workspaces feature
2026-05-19 21:03:31 +02:00
Ahmed Bouhuolia
dede2b03ce wip 2026-05-19 20:58:04 +02:00
Ahmed Bouhuolia
e9b5974182 wip 2026-05-18 23:52:45 +02:00
Ahmed Bouhuolia
b1766a9c6f Merge branch 'develop' into feat/ee-workspaces-multi-org-pr 2026-05-18 13:25:35 +02:00
Ahmed Bouhuolia
d74e02c21a Merge branch 'develop' into feat/financial-audit-trail 2026-05-17 19:55:15 +02:00
Ahmed Bouhuolia
00feae58a7 wip 2026-05-17 19:50:00 +02:00
Ahmed Bouhuolia
6ef1a6a651 wip 2026-04-17 01:10:27 +02:00
Ahmed Bouhuolia
91f3c28737 wip 2026-04-15 22:09:25 +02:00
Ahmed Bouhuolia
a1430db37e wip 2026-04-15 00:35:17 +02:00
Ahmed Bouhuolia
70ff1fc179 wip 2026-04-14 21:36:40 +02:00
Ahmed Bouhuolia
a306c62710 wip 2026-04-07 20:43:46 +02:00
Ahmed Bouhuolia
ceef73ba0a wip 2026-04-04 00:35:56 +02:00
Ahmed Bouhuolia
6e04440fbd wip 2026-04-03 11:51:34 +02:00
Ahmed Bouhuolia
ccb34e2155 chore(webapp): add format and format:check scripts
Add Prettier scripts to webapp package for code formatting, consistent
with the existing server package setup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-27 18:21:23 +02:00
Ahmed Bouhuolia
b0db59a495 feat(webapp): customer/vendor form ux improvement (#1053)
* feat(webapp): customer/vendor form ux improvement
2026-03-27 16:34:52 +02:00
rmb
580392a408 fix: bulk uncategorize transactions API endpoint (#1054)
* fix: bulk uncategorize transactions - fix API endpoint and error handling

* refactor: use params object instead of URLSearchParams for delete request

Simplifies the API call by passing params object directly to the delete
method instead of manually building URLSearchParams.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Ahmed Bouhuolia <a.bouhuolia@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-27 16:30:19 +02:00
Ahmed Bouhuolia
a1d1f53773 fix: typescript errors 2026-03-27 16:29:44 +02:00
Ahmed Bouhuolia
f5d1800c8c wip 2026-03-27 16:11:33 +02:00
Ahmed Bouhuolia
4dc5c5abe0 wip 2026-03-27 13:14:54 +02:00
Ahmed Bouhuolia
d5cc3d1a71 wip 2026-03-27 11:29:57 +02:00
Ahmed Bouhuolia
50ba91ecf1 fix 2026-03-27 09:57:03 +02:00
Ahmed Bouhuolia
5ba753e808 wip 2026-03-27 01:08:57 +02:00
Ahmed Bouhuolia
2e90e3cc5b wip 2026-03-26 18:04:33 +02:00
Ahmed Bouhuolia
8b59f28125 wip 2026-03-26 17:40:24 +02:00
Ahmed Bouhuolia
aa89484b64 wip 2026-03-26 14:59:45 +02:00
Ahmed Bouhuolia
75699ba810 wip 2026-03-26 14:18:54 +02:00
rmb
ad0451f32d fix: resolve double slash issue in report print functionality (#1051)
* fix print button for report tab modules

* fix: resolve double slash in report print URLs - Revert ChromiumlyTenancy changes
2026-03-26 09:52:26 +02:00
Ahmed Bouhuolia
8f1af97fc0 feat(webapp): customer/vendor form ux improvement 2026-03-24 21:21:50 +02:00
Ahmed Bouhuolia
25c3fc019f wip 2026-03-19 21:18:44 +02:00
Ahmed Bouhuolia
e55f4cb605 wip 2026-03-19 06:20:59 +02:00
Ahmed Bouhuolia
d53271325c wip 2026-03-19 05:52:04 +02:00
Ahmed Bouhuolia
70e0fd6a89 Merge branch 'develop' into feat/query-hooks-refactor-kebab-case 2026-03-19 02:29:17 +02:00