Add custom empty states to the credentials inventory
Problem to solve
In &4110 we're adding some new tabs to the credentials inventory view, some with custom empty states, this could result in a bunch of duplicate code. So it would be ideal if we could create a common method to show the custom empty state if one exists for each tab.
This was prompted by a discussion on !79645 (merged):
Click to expand
-
@rob.hunt started a discussion: (+1 comment)
question: The issue has a defined empty state for when there are no project access tokens. However, we're just using the default empty state here.
I think this is fine at the moment but it would be nice to update this to use the designed empty state. WDYT about having a follow-up to add custom empty states for each credential type?
@aregnery I'd love to hear your thoughts on this too as I would assume we'd need to design custom empty states for each? Alternatively, we could use the same image for all and set the title and text underneath to be unique for each credential type.
-
I think a follow-up makes sense to keep the change small @rob.hunt. Should the existing issue have its scope reduced, and create new ones for the different tabs? We'd also want to use the new illustration library option for empty-access-tokens.
Proposal
If a custom empty state exists then render it, else show the default empty state.
Trigger tokens
Project access tokens
| Preview |
|---|
|
No project access tokens are active. Project access tokens are scoped to a project and can be used to authenticate with the GitLab API. |
Deploy tokens
| Preview |
|---|
|
No deploy tokens have been created yet. Deploy tokens allow access to packages, your repository, and registry images. |
Deploy keys
Implementation plan
frontend weight of
-
Create a common method to display the credentials inventory empty state for: - Trigger tokens #263461
- Project access tokens #243833 (closed)
- Deploy tokens #243825
- Deploy keys &5313
-
If there is no custom empty state, then display a default one. -
Update specs.


