Commit Graph

5914 Commits

Author SHA1 Message Date
QuentinHsu 8a44183873 Merge branch 'main' into perf/ui-table
# Conflicts:
#	web/default/src/features/channels/components/channels-table.tsx
2026-06-10 22:20:18 +08:00
QuentinHsu b5d13a6fee fix(provider-badge): unify provider icon spacing
- add a shared provider badge component for icon and status label layout.
- reuse it in channel type and model vendor columns so OpenAI icons align consistently.
2026-06-10 22:10:44 +08:00
QuentinHsu ac694fbc9f fix(table): prevent admin list column overflow
- widen redemption and subscription table columns so masked codes, timestamps, and localized headers fit.
- localize subscription ID headers and add Received amount translations across supported locales.
2026-06-10 21:52:14 +08:00
QuentinHsu 0a8fcb450e fix(table): align table cell content with headers
- remove extra inline padding from masked table text buttons so values start at the cell edge.
- tag status badges and offset leading badges inside table cells to match header text alignment.
2026-06-10 21:40:24 +08:00
QuentinHsu c57009ffae fix(data-table): prevent narrow column overlap
- apply stable header sizing to remaining desktop data table pages so constrained layouts scroll instead of compressing cells.
- add explicit widths for key, quota, badge, and timestamp columns that contain fixed-format content.
- constrain masked values and timestamp cells with truncation to keep content inside its assigned column.
2026-06-10 21:26:23 +08:00
QuentinHsu d58ddf2441 fix(data-table): make pinned edit column opaque
- use an opaque muted background for the active action column so sticky cells do not reveal scrolled content underneath.
2026-06-10 21:13:08 +08:00
QuentinHsu 6799f27fe5 refactor(data-table): tighten static table modes
- make StaticDataTable distinguish data-driven and children-only usage through explicit prop shapes.
- remove unsupported columns-without-data fallback after confirming no repository callers rely on it.
- default manual table modes away from unused local row models to reduce repeated table work.
2026-06-10 21:02:18 +08:00
CaIon 59a93cf5c7 fix(openai): align image streaming relay governance
Route OpenAI image streaming through shared stream handling, split image/realtime/usage helpers for maintainability, and include the related image request and rate limit updates.
2026-06-10 17:47:37 +08:00
Benson Yan 867d8acfc3 fix: normalize kimi k2.6 temperature (#5390) 2026-06-10 17:19:57 +08:00
Q.A.zh 30d3a3a5f7 perf(web): add debounce channel search and skip during IME composition (#5393) 2026-06-10 17:18:51 +08:00
QuentinHsu 40d0d6a82f perf(data-table): cache pinned column class resolution
- reuse the pinned column lookup while table props stay stable to reduce repeated per-render work.
- share the resolved column class handler across unified and split-header table layouts.
- localize page-number screen reader labels so pagination remains accessible in every locale.
2026-06-10 14:40:42 +08:00
QuentinHsu 9691ca06d1 fix(web): prevent user invite info overlap
- give the invite info and created-at columns explicit widths so table sizing reserves enough space.
- allow invite badges to wrap within the cell instead of spilling into adjacent columns.
2026-06-10 10:36:57 +08:00
QuentinHsu 445a87c3f3 fix(status-badge): hide status dot by default 2026-06-10 10:35:43 +08:00
QuentinHsu 823418ba36 fix(web): align model metadata icon cells
- render compact provider avatars in the metadata icon column instead of wide wordmarks.
- position icons in a fixed-size wrapper so they line up with the existing icon header alignment.
2026-06-10 10:28:52 +08:00
QuentinHsu 0cec454fc4 fix(web): set stable table utility column widths
- assign fixed widths to selection columns so shared colgroup sizing keeps checkbox cells compact.
- size id columns in redemption and user tables to keep split headers aligned with body rows.
2026-06-10 10:13:43 +08:00
QuentinHsu 7efe325dc4 fix(web): stabilize split table column sizing
- derive default colgroup widths from visible columns when split headers or header sizing are enabled.
- apply a fixed table layout with computed minimum width so header and body columns stay aligned.
- keep split-header containers from leaking horizontal overflow and avoid extra pinned-column borders.
2026-06-10 10:12:15 +08:00
QuentinHsu 9b1fc293fa refactor(data-table): organize shared table components
- group table primitives, page composition, toolbar controls, static tables, and hooks by responsibility.
- split shared view types, row rendering, header rendering, and pinned-column styling out of the main table view.
- keep the public data-table barrel stable while documenting the new ownership boundaries.
2026-06-10 09:44:23 +08:00
QuentinHsu d73f6b492f fix(web): keep pinned table columns opaque
- apply pinned column background classes after custom column classes.
- use an opaque hover background so scrolled content cannot show through fixed cells.
2026-06-10 09:24:26 +08:00
QuentinHsu 990ec72bda refactor(web): remove stale long text lint override 2026-06-10 09:18:00 +08:00
QuentinHsu 33d87e6ab1 refactor(web): hide data table view props from barrel 2026-06-10 09:15:21 +08:00
QuentinHsu f8f7716be6 refactor(web): keep static table empty row private
- stop exporting the internal StaticDataTableEmptyRow helper.
- keep the public static table API focused on the table component and column type.
2026-06-10 09:12:43 +08:00
QuentinHsu 2d978cc314 refactor(web): trim data table hook return API
- return only the TanStack table instance from useDataTable.
- keep internal state handling private because callers do not consume it directly.
2026-06-10 09:11:12 +08:00
QuentinHsu 503447103c fix(web): remove direct hast type dependency
- rely on Shiki transformer contextual typing for line nodes.
- allow frontend typecheck to pass without an undeclared hast package.
2026-06-10 09:09:35 +08:00
QuentinHsu 6df10dcebb refactor(web): extract table page pagination rendering 2026-06-10 08:42:29 +08:00
QuentinHsu 4835abfda8 refactor(web): clarify static table body rows 2026-06-10 08:40:55 +08:00
QuentinHsu d64e09bb19 refactor(web): hoist pagination size select items 2026-06-10 08:40:04 +08:00
QuentinHsu d26f277e70 refactor(web): reuse pagination state values 2026-06-10 08:39:20 +08:00
QuentinHsu f78a7973e2 refactor(web): rely on table view row defaults 2026-06-10 08:38:11 +08:00
QuentinHsu 2f6edabc97 refactor(web): reuse model ratio row state 2026-06-10 08:37:10 +08:00
QuentinHsu 9274edc409 refactor(web): simplify tiered pricing select items 2026-06-10 08:36:01 +08:00
QuentinHsu d380ed8ccd refactor(web): merge channel selector table imports 2026-06-10 08:35:01 +08:00
QuentinHsu e861caf2f0 refactor(web): merge upstream ratio table imports 2026-06-10 08:34:10 +08:00
QuentinHsu 767020d6e2 refactor(web): merge pricing table imports 2026-06-10 08:33:26 +08:00
QuentinHsu 9190895708 refactor(web): streamline pricing table rendering
- reuse translated endpoint select options between trigger data and menu items.
- precompute dynamic pricing maps per group so table cells only resolve formatted values.
- add local dynamic pricing type aliases to keep helper signatures readable.
2026-06-10 08:30:44 +08:00
QuentinHsu e6f910e329 perf(pricing): reduce dynamic pricing table render work
- reuse dynamic pricing field metadata instead of rebuilding it inside table columns.
- precompute formatted dynamic prices per tier and group to avoid repeated entry mapping for each cell.
- simplify select option construction in related dialogs while preserving the same choices.
2026-06-10 08:24:59 +08:00
QuentinHsu 895fae66ff refactor(web): simplify data table rendering internals
- split table body rendering into focused helpers for loading, empty, and row states.
- extract static table row and cell class resolution to reduce branching in the main component.
- reuse a single pagination page-size option list to avoid duplicated constants.
2026-06-09 22:14:51 +08:00
QuentinHsu 5306e640f4 perf(web): stabilize model pricing table columns
- keep model pricing columns at fixed widths so headers do not collapse in narrow layouts.
- truncate long model names and pricing summaries within their cells instead of squeezing adjacent columns.
2026-06-09 21:59:22 +08:00
QuentinHsu 8fb8cacae8 perf(web): refine table pagination controls
- show total row counts instead of redundant page range text.
- tighten visible page buttons so pagination fits constrained table widths.
- align pagination controls and tune text hierarchy for clearer scanning.
2026-06-09 21:50:42 +08:00
QuentinHsu a1f7256a05 perf(web): keep list tables fixed within page content
- make shared data table pages fill available height and scroll row data inside the table body.
- add a fixed content layout mode so selected list pages avoid page-level scrolling.
- apply the fixed table behavior to keys, logs, channels, models, users, redemptions, and subscriptions.
2026-06-09 21:22:55 +08:00
QuentinHsu 0863ddc3d9 refactor(web): unify table rendering components
- centralize static table headers, bodies, empty states, and shared class names behind the data-table package.
- migrate settings, pricing, channel, key, subscription, and model tables to the shared table APIs.
- remove data-table exports for low-level table primitives so feature code uses one supported abstraction.
2026-06-09 21:08:13 +08:00
QuentinHsu 04c0ae7aa8 refactor(web): trim data table public API
- remove unused data-table exports and dead static table helper types.
- keep internal table header, skeleton, empty state, and faceted filter helpers private to the data-table module.
- route feature imports through the data-table barrel to avoid subpath coupling.
2026-06-09 15:00:01 +08:00
QuentinHsu dc6aea065a refactor(web): centralize data table implementation
- route all TanStack table setup through a shared data-table hook to remove repeated state and row model wiring.
- move table rendering, static table wrappers, empty states, and primitive exports behind the data-table module.
- update feature tables and configuration editors to share the same table UX while preserving their existing workflows.
2026-06-09 14:52:02 +08:00
gaoren002 d2576ddcd3 fix(openai): support streaming image relay and image edit for images API (#4608)
* fix(openai): support streaming image relay

* fix(openai): keep image edit multipart body reusable

* test(openai): cover image stream usage details

* test(openai): cover image edit fallback stream field

* fix(openai): wrap image json fallback as stream

* fix(relay): support OpenAI image streaming

* fix(openai): record image stream upstream error events

* fix(openai): harden image stream relay

* fix(openai): return image JSON errors

* fix(relay): reset stream status per scanner run

* fix(relay): drop upstream credit passthrough

* fix(openai): keep image errors minimal

* fix(openai): keep image error status from response

---------

Co-authored-by: CaIon <i@caion.me>
2026-06-08 18:36:17 +08:00
同語 4ca47ee236 fix: support six-decimal steps in model pricing editor (#5332)
Merge pull request #5332 from yyhhyyyyyy/fix/model-pricing-six-decimal-step
2026-06-06 23:22:37 +08:00
同語 16dd7237c0 fix: align mobile usage log cost badge (#5161)
Merge pull request #5161 from yyhhyyyyyy/fix/mobile-usage-log-cost-alignment
2026-06-06 23:19:07 +08:00
同語 1915344838 fix: respect theme for multiselect combobox popover (#5328)
Merge pull request #5328 from yyhhyyyyyy/fix/multiselect-popover-theme
2026-06-06 23:18:04 +08:00
同語 15ff8e0268 chore(web): improve frontend dialog layout and sizing (#5346)
Merge pull request #5346 from QuantumNous/perf/ui-dialog
2026-06-06 23:16:53 +08:00
同語 a1c82841b5 chore(web): simplify public page hero copy (#5339)
Merge pull request #5339 from QuantumNous/perf/compact-display
2026-06-06 23:15:05 +08:00
同語 1e6f31b235 perf(model-pricing): improve model pricing editor UX (#5275)
Merge pull request #5275 from QuantumNous/fix/model-pricing-draft-save
2026-06-06 23:14:18 +08:00
QuentinHsu 2eaa943d9f perf(web): improve dialog sizing and footer layout
- migrate frontend dialogs to the shared footer API so actions stay separated from scrollable body content.
- tune dialog dimensions for model analytics, prefill groups, billing history, channel model sync, and related workflows.
- update channel terminology and dialog action translations across supported locales.
2026-06-06 21:49:33 +08:00