feat(api, agents, i18n): enhance settlement features and multi-language support
Added new types and API functions for settlement period summaries and credit ledgers, improving the management of agent settlements. Updated the admin console to reflect these changes, enhancing user experience with better navigation and data presentation. Additionally, expanded multi-language support by incorporating new translations in English, Nepali, and Chinese for settlement-related terms, ensuring consistency across the platform.
This commit is contained in:
@@ -134,7 +134,15 @@ export function RiskCapRuntimePanel() {
|
||||
disabled={drawsLoading || draws.length === 0}
|
||||
>
|
||||
<SelectTrigger id="risk-cap-draw" className="font-mono">
|
||||
<SelectValue placeholder={t("riskCap.runtime.drawPlaceholder", { ns: "config" })} />
|
||||
<SelectValue>
|
||||
{(v) => {
|
||||
if (v == null || v === "") {
|
||||
return t("riskCap.runtime.drawPlaceholder", { ns: "config" });
|
||||
}
|
||||
const draw = draws.find((d) => String(d.id) === String(v));
|
||||
return draw ? `${draw.draw_no} · ${draw.status}` : String(v);
|
||||
}}
|
||||
</SelectValue>
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
{draws.map((d) => (
|
||||
|
||||
Reference in New Issue
Block a user