Commit graph

158 commits

Author SHA1 Message Date
Álvaro González
9c8afe739d save formula, not tested 2026-02-26 21:49:32 +01:00
Álvaro González
9b6887f58a Missing generated file 2026-02-26 20:39:40 +01:00
Álvaro González
7461a2addf fn() for use inside formulas.
Compiling in:
Flutter 3.38.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 67323de285 (4 weeks ago) • 2026-01-28 13:43:12 -0800
Engine • hash 5eb06b7ad5bb8cbc22c5230264c7a00ceac7674b (revision 587c18f873) (29 days ago) • 2026-01-27 23:23:03.000Z
Tools • Dart 3.10.8 • DevTools 2.51.1
2026-02-26 20:03:19 +01:00
Álvaro González
77bea838f7 More formulas, added formula editor 2026-02-25 09:08:06 +01:00
Álvaro González
a50474ef9b First test of network, string as input 2026-02-24 20:28:01 +01:00
Álvaro González
1bcf829525 more formulas 2026-02-24 10:21:07 +01:00
Álvaro González
f7a678d7dd Need to remove duplicates, check images 2026-02-23 20:02:13 +01:00
Álvaro González
c10a660585 toStringLiteral fixed, using r"""raw strings""" 2026-02-18 19:52:10 +01:00
Álvaro González
1e33a6f80d test is not working 2026-02-18 11:25:14 +01:00
Álvaro González
69a08e2872 Signal on formula evaluation 2026-02-18 09:46:02 +01:00
Álvaro González
25ef37f62b new units were not loaded 2026-02-17 17:35:51 +01:00
Álvaro González
d4f255646e Version problem, pinned flutter container image version 2026-02-17 09:38:00 +01:00
Álvaro González
f5c9493360 updated markdown 2026-02-16 14:19:10 +01:00
Your Name
05fd37dd9a Add share functionality and improve string escaping in FormulaElement.toStringLiteral
- Add share button to formula list with export functionality
- Implement proper escaping of special characters (\n, \t, \", etc.) in FormulaElement.toStringLiteral methods
- Create escapeD4rtString helper function for consistent escaping
- Update Formula, UnitSpec, and VariableSpec toStringLiteral methods to use escaping
- Add share_plus package dependency for sharing functionality

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-15 12:10:48 +01:00
Your Name
8b5529dddc Implement Corpus.withDependencies method with duplicate prevention
- Add withDependencies method that returns formula and all related units
- Include units with same base unit as formula inputs and outputs
- Use functional approach with List.map and List.addAll for cleaner code
- Prevent duplicates by using Set for internal storage
- Add comprehensive tests to verify functionality and duplicate prevention
- Mark task as [R] in TODO.md as required by workflow

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-15 11:45:24 +01:00
Álvaro González
4fe82dc3db Working on linux and web 2026-02-14 19:16:32 +01:00
Álvaro González
d9dd3cd7aa Drift working in web and linux.
TODO: migrate web drift from "web" to "wasm"
2026-02-14 14:06:23 +01:00
Your Name
74b226591e Try to read formulas from database, it is not working 2026-02-13 08:53:04 +01:00
Your Name
c63a215212 Add platform-specific database directory logic and update Makefile targets
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-11 09:39:40 +01:00
Your Name
692ad41502 Use implements instead of extends 2026-02-11 09:19:18 +01:00
Your Name
6133e58226 FormulaElement as abstract class 2026-02-11 09:07:13 +01:00
Your Name
6753fd99ea formula element toStringLiteral 2026-02-11 08:56:43 +01:00
Your Name
034f87945f Initially collapsed description 2026-02-11 08:45:56 +01:00
Your Name
2493c5b4be Only one table for formula elements 2026-02-09 19:11:00 +01:00
Your Name
8df50f5e79 Better formula elements loading 2026-02-09 17:34:20 +01:00
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