114 Commits
Author SHA1 Message Date
pnoker 372d75b0c9 refactor(core): rename find/query/fetch methods to get per crud law
sweep every module to satisfy the new method-name rule, renaming
about 40 methods together with their interface, implementation, test
and cli call sites: store find() lookups become get(), analytics
queryLatest/queryHistory become getLatest/getHistory, sql helper
query() becomes spec()/sql(), jwks fetch() becomes load(), and the
cursor record component queryDigest becomes requestDigest

no behavior changes; full unit suite (5278 tests) and both quality
gates stay green
2026-09-18 09:53:51 +08:00
pnoker e4523f993b fix(api): accept snake_case params on history lookup endpoints
- command_history/get_by_record_id now binds the declared wire name
  record_id instead of the raw parameter name recordId, matching the
  event_history twin and the frontend/CLI clients
- point_command_history/get_by_command_id likewise binds command_id,
  and the accepted statusUri built by point_command write now uses it
- openapi-data snapshot updated for both query params
- cli command history and web mock handlers aligned to the same names
- web mock registers command_history under the data service prefix
2026-09-18 09:44:36 +08:00
pnokerandClaude Code 3fb43c4239 feat(web): unify three-terminal control density and close audit defects
Land the v7 three-terminal UX decision: drop the width/pointer-based
44px touch enlargement so one 32px density holds across desktop,
tablet, and mobile, and rebuild entity pages on a responsive record
list (ResponsiveRecordList + EntityMobileCard + per-entity mobile
summaries). Tighten the nginx security headers (CSP frame-ancestors
'none', X-Frame-Options DENY) to match the static e2e server.

Complete the dc3-web audit remediation, including the remaining LOW
items from docs/dc3-web-low-defects-handoff.md: streaming-safe
message loads in the agentic store, mock menu reparent cycle
rejection, paged-list page clamping, fetch/axios mock request
normalization, per-table attribute catalogs, post-flush alarm
watchers, rowKey-agnostic delete state, localized card text
fallbacks, and e2e-server port fail-fast.

Gate: vue-tsc, eslint, vitest 687 passed, responsive e2e 64 passed.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-07 19:33:17 +08:00
pnoker 031deb4453 feat(web): adopt family login atmosphere and copyright footer
Replace the Particles canvas with LoginAtmosphere, the warped interactive
grid + logo-dot silhouette shared with the dc3.site family sites, and add
an AGPL copyright footer with the platform tagline. Drop the 48px grid
overlay from the login background so the atmosphere carries the scene.
2026-09-04 09:38:38 +08:00
pnoker 2246b73f6a fix(web): drop https termination from nginx
Serve the dc3-web image over plain HTTP on port 80 only: remove the ssl_certificate/ssl_certificate_key directives, the 443 listeners and the HSTS header from default.conf, drop the 8443:443 mapping and the certificate COPY from the Dockerfile, and remove the acme.sh README. The retired dc3.site certificate is preserved as reference material at nginx/certs/ssl-certs.md.
2026-09-03 09:03:13 +08:00
pnoker 66aab58f20 build: standardize repository tooling and quality gates 2026-09-02 20:51:10 +08:00
pnoker 50fb953aa2 fix(web): normalize spacing and radii to the dc3 token scale
- Move the login page spacing and radii onto the 4/8/12/16/24/32 token
  scale (shell paddings, form gaps, input radii, mobile breakpoints)
- Align shared form containers: edit-card margins, card-footer gap,
  matrix toolbar footer, breadcrumb strip, dropdown identity row
- Normalize card internals to tokens: StatCard row gap, DashboardCard
  title bar, AlertList group padding, home widgets, NavMenu items,
  things-dialog body, MCP/role/user assign views, point value card
2026-09-02 03:14:01 +08:00
pnoker d4d98ad8a2 fix(web): align card and block spacing on the 8px grid
- Use the 8px page gutter (--dc3-space-2) for home row rhythm, the stat
  grid gap, and the SLA strip margin so vertical spacing matches the
  horizontal card gutters
- Normalize the home banner internals to the token scale: 16px body
  padding and area gap, 8x16 clock box, 8x12 service chips
- Normalize the SLA strip padding/radius and chip spacing to tokens
- Align things-card vertical margin with its documented 8px rhythm so
  settings grids match the horizontal gutter
- Unify the two 12px form gutters and the breadcrumb strip padding on
  the same scale
2026-09-02 02:37:26 +08:00
pnoker d43a6c4d0f chore(web): add dev:mock script for static demo mode 2026-09-02 02:22:15 +08:00
pnoker 86a9ae1399 feat(web): unify brand lockup, capsules, and account menu
- Extract a shared BrandLockup (logo, gradient wordmark, AGENTIC tag,
  signal line) used by both the header brand capsule and the login page
- Add a shared glass-capsule SCSS recipe so the header capsules and the
  login brand pill keep identical geometry and glass decoration
- Align the login page with the workspace font stack
- Reduce the account trigger to an avatar and move the username into a
  themed identity dropdown with divider; style the popper with dc3
  tokens so light and dark themes both follow the system theme
- Point the About action at the live site domain (https://dc3.site)
2026-09-02 02:22:02 +08:00
pnoker eae86b58fc refactor(storage)!: unify platform persistence on reactive postgresql
- migrate auth, manager, data, and agentic persistence to R2DBC
- hard cut pagination, facade, gateway, web, and CLI contracts
- remove legacy database and TSDB adapters and document validation gates

BREAKING CHANGE: platform persistence now requires PostgreSQL 18 with TimescaleDB and the new reactive API contracts.
2026-09-01 22:03:16 +08:00
pnoker df42cb9e4c Revert "feat(web): add cli onboarding card to mcp service page"
This reverts commit d253fc8aa9c0f4baaf7e9d47fd8ba0390069c737.
2026-09-01 22:03:14 +08:00
pnoker 65729c4ef2 feat(web): add cli onboarding card to mcp service page
Ready-to-copy shell block (install, set gateway to the current
origin, interactive login) next to the existing agent config
snippets, plus en/zh i18n keys for the new card.
2026-09-01 22:03:14 +08:00
pnokerandClaude df35851f3b feat(auth): page mcp tool catalog and audit queries
Replace limit-truncated listing with real server-side paging
(LIMIT/OFFSET plus a shared count query) behind Page envelopes:
tool/list accepts a nested Pages block and audit/list takes
current/size params, both keeping the legacy limit as a compatibility
page size. The frontend configs forward pager state and consume
{records, total} instead of faking a single page; the assignment
drawer keeps its full-catalog semantics with one 500-row page (the
service cap). Adds a mapper XML grammar gate and audit page/count
symmetry tests.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-28 00:25:10 +08:00
pnokerandClaude 2085bd17d7 chore(web): ignore local claude settings
Keep .claude/settings.local.json out of version control inside the
frontend workspace.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-27 09:41:18 +08:00
pnokerandClaude fe9384864a feat(web): add theme and language preferences to console and login
Extract the header language switch into a reusable AppPreferences
component and add a light/system/dark theme toggle beside it, backed by
the persisted app store theme mode. Use the component in both the
console header (compact) and the login page (surface variant) so the
public page obeys the same theme contract as the workspace.

Tokenize the login page palette in theme.scss with dark-mode twins,
switch the login validation rules to computed form rules so messages
follow locale changes, and extend the layout component test and the
login/responsive e2e specs for the new controls.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-27 09:40:59 +08:00
pnokerandClaude 691f6c8798 build(web): refresh frontend dependencies
Bump pnpm to 11.24.0 and refresh element-plus, axios, dayjs, dompurify,
marked, pinia, vue-i18n, playwright, typescript-eslint, eslint, sass,
vite and vitest within their minor lines, and widen the pnpm-workspace
onlyBuiltDependencies ranges accordingly.

Keep typescript on ~6.0.3, vue on ^3.5.40 and happy-dom on ^20.11.0:
typescript 7 drops the ./lib/tsc subpath vue-tsc still resolves, vue
3.5.41 makes compiler-sfc require filesystem access for imported prop
types under the vitest environment, and happy-dom 20.11.6 changes the
execCommand clipboard behaviour the utils suites assert on.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-27 09:40:41 +08:00
pnoker 01ff3a0b38 fix(web): initialize mock before router navigation 2026-08-26 09:44:06 +08:00
pnoker ec2310fa9b feat(web): unify responsive console experience 2026-08-26 09:43:45 +08:00
pnoker a7ca489b9b style(repo): reformat java, xml, yaml, markdown and frontend sources 2026-08-25 21:27:49 +08:00
pnoker 0727708f25 test(web): extend three-terminal gate and add breakpoint guardrail 2026-08-25 21:02:02 +08:00
pnoker a1d9e2a86b feat(web): fit dialogs to viewport below mobile breakpoint 2026-08-25 21:02:02 +08:00
pnoker c581d6aa44 fix(web): replace hand-rolled media breakpoints with token contract 2026-08-25 21:01:59 +08:00
pnoker 769d1cb977 style: apply repository-wide formatting
- expand single-line Javadocs to multi-line blocks, rewrap Markdown prose, and reflow POM, YAML, and TypeScript formatting
- formatting only: no Java code lines changed, no build-file semantics changed
- verified: backend compile and check_documentation.py pass, pnpm check and pnpm lint:check pass, and the dc3 YAML files parse
2026-08-25 13:35:00 +08:00
pnoker f5fc826824 docs(web): document composables, stores, and utils exports
- add JSDoc to useEntityListPage, useEntityNames, usePagedList, and the four Pinia stores
- add JSDoc to 39 utils exports across thingModelFormat, formRule, validation, date, json, pointFormat, and searchParam utilities
- verified: pnpm check and pnpm lint:check pass
2026-08-25 13:29:17 +08:00
pnoker 9e30b79659 docs(web): drop the stale JSONBigInt claim from the web readme
The backend emits 64-bit identifiers as JSON strings on the HTTP contract, so standard JSON parsing is sufficient.
2026-08-25 12:06:23 +08:00
pnoker 6ee8974403 test(web): add three-viewport e2e gate and align playwright 2026-08-24 19:39:30 +08:00
pnoker 3c3c33a0c9 refactor(web): decouple entity configs from vue-i18n via Translator 2026-08-24 19:39:24 +08:00
pnoker c128efa860 feat(web): adapt app shell to desktop, tablet, and mobile 2026-08-24 19:39:17 +08:00
pnoker ca2cb780c0 feat(web): add persisted theme and density preferences 2026-08-24 19:39:11 +08:00
pnoker 802f538794 feat(web): add design tokens and reactive breakpoint system 2026-08-24 19:39:05 +08:00
pnoker 6133a7c5db perf(web): drop dead dependencies and split agentic vendor
Remove the unused highlight.js plugin and four dead dependencies, switch Element Plus styles to per-component imports, split marked/dompurify/vue-element-plus-x into a lazy agentic-vendor chunk, and restore the 500 kB chunk warning limit.
2026-08-24 17:50:30 +08:00
pnoker 03492ab5e9 refactor(web): polish naming, storage and date utilities
Fix calcDate second remainder, drop dead storage helpers, follow the i18n locale for numeric formatting, rename order to sortAsc and expand abbreviated identifiers, and remove the unused English dashboard empty default.
2026-08-24 17:50:20 +08:00
pnoker 2b727bca12 chore(web): drop dead stores, seeds and centralize constants
Remove the unused interval store and its test, the duplicate agentic session/message seed block, and consolidate AUTO_REFRESH_INTERVAL plus PRINCIPAL_TYPE_OPTIONS into shared constants.
2026-08-24 17:50:18 +08:00
pnoker fd11add2d4 fix(web): localize interceptor, agentic store and route titles
Route meta titles become i18n keys resolved in the guard, the axios interceptor and agentic store reuse locale messages instead of hardcoded English, leftover labels and copy hints switch to t(), and the route/sidebar aliases merge into one source.
2026-08-24 17:50:07 +08:00
pnoker b27efd2c9d fix(web): scope stream 401 handling to auth keys
Clear only the auth storage keys instead of wiping localStorage and sessionStorage when an SSE request returns 401, matching the axios interceptor contract.
2026-08-24 17:48:43 +08:00
pnoker 40ed14593d refactor(web): enforce typed response envelopes and domain unions
Default the R envelope to unknown so bare wrappers surface their data shape, remove the | string tail that voided alarm/attribute unions, add explicit generics to every dashboard/point/info wrapper, and move the alert row types plus RangeKey to a single dashboard source. Also fix mock seeds to match backend enums (PENDING, DINGTALK_BOT).
2026-08-24 17:48:41 +08:00
pnoker 0c288789dd fix(web): reset dialog submitting on agentic save failure
Call done(false) in the catch branch so a failed model/provider save releases the submit button instead of leaving the dialog stuck loading.
2026-08-24 17:48:28 +08:00
pnoker 5555b26515 fix(web): repair device import upload and detail timestamps
Upload the import file as a real multipart FormData part (the backend contract is @RequestPart), render operateTime on the operation-time detail rows, and stop double success toasts for add/import flows.
2026-08-24 17:48:25 +08:00
pnoker 76ae89370b feat(db): add the mysql seed — dual-engine initdb, row-level revision triggers
R2b of docs/design/storage-abstraction.md §3:

- PostgreSQL seed: the three driver-lease sequences retire. The fencing
  token and assignment version default to 1 and advance row-locally —
  per-device / per-driver monotonicity is the property the checks rely
  on, which the global sequences only delivered incidentally, and MySQL
  has no sequence objects. The three statement-level revision triggers
  (transition tables + INSERT .. ON CONFLICT, none of which MySQL can
  express) collapse into one row-level function with row-local +1 upserts
  — a shape both engines share.

- MySQL seed under dc3/dependencies/mysql/initdb/ (00-06), derived by
  dc3/dependencies/mysql/pg2mysql_seed.py: schemas become databases,
  TIMESTAMPTZ becomes DATETIME(6), TEXT/JSON literal defaults become
  expression defaults (MySQL 8 refuses literal defaults on BLOB/TEXT/
  JSON), operate-time plpgsql triggers become the ON UPDATE column
  attribute (explicit SETs keep winning), the revision family becomes
  row-level DELIMITER triggers, keyed TEXT columns widen to VARCHAR(191),
  partial indexes drop, and the embedded-JSON seed values load under
  NO_BACKSLASH_ESCAPES (MySQL string literals eat the backslashes the
  escaped-JSON content values depend on; PostgreSQL does not). 05 is
  hand-maintained: only the dc3_point_latest projection — a MySQL core
  requires an external time-series store, so the hypertable and cagg DDL
  have no counterpart by design.

- Compose: the optional stack gains a mysql:8.4 service (utf8mb4, seed
  mounted at docker-entrypoint-initdb.d, healthcheck); the app stack
  passes DC3_DB_TYPE through.

Verified by loading all seven files into a fresh mysql:8.4 container —
zero errors, five databases, table counts aligned with the PostgreSQL
seed (manager 24 incl. common, auth 24, data 12, agentic 6, history 1),
and the revision trigger proven live: insert bumps the owning driver's
revision to 1, an enable_flag flip bumps it again to 2.
2026-08-24 17:17:45 +08:00
pnoker 90a7db4d6b merge: integrate upstream deployment docs and validation targets 2026-08-19 14:30:34 +08:00
pnoker 003686240c build(web): align package metadata with build image 2026-08-19 00:06:20 +08:00
pnoker 51f0efd2d9 style(javadoc): document non-override public methods 2026-08-19 00:05:58 +08:00
pnoker dddf2e8690 test: enforce truthful coverage and behavioral quality 2026-08-18 23:24:58 +08:00
pnoker aec6ebfc76 refactor(logging): standardize application logging 2026-08-18 08:14:52 +08:00
pnoker 8f6520dd79 chore: refresh dependencies and project documentation 2026-08-18 08:14:26 +08:00
pnoker b02d8f81fc refactor!(web): parse identifiers as strings and drop json-bigint
BREAKING CHANGE: frontend identifier types converge to string and the json-bigint dependency is removed; the backend now emits string ids.
2026-08-17 21:37:49 +08:00
pnoker 044eafa2fa fix(dc3-web): override nanoid to 3.3.18 to resolve high severity advisory 2026-08-17 20:23:56 +08:00
dependabot[bot] 33ee1a728c build(deps): bump dompurify from 3.4.12 to 3.4.13 in /dc3-web (#206)
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.4.12 to 3.4.13.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.4.12...3.4.13)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.13
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-17 20:18:22 +08:00
pnoker 9596334fc6 docs(slogan): converge remaining industrial-ai-iot wording to canonical slogan 2026-08-14 16:54:51 +08:00