Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix top-level types of send function #4145

Merged
merged 7 commits into from
Feb 19, 2025

Conversation

jfdoming
Copy link
Member

@jfdoming jfdoming commented Jan 14, 2025

In the course of fixing a bug in #4112 I noticed that the send function always had a return type of any. Turns out the function was typed incorrectly and this wasn't caught due to having disabled checks of .d.ts files. I'll open a separate PR to test turning on that flag, but using this PR so I can iterate on how CI responds to having proper types for send.

Depends on #4146 and #4147

Copy link

netlify bot commented Jan 14, 2025

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 94b0a0f
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/67b22a1745f3820008826914
😎 Deploy Preview https://deploy-preview-4145.demo.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jfdoming jfdoming force-pushed the jfdoming/fix-send-types branch 5 times, most recently from 7f182ef to 224063c Compare January 14, 2025 04:37
Copy link
Contributor

github-actions bot commented Jan 14, 2025

Bundle Stats — desktop-client

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
17 6.92 MB → 6.92 MB (+30 B) +0.00%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/platform/client/fetch/index.browser.ts 📈 +30 B (+0.85%) 3.44 kB → 3.47 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 4.31 MB → 4.31 MB (+30 B) +0.00%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/fr.js 61.06 kB 0%
static/js/nl.js 98.54 kB 0%
static/js/en-GB.js 99.42 kB 0%
static/js/en.js 100.34 kB 0%
static/js/de.js 111.72 kB 0%
static/js/workbox-window.prod.es5.js 5.69 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/pt-BR.js 106.43 kB 0%
static/js/uk.js 111.11 kB 0%
static/js/AppliedFilters.js 10.52 kB 0%
static/js/useAccountPreviewTransactions.js 1.69 kB 0%
static/js/narrow.js 85.08 kB 0%
static/js/wide.js 102.8 kB 0%
static/js/ReportRouter.js 1.59 MB 0%

Copy link
Contributor

github-actions bot commented Jan 14, 2025

Bundle Stats — loot-core

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
1 1.33 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.js 1.33 MB 0%

@jfdoming jfdoming changed the title [WIP]: Fix types of send function [WIP]: Fix top-level types of send function Jan 14, 2025
@jfdoming jfdoming force-pushed the jfdoming/fix-send-types branch from 77ecf93 to 84fd2b8 Compare January 21, 2025 02:19
args,
{ catchErrors = false } = {},
) {
export const send = function (name, args, { catchErrors = false } = {}) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the T.Send because it was erroring on the return value (currently Promise<unknown> which doesn't match). To fix, we'd have to duplicate the types into this file. Happy to do so if the reviewer thinks it's worth it!

@jfdoming jfdoming marked this pull request as ready for review January 21, 2025 02:40
@actual-github-bot actual-github-bot bot changed the title [WIP]: Fix top-level types of send function : Fix top-level types of send function Jan 21, 2025
@jfdoming jfdoming requested a review from joel-jeremy January 21, 2025 02:40
Copy link
Contributor

coderabbitai bot commented Jan 21, 2025

Walkthrough

The pull request involves modifications to type handling and function signatures across multiple files in the project. In the EditAccess.tsx file within the desktop-client component, the promise type handling is simplified by removing explicit type annotations while retaining the same logic for processing user access. In the loot-core package, changes were made to the fetch module's type definitions and implementation, specifically updating the send and sendCatch function signatures to require parameters and enhance the clarity of return types. The send function's implementation in both index.web.ts and index.browser.ts files has been updated to use rest parameters, allowing for more flexible argument passing while maintaining existing functionality.

Possibly related PRs

  • Fix send types in a number of places (1/2) #4146: This PR addresses type definitions related to the send function, which is directly relevant to the changes made in the main PR that involve promise handling and response processing in the EditAccess.tsx file.

Suggested labels

sparkles:Merged

Suggested reviewers

  • joel-jeremy
  • UnderKoen

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 84fd2b8 and 30c2e28.

📒 Files selected for processing (2)
  • packages/loot-core/src/platform/client/fetch/index.browser.ts (2 hunks)
  • packages/loot-core/src/platform/client/fetch/index.web.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/loot-core/src/platform/client/fetch/index.web.ts
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: Functional
  • GitHub Check: Visual regression
  • GitHub Check: build (macos-latest)
  • GitHub Check: build (windows-latest)
  • GitHub Check: build (ubuntu-latest)
🔇 Additional comments (2)
packages/loot-core/src/platform/client/fetch/index.browser.ts (2)

Line range hint 1-1: Consider removing @ts-strict-ignore after enabling .d.ts checks.

The PR objectives mention plans to enable .d.ts file checks in a separate PR. Once those checks are enabled, consider removing this directive to ensure strict type checking.

Let's check for other instances of this directive:


Line range hint 150-169: LGTM! Type-safe implementation of the send function.

The changes improve type safety while maintaining the existing functionality:

  • Uses Parameters<T.Send> for type-safe rest parameters
  • Explicitly defines return type as ReturnType<T.Send>
  • Correctly destructures parameters with default values

Let's verify the alignment with type definitions:

✅ Verification successful

Type definitions and implementation are perfectly aligned

The rest parameter implementation in index.browser.ts correctly handles both function overloads defined in the type system, maintaining type safety while providing a flexible interface. The parameter destructuring and default values match the type definitions exactly.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify type definitions align with the implementation

# Find and display the Send type definition
ast-grep --pattern 'export type Send = $$$'

# Find any related type definitions that might affect the Send type
rg -A 5 'type Send =' packages/loot-core/src/platform/client

Length of output: 777


Script:

#!/bin/bash
# Find send function type definition and related types
ast-grep --pattern 'export function send($$$)'

# Find Handlers type definition
ast-grep --pattern 'export type Handlers = $$$'

# Find related type imports
rg -A 3 'import.*type' packages/loot-core/src/platform/client/fetch/index.d.ts

Length of output: 461


Script:

#!/bin/bash
# Find and display the Handlers type definition
fd handlers.ts --exec cat {}

# Find any send-related type definitions in the types directory
rg -A 5 'send[<(]' packages/loot-core/src/types

Length of output: 3856


Script:

#!/bin/bash
# Find the main Handlers type and related definitions
fd -e ts -e d.ts --full-path packages/loot-core/src/types --exec grep -l "export.*Handlers"

# Look for send function signatures in client code
rg -A 5 'function send.*\(' packages/loot-core/src/platform/client

# Check for any type definitions in index.d.ts files
fd index.d.ts --exec grep -A 5 'send'

Length of output: 2989

✨ Finishing Touches
  • 📝 Generate Docstrings (Beta)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
packages/loot-core/src/platform/client/fetch/index.web.ts (2)

81-81: Consider reintroducing type annotations for 'send' to maintain type safety.

The explicit type annotation : T.Send has been removed from the send function. While this resolves the immediate type error, it reduces type safety and may lead to unintended issues. Consider updating the return type to align with the new function signature and reintroduce the type annotation to maintain clarity and type safety.

If you need assistance in adjusting the type definitions to reintroduce the type annotation without duplication, I'm happy to help.


106-106: Consider reintroducing type annotations for 'sendCatch' to maintain type safety.

The explicit type annotation : T.SendCatch has been removed from the sendCatch function. To ensure consistent type safety and clarity, consider updating the type definitions and reapplying the type annotation.

If you would like help in updating the type definitions to reintroduce the type annotation, please let me know.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a974715 and 84fd2b8.

⛔ Files ignored due to path filters (1)
  • upcoming-release-notes/4145.md is excluded by !**/*.md
📒 Files selected for processing (3)
  • packages/desktop-client/src/components/modals/EditAccess.tsx (1 hunks)
  • packages/loot-core/src/platform/client/fetch/index.d.ts (1 hunks)
  • packages/loot-core/src/platform/client/fetch/index.web.ts (2 hunks)
🔇 Additional comments (3)
packages/loot-core/src/platform/client/fetch/index.d.ts (3)

23-23: Confirm optional parameters in 'send' function overload.

In the second overload of the send function, confirm that the optional parameters are correctly defined to match the updated function signatures and that it handles cases where args or options might be undefined.


10-17: ⚠️ Potential issue

Update function calls: 'args' parameter is now required in 'send' function.

The args parameter in the send function has been changed from optional to required. This modification may cause existing calls to send without the args argument to fail. Please ensure all calls to send include the args parameter.

Here is a script to identify all send calls missing the args parameter:


29-34: ⚠️ Potential issue

Update function calls: 'args' parameter is now required in 'sendCatch' function.

The args parameter in the sendCatch function has been changed from optional to required. Existing calls to sendCatch without the args argument may fail. Please ensure all calls to sendCatch include the args parameter.

Here is a script to identify all sendCatch calls missing the args parameter:

Comment on lines +36 to +49
send('access-get-available-users', defaultUserAccess.fileId).then(data => {
if ('error' in data) {
setSetError(data.error);
} else {
setAvailableUsers(
data.map(user => [
user.userId,
user.displayName
? `${user.displayName} (${user.userName})`
: user.userName,
]),
);
}
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Update error handling to match the updated 'send' function behavior.

With the changes to the send function, errors are now thrown instead of being returned when catchErrors is not set to true. The current code checks for an error property in the response, which may no longer be valid. To maintain the existing error handling, consider using sendCatch or passing { catchErrors: true } as an options parameter.

Apply one of the following solutions to update the code:

Option 1: Use sendCatch function

 useEffect(() => {
-    send('access-get-available-users', defaultUserAccess.fileId).then(data => {
+    sendCatch('access-get-available-users', defaultUserAccess.fileId).then(response => {
       if (response.error) {
         setSetError(response.error);
       } else {
         setAvailableUsers(
-          data.map(user => [
+          response.data.map(user => [
             user.userId,
             user.displayName
               ? `${user.displayName} (${user.userName})`
               : user.userName,
           ]),
         );
       }
     });

Option 2: Use send with catchErrors: true option

 useEffect(() => {
-    send('access-get-available-users', defaultUserAccess.fileId).then(data => {
+    send('access-get-available-users', defaultUserAccess.fileId, { catchErrors: true }).then(response => {
       if (response.error) {
         setSetError(response.error);
       } else {
         setAvailableUsers(
-          data.map(user => [
+          response.data.map(user => [
             user.userId,
             user.displayName
               ? `${user.displayName} (${user.userName})`
               : user.userName,
           ]),
         );
       }
     });

Committable suggestion skipped: line range outside the PR's diff.

@jfdoming jfdoming changed the title : Fix top-level types of send function Fix top-level types of send function Jan 21, 2025
| { data: Handlers[K] }
| { error: { type: 'APIError' | 'InternalError'; message: string } }
): Promise<
| { data: Awaited<ReturnType<Handlers[K]>>; error: undefined }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| { data: Awaited<ReturnType<Handlers[K]>>; error: undefined }
| { data: Awaited<ReturnType<Handlers[K]>> }

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remove this I get Property 'error' does not exist on type in a bunch of places like this:

const { data, error } = await sendCatch('gocardless-get-banks', country);

I don't see any other way to keep the ability to destructure like this, any ideas?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. In that case we should probably just merge those two properties and make them both optional. WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I kind of like being able to assert that data is undefined if error is not, and vice-versa. I think it would make the code a bit messy otherwise unfortunately as you'd have to check both

Comment on lines +31 to +34
| {
data: undefined;
error: { type: 'APIError' | 'InternalError'; message: string };
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| {
data: undefined;
error: { type: 'APIError' | 'InternalError'; message: string };
}
| {
error: { type: 'APIError' | 'InternalError'; message: string };
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue as above

@jfdoming jfdoming requested a review from joel-jeremy January 23, 2025 01:18
| { data: Handlers[K] }
| { error: { type: 'APIError' | 'InternalError'; message: string } }
): Promise<
| { data: Awaited<ReturnType<Handlers[K]>>; error: undefined }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. In that case we should probably just merge those two properties and make them both optional. WDYT?

Comment on lines +30 to +33
| { data: Awaited<ReturnType<Handlers[K]>>; error: undefined }
| {
data: undefined;
error: { type: 'APIError' | 'InternalError'; message: string };
Copy link
Contributor

@joel-jeremy joel-jeremy Jan 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| { data: Awaited<ReturnType<Handlers[K]>>; error: undefined }
| {
data: undefined;
error: { type: 'APIError' | 'InternalError'; message: string };
{ data?: Awaited<ReturnType<Handlers[K]>> | undefined; error?: { type: 'APIError' | 'InternalError'; message: string } | undefined; }

@jfdoming jfdoming requested a review from joel-jeremy January 29, 2025 05:33
Copy link
Contributor

@joel-jeremy joel-jeremy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jfdoming jfdoming merged commit df9e6ec into actualbudget:master Feb 19, 2025
21 checks passed
lelemm added a commit to lagoom-br/actual that referenced this pull request Feb 20, 2025
* 🐛  Fix Initializing the connection to the local database hang (actualbudget#4375)

* fix initializing to the local db

* release notes

* Add percentage adjustments to schedule templates (actualbudget#4098) (actualbudget#4257)

* add percentage adjustments to schedule templates

* update release note

* remove unecessary parentheses

* Update packages/loot-core/src/server/budget/goalsSchedule.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* PR comments addressed

* Linting fixes

* Updated error handling, added tests

* Linting fixes

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: youngcw <calebyoung94@gmail.com>

* Custom mapping and import settings for bank sync providers (actualbudget#4253)

* barebones UI

* add saving and prefs

* add last sync functionality

* use mapping for synced transactions

* note

* jest -u

* Update VRT

* Coderabbit

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* add new fields

* rename migration, newer in master

* lint

* coderabbit

* update snapshots

* GoCardless handlers fallback and notes

* expose new fields from SimpleFIN

* update tests

* update instructions on GoCardless handlers

* lint

* feedback

* Update VRT

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: youngcw <calebyoung94@gmail.com>

* Add fallback value for payeename: 'undefined' - CBC Bank (actualbudget#4384)

* Add fallback value for payename: 'undefined'

* docs: add release note

* Add fallback value for payename: 'undefined' (for negative amounts)

* [TypeScript] Convert test page models to TS (actualbudget#4218)

* Dummy commit

* Delete js snapshots

* Move extended expect and test to fixtures

* Fix wrong commit

* Update VRT

* Dummy commit to run GH actions

* Convert test page models to TS

* Release notes

* Fix typecheck errors

* New page models to TS

* Fix typecheck error

* Fix page name

* Put awaits on getTableTotals

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* rename two migrations to realign with convention (actualbudget#4343)

* Updating sync server package name to @actual-app/sync-server (actualbudget#4370)

* updating sync server to have a consistent package name

* release notes

* Add today button on mobile budget page (actualbudget#4380)

* feat: today button on mobile budget page

Jumps to the current month

* add release note

* cleaner onCurrentMonth

* Update VRT

* use SvgCalendar from icons/v2

Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk>

* Update VRT

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk>

* Development mode for sync server (React Fast Refresh on port 5006) (actualbudget#4372)

* devmode for sync server

* removed pluggy from this version

* md

* code review

* changed how open browser

* missed this

* linter

* trigger actions

* 🐛 Fix: Error rate limit at user directory page (actualbudget#4397)

* Error rate limit

* md

* 🐛 Fix new proxy middleware dependency missing on prod build (actualbudget#4400)

* fix new proxy middleware not installed on prod build

* release notes

* Remove deprecated imports for several components (actualbudget#4385)

* don't unbudget goals

* lint

* Fixes actualbudget#4069 : Ignore CSV inOutMode during OFX imports (actualbudget#4382)

* Ignore inOutMode during OFX imports

* Add release notes

---------

Co-authored-by: youngcw <calebyoung94@gmail.com>

* fix tooltip translation (actualbudget#4402)

* [TypeScript] Make `db.runQuery` generic to make it easy to type DB query results (actualbudget#4247)

* Make runQuery generic to make it easy to type DB query results.

* Release notes

* typo

* update mapping data for existing synced transactions and always show direction dropdown (actualbudget#4403)

* update sync mapping data for existing transactions on sync

* show payment direction dropdown regardless of sample data

* note

* ignore changes in raw_synced_data

* Fix top-level types of `send` function (actualbudget#4145)

* Add release notes

* Fix types of `send` function

* Fix `send` types in a number of places

* PR feedback

* Foundations for the budget automations UI (actualbudget#4308)

* Foundations for the budget automations UI

* Coderabbit

* Fix react-hooks/exhaustive-deps error on useSelected.tsx (actualbudget#4258)

* Fix react-hooks/exhaustive-deps error on useSelected.tsx

* Release notes

* Fix react-hooks/exhaustive-deps error on usePayees.ts (actualbudget#4260)

* Fix react-hooks/exhaustive-deps error on usePayees.ts

* Rename

* Release notes

* Fix react-hooks/exhaustive-deps error on useAccounts.ts (actualbudget#4262)

* Fix react-hooks/exhaustive-deps error on useAccounts.ts

* Release notes

* Fix react-hooks/exhaustive-deps error on Titlebar.tsx (actualbudget#4273)

* Fix react-hooks/exhaustive-deps error on Titlebar.tsx

* Release notes

* [WIP] BANKS_WITH_LIMITED_HISTORY constant update (actualbudget#4388)

* Fix react-hooks/exhaustive-deps error on useProperFocus.tsx (actualbudget#4259)

* Fix react-hooks/exhaustive-deps error on useProperFocus.tsx

* Remove comment in eslint config

* Release notes

* Fix react-hooks/exhaustive-deps error on TransactionsTable.jsx (actualbudget#4268)

* Fix react-hooks/exhaustive-deps error on TransactionsTable.jsx

* Release notes

* Fix lint

* Fix react-hooks/exhaustive-deps error on table.tsx (actualbudget#4274)

* Fix react-hooks/exhaustive-deps error on table.tsx

* Release notes

* Fix react-hooks/exhaustive-deps error on useCategories.ts (actualbudget#4261)

* Fix react-hooks/exhaustive-deps error on useCategories.ts

* Release notes

* 👷 Typescript: Improving typing of asyncStorage (global-store.json) (actualbudget#4369)

* typing globalprefs

* adding release notes

* unneeded partial

* removing prop that crept in

* 📚 Translation batch #1 (actualbudget#4408)

* Translation batch

* md

* Update packages/desktop-client/src/components/settings/Export.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix code review from coderabbit

* code review

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Fix currencyToAmount incorrectly converting input (actualbudget#4383)

* fix: ensure currencyToAmount works regardless of the configured number format

* chore: linting

* docs: add release note

* test: ensure correct amount is entered for debit when adding split transactions

* chore: rename variable thousandsSep to thousandsSeparator

Co-authored-by: Joel Jeremy Marquez <joeljeremy.marquez@gmail.com>

* chore: rename variable decimalSep to decimalSeparator

Co-authored-by: Joel Jeremy Marquez <joeljeremy.marquez@gmail.com>

* chore: rename decimalSep and thousandsSep variables to decimalSeparator and thousandsSeparator

---------

Co-authored-by: Joel Jeremy Marquez <joeljeremy.marquez@gmail.com>

* useDisplayPayee hook to unify payee names in mobile and desktop. (actualbudget#4213)

* useDisplayPayee hook to unify payee logic in mobile and desktop

* Release notes

* Fix typecheck errors

* Fix test

* Update test

* Revert (No payee) color

* Fix tests

* VRT

* Fix category transactions

* Fix lint and VRT

* Update VRT

* Translate

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Extract transaction related server handlers from `main.ts` to `server/transactions/app.ts` (actualbudget#4221)

* Move transaction related handlers to server/transactions folder and use the new convention

* Fix lint and typecheck

* Release notes

* Update handler names

* Move get-earliest-transaction

* Update release notes

* Fix tests

* Fix types

* Fix lint

* Update snapshot

* Remove duplicate parse-file.ts

* Fix lint

* 🐛 Fix `On budget` / `Off budget` underline with translated languages (actualbudget#4417)

* Fix `On budget` / `Off budget` underline

* md

* ajuste para o merge

---------

Co-authored-by: Michael Clark <5285928+MikesGlitch@users.noreply.github.com>
Co-authored-by: Matt Farrell <10377148+MattFaz@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: youngcw <calebyoung94@gmail.com>
Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Martin Michotte <55855805+MMichotte@users.noreply.github.com>
Co-authored-by: Joel Jeremy Marquez <joeljeremy.marquez@gmail.com>
Co-authored-by: Adam Stück <adam@adast.dk>
Co-authored-by: Alberto Cortina Eduarte <albertocortina96@gmail.com>
Co-authored-by: Gabriel J. Michael <gabriel.j.michael@gmail.com>
Co-authored-by: Julian Dominguez-Schatz <julian.dominguezschatz@gmail.com>
Co-authored-by: Michał Gołąb <23549913+michalgolab@users.noreply.github.com>
Co-authored-by: Antoine Taillard <an.taillard@gmail.com>
@jfdoming jfdoming deleted the jfdoming/fix-send-types branch February 22, 2025 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants