authgear / authgear/authgear-server

[Free plan] Features unavailable for free plan should be hidden by default on end-user app

Open
#2,301 0 comments 0 reactions 0 assignees View on GitHub
reported by qa ux/major
Dominant language
Go
Stars
2k
Forks
125
Avg merge
2d 17h
Merged PRs (30d)
32

Description

## Background:

* Testing environment: staging
* Testing app: [https://qademowebrefreshtoken.authgear-staging.com](https://qademowebrefreshtoken.authgear-staging.com)
* Testing browser: Chrome on Mac

## Description:

If the project is using free plan, on the end user app settings page, it still shows the unavailable sections, e.g. phone number, username, clicking into those pages will see "No phone numbers available" and no actions can be done.

It is because the end-user access right for those fields are set as editable by default, but free plan projects actually have not access to use them.

## Steps to reproduce:

1. Create a new project with default settings (login by email and password)
2. Keep it as Free plan (don't upgrade)
3. Go to the end user app page (endpoint)
4. Sign up and go to Settings
5. See "Primary Phone Number" and "Username" fields, but clicking into it cannot change anything

## Expected behaviour:

Suggested hiding the features by default if they are not available for the user's plan, i.e. if the project is on free plan, the phone number and username fields should be hidden on the end user app.

But for paid user, it may also be a problem if they found the attributes still hidden after plan upgrade, it may need another handling to help user change / let user know they need to change the attributes to show the components to user.

## Screenshot:

![Screenshot 2022-08-11 at 6 12 27 PM](https://uploads.linear.app/860e83ae-05f0-4c4b-bd93-8a4b8d251836/eff2d182-9df1-45a4-a20a-60577a052cc4/b023ef0f-38c2-44a6-9402-e13b770b4889?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzg2MGU4M2FlLTA1ZjAtNGM0Yi1iZDkzLThhNGI4ZDI1MTgzNi9lZmYyZDE4Mi05ZGYxLTQ1YTQtYTIwYS02MDU3N2EwNTJjYzQvYjAyM2VmMGYtMzhjMi00NGE2LTk0MDItZTEzYjc3MGI0ODg5IiwiaWF0IjoxNzA5MjgwNjA1LCJleHAiOjMzMjc5ODQwNjA1fQ.VeXDpH9twr_ESFlqNx7KypJhgyR6jiEOMXgWEzzrcX0 "=1184x")

![Screenshot 2022-08-11 at 6 12 32 PM](https://uploads.linear.app/860e83ae-05f0-4c4b-bd93-8a4b8d251836/72b6091b-8371-41f8-96cd-66752495b053/277abba4-225d-4c73-80f8-70b2ba48bf81?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzg2MGU4M2FlLTA1ZjAtNGM0Yi1iZDkzLThhNGI4ZDI1MTgzNi83MmI2MDkxYi04MzcxLTQxZjgtOTZjZC02Njc1MjQ5NWIwNTMvMjc3YWJiYTQtMjI1ZC00YzczLTgwZjgtNzBiMmJhNDhiZjgxIiwiaWF0IjoxNzA5MjgwNjA1LCJleHAiOjMzMjc5ODQwNjA1fQ.eOre6g-gWNTkRr7zaMrx8nQ91ZmKyaCrcf4uhPxinY0 "=1184x")

![Screenshot 2022-08-11 at 6 12 05 PM](https://uploads.linear.app/860e83ae-05f0-4c4b-bd93-8a4b8d251836/28572dd5-6a82-47da-b767-d2c2ee2c8233/f364bcf3-ad1f-461a-8f19-ce4616c4c5f7?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzg2MGU4M2FlLTA1ZjAtNGM0Yi1iZDkzLThhNGI4ZDI1MTgzNi8yODU3MmRkNS02YTgyLTQ3ZGEtYjc2Ny1kMmMyZWUyYzgyMzMvZjM2NGJjZjMtYWQxZi00NjFhLThmMTktY2U0NjE2YzRjNWY3IiwiaWF0IjoxNzA5MjgwNjA1LCJleHAiOjMzMjc5ODQwNjA1fQ.ydewFPnlhpTB43UN2gsxseVBOacWF8FaFlcDTgOsQ38 "=704x")

![Screenshot 2022-08-12 at 9 21 35 AM](https://uploads.linear.app/860e83ae-05f0-4c4b-bd93-8a4b8d251836/99310afa-5d40-49a0-bf0f-7316d3f750a4/4cf062d4-bbe0-4522-a7be-a5498db8219c?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzg2MGU4M2FlLTA1ZjAtNGM0Yi1iZDkzLThhNGI4ZDI1MTgzNi85OTMxMGFmYS01ZDQwLTQ5YTAtYmYwZi03MzE2ZDNmNzUwYTQvNGNmMDYyZDQtYmJlMC00NTIyLWE3YmUtYTU0OThkYjgyMTljIiwiaWF0IjoxNzA5MjgwNjA1LCJleHAiOjMzMjc5ODQwNjA1fQ.xIBXqoNOFi9kK3VRhuvonRbfRayu9VX90ICUMG-sevk "=621x")

![Screenshot 2022-08-12 at 9 21 41 AM](https://uploads.linear.app/860e83ae-05f0-4c4b-bd93-8a4b8d251836/1e441ab9-a44d-46e9-b41d-6ed29c871eb4/7704c09d-3e33-4cd3-838f-815f18636f42?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzg2MGU4M2FlLTA1ZjAtNGM0Yi1iZDkzLThhNGI4ZDI1MTgzNi8xZTQ0MWFiOS1hNDRkLTQ2ZTktYjQxZC02ZWQyOWM4NzFlYjQvNzcwNGMwOWQtM2UzMy00Y2QzLTgzOGYtODE1ZjE4NjM2ZjQyIiwiaWF0IjoxNzA5MjgwNjA1LCJleHAiOjMzMjc5ODQwNjA1fQ.fmbMpbAM0P0_JZMukTbcmlUQIOFxKT4vyDi6eBK95ac "=621x")

Contributor guide

Open the contributing guide

Research direction

Start with the staging end-user app and its Settings page, following the free-plan reproduction steps for the Primary Phone Number and Username fields. The work is done when unavailable fields are hidden by default for free-plan projects and the behavior after a paid-plan upgrade is handled consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.