Commit graph

75 commits

Author SHA1 Message Date
pakintada@gmail.com
d0a3b553a5 change: improving adb connection
Signed-off-by: pakintada@gmail.com <Pakin>
2026-07-02 16:54:25 +07:00
pakintada@gmail.com
fbbf0c12f4 fix: default parameter for exec cmd
- change: from bypass to block.

Signed-off-by: pakintada@gmail.com <Pakin>
2026-07-02 13:57:45 +07:00
pakintada@gmail.com
54a5813d06 Merge branch 'master' of https://gitlab.forthrd.io/Pakin/supra-app 2026-07-02 12:55:36 +07:00
Pakin Tadatangsakul
e0b930484a Merge branch 'dev' into 'master'
fix bug logger is not defined

See merge request Pakin/supra-app!5
2026-07-02 05:53:48 +00:00
55ec9a29f9 fix bug logger is not defined 2026-07-02 12:52:08 +07:00
pakintada@gmail.com
13b09e7bb9 fix: vite conflicted configures
Signed-off-by: pakintada@gmail.com <Pakin>
2026-07-01 17:36:21 +07:00
pakintada@gmail.com
3cda8aa60b fix: slow get recipe memo
- fix: cannot adb command from blocking suspicious cmd
- change: logging to logtape lib
- change: adb payload handler format to send payload size as header for exact match payload

Signed-off-by: pakintada@gmail.com <Pakin>
2026-07-01 17:08:46 +07:00
pakintada@gmail.com
aa6414b1cc change: log level
Signed-off-by: pakintada@gmail.com <Pakin>
2026-07-01 10:35:57 +07:00
pakintada@gmail.com
2395cddcdf fix: duplicate function
Signed-off-by: pakintada@gmail.com <Pakin>
2026-07-01 10:20:50 +07:00
Pakin Tadatangsakul
3b6bd1c9f7 Merge branch 'feature/edit-recipe-event-bus' into 'master'
Feature/edit recipe event bus

## fix: feature edit recipe

**Context**

Current recipe editor is unusable in branch `master` as the recipe is unchanged after trying to edit.

**Changes**

- Change recipe parts into `EventBus` to avoid using global store (aka `Writable`) for sending recipe-related events
  * This prevent the miss timing as the event may be slower or faster than interactions
- Change ADB to be single connection pool
- Change logging from `console.*` to `logger.*`
- Add remote shell request from server.

See merge request Pakin/supra-app!4
2026-07-01 02:33:06 +00:00
pakintada@gmail.com
3625712678 Merge branch 'master' into feature/edit-recipe-event-bus 2026-07-01 08:53:13 +07:00
Pakin Tadatangsakul
7f2548b9a8 Merge branch 'dev' into 'master'
Merge features from branch dev

See merge request Pakin/supra-app!3
2026-07-01 01:33:55 +00:00
7a406fd409 Merge branch 'master' into dev
Resolved conflicts:
- adb.ts: keep both goToMachineHome() (dev) and executeStreamingCmd() (master)
- messageHandler.ts / ws_messageSender.ts: adopt master's semver.satisfies
  version check (forward-correct vs startsWith('0.0.2')); keep dev's additive
  bits (raw_stream_end_priceslot handler, ciphertext/iv guard) + master's
  (announce handler, 'upload-log' command); drop now-unused isSecuredAppVersion
- AnnouncementDialog.svelte: drop invalid export on interface (Svelte 5)
- install @types/semver + semver (bun.lock)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 17:55:37 +07:00
47ee23777d feat: main & brewing video tool, catalog APIs, sheet/recipe updates
- Add /tools/video-mainpage page (main + brewing-page advertisement videos,
  date-gated, per-country, push to machine over ADB) + api/video-mainpage
  create/list/update proxies; sidebar entry "Main & Brewing Video"
- Add catalog API proxies (catalog-create, catalog-list, catalog-banner,
  catalog-banner-image)
- Sheet: overview/edit/add/priceslot/price updates, stores & services
- Misc: adb, websocket/message handlers, crypto, recipe & brew tweaks

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 17:38:59 +07:00
pakintada@gmail.com
4f464a8513 change: security-check, memory-check [untest]
- fix high risk security issues
- fix high memory usage
- change adb to connection pool single instance

Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-22 10:55:47 +07:00
pakintada@gmail.com
f0619c5a10 feat: migrate recipe editor
- using eventbus in recipe editor
- migrate to logging instead of console log
- fix case swap not saved, value not update after change, topping slot bug

Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-19 17:27:28 +07:00
pakintada@gmail.com
270faf6b34 feat: add announcement
- fix: bug encryption not working on newer version

Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-19 11:26:44 +07:00
pakintada@gmail.com
d4eb3be886 feat: terminal, eventbus, load recipe
- change: disable reboot android when logged out
- change: load recipe from android app's memory (requires ^0.0.3)
- fix: adb payload handler may get incomplete message

Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-19 10:41:17 +07:00
6011b92b7b Merge branch 'master' of https://gitlab.forthrd.io/Pakin/supra-app into dev 2026-06-17 17:06:10 +07:00
pakintada@gmail.com
ea7ec00b4b fix: token not refresh
- force refresh token if connect ws fail

Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-17 16:43:26 +07:00
d60a9af6cb Merge branch 'master' of https://gitlab.forthrd.io/Pakin/supra-app into dev 2026-06-16 15:33:01 +07:00
pakintada@gmail.com
a95e7bbb13 update deps & hotfix errors
Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-16 15:15:34 +07:00
b5e0705f79 Merge branch 'master' of https://gitlab.forthrd.io/Pakin/supra-app into dev 2026-06-16 13:49:26 +07:00
Pakin Tadatangsakul
dc215addb4 Merge branch 'dev' into 'master'
Merge dev, feature ad upload

See merge request Pakin/supra-app!2
2026-06-16 04:30:48 +00:00
6a2f4e5945 update get data priceslot 2026-06-16 11:30:23 +07:00
Pakin Tadatangsakul
98d9a279d7 Merge branch 'master' into 'dev'
# Conflicts:
#   src/lib/core/handlers/messageHandler.ts
#   src/lib/core/services/sheetService.ts
2026-06-16 04:29:59 +00:00
cd88d5aed9 update adv upload 2026-06-16 11:23:33 +07:00
pakintada@gmail.com
2a0841a798 feature: add secured message
- encrypt/decrypt every message (require ^0.0.2)

Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-16 10:34:29 +07:00
bd239cf71b create topping and material page 2026-06-11 16:25:27 +07:00
pakintada@gmail.com
4ca8b3b270 update tasks todo
Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-10 17:03:36 +07:00
pakintada@gmail.com
b3024e92c7 add: open brew app when enter brew
Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-10 16:54:43 +07:00
pakintada@gmail.com
9dc1e65f5e change: disable auto connect
- from case first time connection may not able to connect to socket on android

Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-10 16:31:15 +07:00
pakintada@gmail.com
828089ed2f change: disable price display on recipe detail
Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-10 16:21:34 +07:00
pakintada@gmail.com
c7de46109c Merge branch 'master' of https://gitlab.forthrd.io/Pakin/supra-app 2026-06-10 15:26:23 +07:00
pakintada@gmail.com
be785825fe wip: add more detail in recipe dialog
Signed-off-by: pakintada@gmail.com <Pakin>
2026-06-10 15:24:21 +07:00
Pakin Tadatangsakul
10be9e1220 Merge branch 'dev' into 'master'
create branch dev and commit code

See merge request Pakin/supra-app!1
2026-06-10 08:21:04 +00:00
Pakin Tadatangsakul
58b496d5c8 Merge branch 'master' into 'dev'
# Conflicts:
#   src/lib/core/handlers/adbPayloadHandler.ts
#   src/lib/core/handlers/messageHandler.ts
#   src/routes/(authed)/tools/brew/+page.svelte
2026-06-10 08:19:51 +00:00
ea68fa5cc4 create branch dev and commit code 2026-06-09 10:50:59 +07:00
pakintada@gmail.com
8b0479bf58 fix: case cell not found
Signed-off-by: pakintada@gmail.com <Pakin>
2026-05-27 08:22:14 +07:00
pakintada@gmail.com
244a234833 fix: cells not found
- change: disable log health check websocket

Signed-off-by: pakintada@gmail.com <Pakin>
2026-05-27 08:15:45 +07:00
pakintada@gmail.com
79a76f5c3e change: disable machine status update if not brew
- fix: payload of price get unknown service ref

Signed-off-by: pakintada@gmail.com <Pakin>
2026-05-27 07:58:33 +07:00
pakintada@gmail.com
07977ce896 change: wip testing price from sheet
Signed-off-by: pakintada@gmail.com <Pakin>
2026-05-26 17:08:44 +07:00
pakintada@gmail.com
3b70cc9fe8 feat: show price (WIP edit)
- fix: adb tcp connection unstable retry
- fix: recipe not show by undefined machine status

Signed-off-by: pakintada@gmail.com <Pakin>
2026-05-18 09:49:09 +07:00
pakintada@gmail.com
60424ebe5a feat: add auth route, update machine status
Signed-off-by: pakintada@gmail.com <Pakin>
2026-05-12 16:31:20 +07:00
pakintada@gmail.com
4578a43197 feat: heartbeat check if connection offline
- WIP price message

Signed-off-by: pakintada@gmail.com <Pakin>
2026-05-09 11:02:57 +07:00
pakintada@gmail.com
a0637c7d72 update: websocket
- enable save button in overview

Signed-off-by: pakintada@gmail.com <Pakin>
2026-05-07 17:13:45 +07:00
pakintada@gmail.com
a29ff0be1a feat: recipe version selector
- fix recipe not show on overview
- fix recipe show late after select country
- disable queue message on no connection ws
- fix infinite topping(s) list if moving between pages

Signed-off-by: pakintada@gmail.com <Pakin>
2026-05-04 16:50:15 +07:00
pakintada@gmail.com
e25881d016 feat: add ui block while brewing
- fix case value show invalid after come back from brewing finish (topping not save)
- add update machine status

Signed-off-by: pakintada@gmail.com <Pakin>
2026-04-29 17:41:36 +07:00
pakintada@gmail.com
4cb98f8672 feat: edit value & send to brew
- edited value is now sent to brew

Signed-off-by: pakintada@gmail.com <Pakin>
2026-04-29 16:05:10 +07:00
pakintada@gmail.com
dc327e7779 feat: auth ws
- add auth message on connect

Signed-off-by: pakintada@gmail.com <Pakin>
2026-04-28 17:20:32 +07:00