fix(mobile): let free users open the lists, actions and feeds settings

With payments enabled, tapping Lists, Actions or Feeds in settings sent
Free users to the plan screen instead, although the Free plan includes a
list and an action rule, as that plan screen itself says, and desktop
opens these pages for everyone. The server enforces the limits and the
app already shows the upgrade prompt when one is hit. Only the legacy
trial role is still sent to the plans.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
DIYgod
2026-10-12 07:05:53 +08:00
parent 713f63a211
commit f2bc9177c9
@@ -263,11 +263,9 @@ const NavigationLinkGroup: FC<{
}
testID={link.testID}
onPress={() => {
if (
link.trialNotAllowed &&
(role === UserRole.Free || role === UserRole.Trial) &&
getIsPaymentEnabled()
) {
// Free plans include lists and actions up to a limit, which the server enforces
// with an upgrade prompt; only the legacy trial role has none of them
if (link.trialNotAllowed && role === UserRole.Trial && getIsPaymentEnabled()) {
navigation.presentControllerView(PlanScreen)
} else {
link.onPress({ navigation })