-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/account balances #2
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
Open
DevLabStudio
wants to merge
156
commits into
master
Choose a base branch
from
fix/account-balances
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…eas contas. Por exemplo eu uso a Wise para trocar EUR por BRL. e vice versa, adicionei uma transacao dessa e acabou salvando a trasacao da Wise em EUR foi para a conta de Nubank que e em BRL. Precisamos dar a opcao de uma conta poder ter duas moedas e dois saldos, como o caso da Wise
…imeiro em BRL e em baixo EUR
… "Transfer"): This is a bit trickier with our current model where each account in our app has only one primary currency and balance. An internal conversion within your real-world Wise account (e.g., EUR to BRL) doesn't involve moving money between two different accounts that our app knows about as separate entities. To model this as a "transfer" within our app, you would essentially need to represent the different currency pockets of your Wise account as separate accounts in our app. For example: Create an account in our app called "Wise EUR" with currency EUR. Create another account in our app called "Wise BRL" with currency BRL. Then, when you convert 100 EUR to, say, 525 BRL within your actual Wise account, you would record it in our app as: A transfer of -100 EUR from your "Wise EUR" (app account). A corresponding transfer of +525 BRL to your "Wise BRL" (app account). You'd need to input the exchange rate used for this conversion in the transfer form. This approach uses the existing transfer mechanism to log the internal conversion. The "tipo de conta com moedas" (account type with multiple currencies/balances) you mentioned is a more advanced feature that would require changing our Account model to hold multiple balances (e.g., [{currency: 'EUR', balance: X}, {currency: 'BRL', balance: Y}] for a single Wise account). We can definitely consider this for a future enhancement! Tudo bem, entao ao inves de fazer isso, vamos deixar como esta, em duas transacoes mesmo, agora acho que a transacao entrou corretamente, porem o valor que entrou em real na conta da Nubank foi o valor em real calculado pelo app, nao pelo rate que eu defini na transacao, altere apenas isso, o valor que entrar na outra conta com uma moeda diferente deve ser calculado pelo rate definido
…sta refletindo ao rate, tem que ser exatamente o rate que foi adicionado pelo usuario
… criar a opcao de inserir o quanto da outra moeda vai chegar na outra conta e o nosso app calcula o rate somente para mostrar
… em um arquivo csv, de uma forma que ao importar o mesmo arquivo de volta o app relembre tudo, digo tudo mesmo, categorias, grupos, loans, budgets, transacoes, accounts, tudo tudo
…nte. Nessa versao a aba import data ja nao esta direcionando para o painel
… error is reported as HTML but presented visually to the user). A > before the line number in the error source usually indicates the line of interest: > Unhandled Runtime Error: Error: handleExportData is not defined. Error source: src/app/import/page.tsx (1389:32) @ DataManagementPage > > 1387 | {isLoading && importProgress > 0 ? `Importing... (${importProgress}%)` : "Import Transactions"} > 1388 | </Button> > > 1389 | <Button onClick={handleExportData} disabled={isExporting || (isLoading && !isMappingDialogOpen)}> > | ^ > 1390 | <Download className="mr-2 h-4 w-4" /> > 1391 | {isExporting ? "Exporting..." : "Export All Data"} > 1392 | </Button> > > Call Stack > 2 > > Show 1 ignore-listed frame(s) > DataManagementPage > src/app/import/page.tsx (1389:32)
…ocar no mesmo aequivo, mesmo que seja numa segunda aba
…mportacao ser certinha tambem
…nda todas as planilhas em uma pasta compactada? Se sim, ja crie tambem a importacao de u arquivo compactado, esse sera o modo do usuario fazer o backup
… error is reported as HTML but presented visually to the user). A > before the line number in the error source usually indicates the line of interest: > Runtime Error: Error: ./src/app/data-management/page.tsx:26:1 > Export FileZip doesn't exist in target module > 24 | import { getCurrencySymbol, supportedCurrencies, formatCurrency, convertCurrency } from '@/lib/currency'; > 25 | import CsvMappingForm, { type ColumnMapping } from '@/components/import/csv-mapping-form'; > > 26 | import { AlertCircle, Trash2, Download, FileZip } from 'lucide-react'; > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 27 | import { cn } from '@/lib/utils'; > 28 | import { useAuthContext } from '@/contexts/AuthContext'; > 29 | import Link from 'next/link'; > > The export FileZip was not found in module [project]/node_modules/lucide-react/dist/esm/lucide-react.js [app-client] (ecmascript) <exports>. > Did you mean to import File? > All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist. > > . Error source: Call Stack > 7 > > Show 5 ignore-listed frame(s) > <unknown> > error: ./src/app/data-management/page.tsx (26:1) > <unknown> (Error: > ./src/app/data-management/page.tsx (26:1)
…vio ZIP gerado exclusivamente pelo nosso app. Nao consegue reconhecer todos?
… error is reported as HTML but presented visually to the user). A > before the line number in the error source usually indicates the line of interest: > ./src/app/preferences/page.tsx:15:1 > Export exportAllUserDataToCsvs doesn't exist in target module > 13 | import { Skeleton } from '@/components/ui/skeleton'; > 14 | import { useAuthContext } from '@/contexts/AuthContext'; > > 15 | import { exportAllUserDataToCsvs } from '@/services/export'; // Import the export function > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 16 | import { Download } from 'lucide-react'; > 17 | > 18 | export default function PreferencesPage() { > > The export exportAllUserDataToCsvs was not found in module [project]/src/services/export.ts [app-client] (ecmascript). > Did you mean to import exportAllUserDataToZip? > All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist. > >
…stao na aba Financial Control, os Loans, credit cards, budget, targets e subscriptions. E tambem adicione para apagar tudo isso no botao de clear data
…, no final as contas nao estao batendo os valores, nao consegui identificar o motivo
…postadas) e o segundo de como elas estao voltando do backup ( importadas), esta quase tudo certo, so alguns valores que nao estao batendo, estamos quase corrigindo isso!
…e essa pagina e so fica carregadno
…o. Acredito que esta falntando reconhecer no caso da transicao de uma moeda para outra e tambem alguns saldos negativos. Revise e corrija por favor.
… icone do Data Management para um icone de database
…ending coloco algo relacionado as subscriptions, um grafico de pizza
…a o titulo, pode ser so subscriptions
… error is reported as HTML but presented visually to the user). A > before the line number in the error source usually indicates the line of interest: > Console Error: Error: set failed: value argument contains undefined in property 'users.BuiLVIXnNKZBiJYb7GD8P14suYF3.subscriptions.-OQnxcmvteAmvSQPhj2I.accountId'. Error source: src/services/subscriptions.ts (115:13) @ addSubscription > > 113 | > 114 | try { > > 115 | await set(newSubscriptionRef, dataToSave); > | ^ > 116 | return newSubscription; > 117 | } catch (error) { > 118 | console.error("Error adding subscription to Firebase:", error); > > Call Stack > 10 > > Show 7 ignore-listed frame(s) > addSubscription > src/services/subscriptions.ts (115:13) > handleSubscriptionAdded > src/app/financial-control/page.tsx (167:30) > handleFormSubmit > src/components/subscriptions/add-subscription-form.tsx (108:11)
…coes nesse navegador, acho que elas estao sendo armazenadas no local Storage. Mas sao somente as Transacoes, os valores das contas e a aba Financial Control esta puxando em todas, vamos corrigir apenas o salvamento das TRANSACOES
… error is reported as HTML but presented visually to the user). A > before the line number in the error source usually indicates the line of interest: > ./src/app/page.tsx:13:1 > Module not found: Can't resolve '@/components/dashboard/subscriptions-bar-chart' > 11 | import ExpensesBreakdownCard from "@/components/dashboard/ExpensesBreakdownCard"; > 12 | import NetWorthCompositionChart, { type NetWorthChartDataPoint } from "@/components/dashboard/net-worth-composition-chart"; > > 13 | import SubscriptionsBarChart from '@/components/dashboard/subscriptions-bar-chart'; > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 14 | > 15 | import { getAccounts, type Account } from "@/services/account-sync"; > 16 | import { getTransactions, type Transaction } from "@/services/transactions"; > > Import map: aliased to relative './src/components/dashboard/subscriptions-bar-chart' inside of [project]/ > > > https://nextjs.org/docs/messages/module-not-found > >
…me, valor e data de pagamento
…recer as transacoes do periodo selecionado
…ta, deixar a barra de rolagem apenas dentro do card e manter o temanho que o card estava
, Find this element: <Primitive.div role="tablist" aria-orientation="horizontal" className="items-center justify-center rounded-md bg-muted p-1 text-muted-foreground grid w-full grid-cols-3 mb-3 h-9" tabIndex=0 data-orientation="horizontal" style={"outline":"none"}> with the text content: AllRevenueExpenses Relevant files: - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_%40radix-ui_34a97add._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_%40radix-ui_34a97add._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_%40radix-ui_34a97add._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_%40radix-ui_34a97add._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_%40radix-ui_34a97add._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_%40radix-ui_34a97add._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_%40radix-ui_34a97add._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_%40radix-ui_34a97add._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_99d63c67._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/src_f74e38d3._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_ed16bc1e._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_next_dist_compiled_2ce9398a._.js - https://6000-idx-studio-1746229037823.cluster-axf5tvtfjjfekvhwxwkkkzsk2y.cloudworkstations.dev/_next/static/chunks/node_modules_next_dist_compiled_2ce9398a._.js And change it as follows: Estou me referindo a adicionar uma aba de Swaps ao lado de expenses
… ao periodo selecionado tambem
…trar os gastos por mes
…as, uma de expense e uma de income, e deixe o nome somente de statistics
…ouco em pouco, Na verdade esse card sera usado para visualizacao geral dos investments. Pode retirar o card Portfolio Composition
…a opcao de linkar ela a uma subscription
…s contas parecem estar certas so nao esta aparecendo nos cards e com isso tambem nao esta aparecendo na dashboard
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.