256 Commits

Author SHA1 Message Date
b81a671350 improvements: the whole branch reviewed. some tests added. some cleraning done. 2026-10-23 22:33:10 +03:30
178b2bc7e0 improvements: Currency convertion api added for subscriptions calculation 2026-10-23 21:19:12 +03:30
7049b17882 improvements: gapGPT keys and apis used instead of openrouter instead. 2026-10-23 20:28:03 +03:30
6d9eb06e51 Merge branch 'master' into improvements/subscription-V2 2026-10-22 03:56:54 +03:30
7727731edc improvements: packages version missmatch fixed. 2026-10-22 03:51:28 +03:30
0a405bba7f Merge branch 'master' into improvements/subscription-V2 2026-10-22 03:26:20 +03:30
925b4776e1 improvements: currency selection method fixed. debit/credit fotter added for searched transactions. staff payment is now possible. 2026-10-22 03:05:38 +03:30
cdd4392f5f improvements: export to exocad changes reviewed. 2026-10-22 01:01:26 +03:30
cec0bd4d6e improvements: exocad material matching improved 2026-10-21 23:19:45 +03:30
df9ca401e2 improvements: browsing exocad's db ui flow bug fixed so that user can choose another file if the first file is invalid. exocad's material data insertion updated based on real data 2026-10-21 19:42:51 +03:30
98281e764f improvements: prosthesis pipelines leftover data dropped. 2026-10-21 17:42:13 +03:30
a398cb66e7 improvements: subsription v2 first implementation. 2026-10-19 18:40:11 +03:30
247d2f863d Merge branch 'master' into improvements/billing-V2 2026-10-19 03:03:44 +03:30
117a76182c Make Send to Exocad Chrome/Edge only and rework the case header
- Remove the temporary Local database tab, the local-agent helper, the
  download fallback and the unused table viewer/insert code; Send to Exocad
  now writes the picked file directly through the browser file picker
  (Chrome and Edge only).
- Remember the picked database in IndexedDB and reopen it on the next send
  while the file still exists; show Browse again if it is gone.
- Show the button at every screen size when the browser supports the picker;
  hide it everywhere else.
- Rebuild the case header around the panel width (container query): two
  columns when wide, one stack when narrow, with Mark as important and Billed
  under the external code and Edit/Outsource/Send to Exocad/Get PDF in an
  equal-width grid.
- Slim the local database session to what Send to Exocad uses, prune unused
  localDb i18n keys, and update the lab-cases docs.
2026-10-17 00:46:17 +03:30
b26cdb24fa Merge branch 'master' into feature/exocat-db-connection
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 22:45:19 +03:30
6972b9eaff improvements: milling and sintering unified. Price calculation added to billing both for clinic sent and outsourced cases. pament confirmation added to billing flows. 2026-10-16 16:16:42 +03:30
21865e386e Merge pull request 'Count started own lab cases on the dashboard and fit the gadgets to the screen.' (#108) from improvement/gadgets into master
Reviewed-on: admin/dyolink#108
Reviewed-by: admin <admin@localhost>
2026-10-16 16:15:04 +03:30
c80f268668 Send a lab case into the local Exocad database.
Write the clinic, patient, and mapped teeth into DentalDB from the case, and keep the Local database tab as a temporary viewer.
2026-10-16 15:54:50 +03:30
c8da77dbf2 Count started own lab cases on the dashboard and fit the gadgets to the screen.
Lab numbers now follow the same cases as Cases and Tasks: a case the lab started itself is included, and a step already handed to another lab is not. Day labels stay inside the charts, the grid follows the dashboard width, and the progress rings share one thin stroke.
2026-10-16 02:52:46 +03:30
5b17aa4115 improvement: Case Sheet PDF type, landscape QR, and filename.
Upscale print type without widening the layout, pad the header so the landscape QR is not clipped, and name downloads case-sheet-{orderNumber}.pdf using the printed external code when set.
2026-10-15 18:47:29 +03:30
1e4fcfd27f improvements: Dry milling and sintering unified. stain and glaze unified. model design and model creation (of case level steps) now can be outsourced. 2026-10-14 16:31:03 +03:30
0ff9b2f2a5 bugfix: auto bridging same crown types after starting a case fixed. 2026-10-14 15:03:32 +03:30
57eff31ec0 in the middle of exocat db connection. 2026-10-14 14:50:13 +03:30
e17d08dbe0 improvment: tab change terminating unfinished attachments uploads fixed. 2026-10-10 03:44:51 +03:30
3cb579eaac improvment: code reviewd. some bugs when removing an attachment fixed. 2026-10-10 02:28:06 +03:30
f465523991 improvment: voice feature re-introduced in cases. remove option added for case attachments. counter badges added to cases tabs. 2026-10-10 01:57:35 +03:30
f9eddb4275 improvment: progression bar added to cases attachment card. upload size restrictions removed. 2026-10-10 00:59:29 +03:30
a690070127 Confirm new accounts and invites with an emailed code before they can sign in.
Existing users stay verified. Password reset can use email as well as SMS.
2026-10-08 19:22:02 +03:30
69e99c7713 improvment: code reviewd. docs and skills updated. 2026-10-06 18:25:29 +03:30
39e352a9f9 improvment: tasks UI updated based on new cases changes. 2026-10-06 18:01:20 +03:30
13c1fff61d improvment: all confirmation promts replaced with a shared confirma dialog component. 2026-10-06 17:30:05 +03:30
0278a1859c improvment: Cases flow splited into three tabs - details, files and messages. buggy functions fixed in cases. pdf layout improved. 2026-10-06 16:50:36 +03:30
f59951ef97 improvment: Case sheets now show comments. wet milling removed from PFM crown workflow pipeline. 2026-10-02 19:54:31 +03:30
686297000d improvment: Lab case outsourcing UX improved. 2026-10-02 03:01:33 +03:30
277edf9e75 improvment: case QrCodes now updates after editing a case. 2026-10-02 01:52:25 +03:30
9b3918e861 improvment: Task generation process updated. Cases and Tasks feature updated accordingly. 2026-10-02 01:00:23 +03:30
85ff8988d9 improvment: Persian case sheet layout problems fixed. 2026-10-01 22:26:18 +03:30
a305293404 improvment: Lab case outsourcing v1 implemented. 2026-10-01 01:51:54 +03:30
d3361031e2 improvment: case sheet print layout updated both for landscape and portrait. 2026-10-01 00:01:00 +03:30
ca488cb602 improvement: generating tasks and their related steps improved. 2026-09-25 23:11:04 +03:30
e70f806ee6 Merge pull request 'fix(tasks): keep case header names readable on mobile' (#90) from bug/responsive-task-header into master
Reviewed-on: admin/dyolink#90
Reviewed-by: admin <admin@localhost>
2026-09-22 14:13:09 +03:30
93d0baa178 fix(tasks): keep case header names readable on mobile 2026-09-22 02:52:42 +03:30
5565dba604 feat(errors): add PERMISSION_EDIT_CASES and use it for the lab voice denial
Cases was the one feature with no edit-specific error code, so cases.service.ts
throws PERMISSION_ACCESS_CASES for a failed read check (:1375) and for a failed
edit check (:1391) alike. The lab voice branch checks TAB_CASES_EDIT, so reusing
it told a member holding TAB_CASES_READ "you do not have access to cases" — false,
and it points them at the wrong setting.

All three layers: the code in error-codes.ts, the throw in assertCanDictate, and
errors.PERMISSION_EDIT_CASES in en, fa and nl.

The two voice.service.spec cases asserting the old code failed on the change and
were updated — they are the guard that caught it.

cases.service.ts:1391 has the same mismatch and is left alone; it is an existing
endpoint's message, not this task's.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 13:01:49 +08:00
b2f2825beb fix(voice): say so when a dictation lands nothing on the line
buildLabLineFromVoice returns null whenever no prosthesis job survives — bare
teeth with no material, an out-of-catalog code, every code refused by the stack
rules. applyVoice then closed the sheet and returned in silence.

Dictate "دندون ۱۲ و ۱۴" with no material: lab mode forces labDependent, so the
merged row is available and ticked and the button reads Apply (1). Tapping it
changed nothing and said nothing.

It now raises voiceNothingExtracted through the panel's existing toast, unless a
due date landed — a due-date-only dictation did do something and must stay quiet.

Found by /code-review.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 13:00:45 +08:00
0584b79472 fix(voice): never append a blank line from a dictation that built none
Found by the /orchestrate correctness critic, verified by hand.

applyVoice checked isBlankLine on the TARGET line but never on the line it had
just built. A dictation carrying no line content — a due date on its own, or one
whose codes were all refused — returned a blank newLine(), fell past the
blank-target branch and appended it. The panel then made it active and autosaved
it, and start only requires that SOME line carries jobs (cases.service.ts:549),
so the empty line shipped to the lab floor. That is what decision 9 exists to
prevent; the decision only covered filling a blank target, not appending one.

The spec's own manual step 7 triggers it: dictate «تا پنجشنبه» with line 1
already filled.

buildLabLineFromVoice now returns line: null for a blank line, so the rule sits
in the pure function a test can reach rather than in a component nothing renders.
The due date still lands — it belongs to the case header, not the line.

Six tests that asserted an empty line now assert null, and one new test covers a
due date riding along with real work. Reverting the guard fails five of them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 13:00:45 +08:00
d557d92669 feat(voice): extend voice extraction to lab case line entry
Adds a lab-mode narrowing of the catalog for voice extraction,
lab case line draft/apply helpers, and a shared review sheet reused
by both treatment and lab case flows.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-21 13:00:45 +08:00
705ea92da7 bugfix: cases critical bugs fixed. 2026-09-21 01:44:55 +03:30
f6867467f7 improvement: Build and Push error fixed. 2026-09-19 06:19:42 +03:30
bb04090bc6 Merge branch 'master' into feature/billing 2026-09-19 05:21:25 +03:30
5977990412 improvement: Voice feature tuned with new pontic rules. 2026-09-19 05:12:23 +03:30