Commit graph

133 commits

Author SHA1 Message Date
Your Name
091dd9d4ec Collapsable description 2026-02-09 17:10:47 +01:00
Your Name
7728498bf9 simplified error handler 2026-02-09 17:01:00 +01:00
Your Name
77f62396e0 Error handling 2026-02-09 16:57:53 +01:00
Your Name
5ef88beef5 con drift 2026-02-07 17:01:37 +01:00
Your Name
20a981ad9f antes de drift 2026-02-07 16:16:00 +01:00
Your Name
e867954f6f more formulas 2026-02-07 12:52:55 +01:00
Your Name
f43d2bcce3 better witdh and price comparation formula 2026-02-07 12:39:26 +01:00
Your Name
ffe1326629 Used qwen to validate allowed values 2026-02-07 11:45:25 +01:00
Álvaro González
9ea3b88684 WEB_PORT, para juntar en master 2026-02-01 16:16:04 +01:00
Álvaro González
1a076dff6c Apgar ya funciona, no estoy muy contento con indexOf, variableAllowedValues y variableValues 2026-01-31 19:53:12 +01:00
alvaro@a37
8283941125 Funciona hot-reload, no funciona cambiar las unidades del output 2026-01-28 14:06:57 +01:00
Álvaro González
28671888e1 Docker basado en un sh en vez de en compose 2026-01-28 11:04:33 +01:00
Álvaro González
57becb5577 algún avance con copilot en apgar 2026-01-25 19:20:28 +01:00
Álvaro González
b2ffea801a formula works, mergin in main 2026-01-25 19:03:57 +01:00
Álvaro González
fd5999d586 Better apgar formula 2026-01-25 18:39:43 +01:00
Álvaro González
76769973f3 can't make valiation on each user interaction 2026-01-21 08:49:56 +01:00
Álvaro González
13612e7601 preparando apgar 2025-11-09 20:29:58 +01:00
Álvaro González
e04276cb2a añado escalas no numéricas 2025-11-05 12:59:57 +01:00
Álvaro González
26ad07d076 Preparo para fórmulas que devuelven cadenas 2025-11-05 10:35:53 +01:00
Álvaro González
82d29022a6 elimino una reevaluación de los inputs 2025-10-16 19:28:17 +02:00
Álvaro González
d58a6cda8f conversión de unidades con expresiones y con sentencias 2025-10-15 10:10:29 +02:00
Álvaro González
a48182ffbf error en conversor de temperaturas 2025-10-14 19:21:35 +02:00
Álvaro González
0c4fef93c1 preparo dependencia editor, y D4rtEditingController 2025-10-13 16:31:26 +02:00
Álvaro González
2c0fcc8b4e antes de aider y un widget nuevo 2025-10-13 09:29:58 +02:00
Álvaro González
5a8f9de2a1 preparado para expresiones en los valores de entrada 2025-10-05 17:25:49 +02:00
Álvaro González
daa8b31879 Raw strings in formulas, to avoid $$ 2025-10-05 16:53:46 +02:00
Álvaro González
ba6c761cee Test for d4rt 2025-09-22 17:00:34 +02:00
Álvaro González
80d6c7d0df feat: use Math namespace for pow function in formulas 2025-09-22 13:35:18 +02:00
Álvaro González
88f55a1e32 feat: add search functionality for formulas by name and tags 2025-09-22 10:42:43 +02:00
Álvaro González
00eb595d2d feat: add FormulaList widget and force unit definitions 2025-09-21 21:35:20 +02:00
Álvaro González
681d9215b3 formulas lacked final semicolon 2025-09-21 16:53:50 +02:00
Álvaro González
e593c997cb feat: add angle and force units, correct unit references and tests 2025-09-21 16:44:48 +02:00
Álvaro González
d3dce8794c removing initial unit list, more units and formulas 2025-09-21 16:35:54 +02:00
Álvaro González
ba0476ed26 towards a full example of corpus 2025-09-20 16:46:21 +02:00
Álvaro González
1da336e71a feat: add markdown support for formula descriptions 2025-09-16 22:01:34 +02:00
Álvaro González
1a7fd0c884 feat: add tags support to formulas 2025-09-16 18:22:29 +02:00
Álvaro González
d396d71afc more example formulas 2025-09-16 18:14:39 +02:00
Álvaro González
5198895c10 style: Remove vertical padding from unit dropdown 2025-09-15 22:18:42 +02:00
Álvaro González
c497633cac feat: add angle units and formula documentation 2025-09-15 22:12:26 +02:00
Álvaro González
ba5175b6be feat: add description field to Formula and example formulas 2025-09-15 21:58:11 +02:00
Álvaro González
e08474a7eb magnitude -> unit 2025-09-15 21:42:15 +02:00
Álvaro González
0933745b1f fix: correct dropdown indentation and syntax in unit selector
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 17:03:02 +02:00
Álvaro González
49d342b9e7 style: adjust UnitDropdown width to prevent text wrapping with ellipsis
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 17:01:20 +02:00
Álvaro González
3c22dc06f5 feat: show unit symbol and name in dropdown options
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 16:59:20 +02:00
Álvaro González
861891c6a1 fix: correct unit references in dropdown 2025-09-14 16:59:13 +02:00
Álvaro González
b8c3fc0f24 feat: convert formula result on output unit change
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 16:56:19 +02:00
Álvaro González
c779f5281b fix: correct unit references in formula screen 2025-09-14 16:56:13 +02:00
Álvaro González
4e919e5a1c feat: trigger formula evaluation on unit change
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 16:52:15 +02:00
Álvaro González
f52e5debcb fix: convert input variables from dropdown to base unit in formula evaluation
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 16:48:45 +02:00
Álvaro González
d3c509ace4 style: disable and style result field
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 16:41:34 +02:00
Álvaro González
54e40a2abc feat: enable auto-calculation with real-time input updates
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 16:40:54 +02:00
Álvaro González
5e2acf39c3 Changes not commited by aider 2025-09-14 16:40:27 +02:00
Álvaro González
943436b9bb feat: add energy units
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 16:35:55 +02:00
Álvaro González
2096409f53 feat: add energy units
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 16:35:27 +02:00
Álvaro González
76f953f4b1 feat: add mass units and fix temperature typo
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 16:33:21 +02:00
Álvaro González
0eef3b6554 feat: add area, distance, pressure, and temperature unit resources 2025-09-14 16:33:14 +02:00
Álvaro González
bf39f07928 feat: add velocity unit support
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-14 16:25:11 +02:00
Álvaro González
bb15f23dda fix: Use unitsOfSameMagnitude to populate UnitDropdown options
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-10 17:38:46 +02:00
Álvaro González
eb8b32c762 first ai version of formula screen 2025-09-10 17:17:28 +02:00
Álvaro González
30a61eaa70 feat: add formula screen UI components with stack trace logging
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-10 17:03:32 +02:00
Álvaro González
fe89630f53 feat: add formula screen with unit conversion 2025-09-10 17:03:21 +02:00
Álvaro González
45a9a89c3e feat: Add formula input screen with unit conversion support
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-10 12:58:08 +02:00
Álvaro González
587d41f5c5 feat: Add greeting message to unit list screen
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-09 10:05:53 +02:00
Álvaro González
becfd56c30 chore: remove obsolete comment in unit list 2025-09-09 10:05:45 +02:00
Álvaro González
018579d4b9 feat: enhance UnitList with conversion factors and empty state
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-09 09:57:05 +02:00
Álvaro González
7a1060e773 feat: add searchable units list with filtering 2025-09-09 09:56:57 +02:00
Álvaro González
666fa20e7b feat: switch to async unit loading with temperature corpus
Co-authored-by: aider (openrouter/deepseek/deepseek-r1:free) <aider@aider.chat>
2025-09-08 20:27:42 +02:00
Álvaro González
19fd9552c8 after dart --fix 2025-09-07 14:04:42 +02:00
Álvaro González
29208f8c40 units 2025-09-07 13:59:03 +02:00
Álvaro González
bbaf819b67 Unit corpus and some tests 2025-09-07 13:34:27 +02:00
Álvaro González
e6bd0f512f dart --fix 2025-09-05 18:53:06 +02:00
Álvaro González
8fb175bcda Code is compiling 2025-08-28 12:34:49 +02:00
Álvaro González
57c8d8b064 Compilation problems, will recreate flutter app again 2025-08-27 11:10:22 +02:00
Álvaro González
785fe72449 First version of a formula widget 2025-08-26 17:17:42 +02:00
Álvaro González
2472e0db7c formula is more natural 2025-08-26 16:54:35 +02:00
Álvaro González
dcf409cbf7 dart Set literals instead of json 2025-08-26 16:37:28 +02:00
Álvaro González
06be580dff dart Set literals instead of json 2025-08-24 12:33:21 +02:00
Álvaro González
a1fb9057a7 main not present in d4rt_code in formula 2025-08-24 12:08:10 +02:00
Álvaro González
52590cd2fb VariableSpec includes var name 2025-08-24 11:52:34 +02:00
Álvaro González
75fad84cac Tests passing, all formulas validated 2025-08-22 17:47:06 +02:00
Álvaro González
a6a8fafab5 feat: implement formula evaluation using d4rt interpreter
- Add FormulaEvaluator class with d4rt integration
- Support single output variable formulas with variable injection
- Include comprehensive error handling and validation
- Add 15 test cases covering evaluation scenarios
- Create working example with Newton's law, quadratic discriminant, etc.
- Export evaluator in main library file

Implements formula evaluation by injecting variable declarations
into d4rt source code, enabling execution of mathematical formulas
with input parameters.
2025-08-21 18:35:50 +02:00
Álvaro González
1d339653d5 feat: add formula data classes with strict JSON parsing
- Add VariableSpec class with magnitude field validation
- Add Formula class supporting multiple input/output variables
- Support d4rt_code as string or object with code field
- Add comprehensive tests for parsing and serialization
- Fix broken test import in pruebas_d4rt_test.dart

Follows README.md format requirements exactly
2025-08-21 17:15:00 +02:00
Álvaro González
d27537ce34 Exclude files of warp jail, add some other files 2025-08-21 16:14:36 +02:00