mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7109] [MERGED] feat(connections): gate subscription pills on the usage toggle and show them in the model picker #7479
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7479
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7109
Author: @ylli-selmani
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/nanogpt-model-pills-followups📝 Commits (4)
9e5781cfeat(connections): gate subscription pills on the usage toggle and show them in the model pickercf0e1fadocs(changelog): describe pill visibility by the switch rather than by user type0132444style(connections): draw the subscription pills as accent tag chips3ca93f8Merge branch 'staging' into feat/nanogpt-model-pills-followups📊 Changes
4 files changed (+112 additions, -33 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+2 -31)📝
packages/client/src/components/connections/ConnectionModelPicker.tsx(+23 -2)➕
packages/client/src/components/connections/SubscriptionCostPill.tsx(+85 -0)📄 Description
Linked issue
Closes #7108
Why this change
The NanoGPT subscription cost pills added in #6686 had two gaps.
A pay-as-you-go user saw subscription pills they never asked for. In the
connection editor, every model drew its cost pill (
1x,2x,Paid) regardlessof the connection's Show subscription usage switch. That switch is off by
default, and it is the user's own statement of whether they want subscription
information for that connection. Someone who never enabled it, and who has no
subscription allowance to compare against, still got a column of subscription
cost markers.
The pills were missing where models are now picked most often. #7102 moved
model selection into the Connections menu by the chat input, sharing one
picker across the desktop menu, the phone menu and Chat Settings. That picker
showed each model's name, ID, context and output limits, but not its subscription
cost, so the place a user now compares models was the one place the cost was
missing. The editor still had them, which left the two surfaces inconsistent.
What changed
both the connection editor and the model picker. Off means no pills anywhere;
on means the same pills everywhere.
once with no per-surface work.
SubscriptionCostPillcomponent so bothsurfaces draw it identically instead of duplicating the classes and hints.
Design decisions worth reviewing
includedflag alreadyarrive from the existing
detailed=truemodels call, so the picker shows costwith no extra fetch.
subscription information on this connection", so a second condition would give
two ways to say the same thing and could disagree.
the models call, not the usage endpoint, so a token is not what makes the data
available; gating on it would hide data the app already has.
isConnectionFlagTrue. Connectionflags are persisted as
"true"/"false"strings, so a strict boolean checkwould always be false and silently hide the pills. (This is the same trap that
hid the usage meter in #6686.)
shows nothing rather than a muted pill, which is the simpler reading of "off".
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
the connection's Show subscription usage switch is on
1x, a boosted multiplier and Paid all render correctlyDocs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Notes for the reviewer
#6686: pills that were always visible in the editor are now off by default,
because the switch they follow is off by default. That is the intent of #7108,
but it is worth knowing this makes previously-visible information opt-in.
are reused unchanged.
ConnectionModelPickeris shared by three call sites, so the picker changecovers the desktop menu, the phone menu and Chat Settings in one place.
UI evidence (if applicable)
Quick Connections Panel, before
Quick Connections Panel, switch on
Quick Connections Panel, switch off
Different Provider, no pills and no usage
All different pills in view
Mobile View:
Summary by CodeRabbit
1xor a higher multiplier based on weekly allowance usage per token; balance-billed models show Paid.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.