-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public URLs Table UI #5366
Public URLs Table UI #5366
Conversation
f6dbb82
to
e2f4e53
Compare
0608089
to
33c0e72
Compare
db70fae
to
f2a8d00
Compare
f2a8d00
to
623784f
Compare
a5a24a6
to
8c0e751
Compare
@lovincyrus This PR has now added support for accessing the full URLs of previously created shareable URLs: #5621. You can access the URLs in the One thing to be aware of – the |
598e95f
to
7ffca4b
Compare
Demo: CleanShot.2024-09-10.at.09.44.13.mp4 |
Sanity check, @jkhwu - since this is a fairly new feature, I think it's okay to say that we don't need to handle the case for the previously created public URLs. If we do want to handle the case, here's what the empty case looks like: Update 1: I realized |
Watched the demo and it looks good to me @lovincyrus . The empty state that you proposed looks fine to me, good copy decisions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UXQA –
- I have a table of previously-created Public URLs. It's confusing that the row has a "pointer" cursor, yet clicking on the row does nothing. See Jam.
- We should use the dashboard
title
, if one exists, else fallback to thename
- It's unclear to me how these URLs are sorted. After creating a URL, I wasn't sure where I'd find it in the list. (CC @jkhwu)
- I deleted a bunch of URLs, then the "Public URL deleted" notification hung on the screen:
- When there are more than 20 URLs, the table doesn't offer pagination or somehow indicate that there more results not shown. (CC @jkhwu)
- It'd be nice if we could use an
<a>
tag to navigate the URL, so that on:hover the browser shows the URL in the bottom-left corner. Rather than the whole row being clickable, I wonder if we should have a column with a button that says "Copy URL". (CC @jkhwu)
Tagging @begelundmuller and @pjain1 for a review - I've added export interface V1MagicAuthToken {
id?: string;
projectId?: string;
url?: string;
token?: string;
createdOn?: string;
expiresOn?: string;
usedOn?: string;
createdByUserId?: string;
createdByUserEmail?: string;
attributes?: V1MagicAuthTokenAttributes;
metricsView?: string;
metricsViewFilter?: V1Expression;
metricsViewFields?: string[];
state?: string;
+ title?: string;
} Originally, I added Should I instead add two more fields to support those requirements? export interface V1MagicAuthToken {
id?: string;
projectId?: string;
url?: string;
token?: string;
createdOn?: string;
expiresOn?: string;
usedOn?: string;
createdByUserId?: string;
createdByUserEmail?: string;
attributes?: V1MagicAuthTokenAttributes;
metricsView?: string;
metricsViewFilter?: V1Expression;
metricsViewFields?: string[];
state?: string;
+ urlName?: string;
+ dashboardName?: string;
} |
The changes here look good to me. About this:
It makes sense to give the public URL a name, but I don't think we should add extra fields for capturing the dashboard title. It may be edited and would get out of sync. You can either do a separate request at render time to get the dashboard title (slow for large lists), or would have to limit to showing just the public URL title and dashboard name. |
Latest demo: I've added a forward cursor-based paginated table to display the public URLs. As you can see, we only have a next button. That is because we only get Here is the figma mock for reference: https://www.figma.com/design/Qt6EyotCBS3V6O31jVhMQ7/RILL?node-id=15019-622855&node-type=frame&t=YcDxSNiwCIjVJkiZ-0 CleanShot.2024-09-12.at.10.28.30.mp4 |
@ericpgreen2 Please report any anomalies if you find any in the previously generated public URLs. |
Here are what the previously-created URLs look like: No anomalies per se, but there's no an obvious link available to click. I supposed I was envisioning an explicit "Copy link" button being in-line, not hidden behind a dropdown menu. |
Sweet! I've hidden the ability to copy URL based on the availability of the constructed Quick note - if url is available, the public url name cell will be clickable and there is a Copy menu item in the actions dropdown. Re: "not hidden behind a dropdown menu." — I've already synced with @jkhwu and @ericokuma extensively on the consistency of actions ui in our table components. We will use 3 dots icon in the public URL management table. |
38637a9
to
3a5261e
Compare
Not a high priority. For context, I would say these features will be needed in the project settings subpages (public URLs, environment variables, user management, etc.) as we expand our coverage for table component. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Nice work 🙌
web-admin/src/routes/[organization]/[project]/-/settings/public-urls/+page.svelte
Outdated
Show resolved
Hide resolved
Looks great, good work here @lovincyrus ! |
Closes #5328
This PR adds a new public URLs table to the project settings page.
/${organization}/-/settings
addpreviousPageToken
createInfiniteQuery
Ability to edit name to the public URL creation
Support title in magic auth token to display Public URL name in the management table
34b4171
export interface V1MagicAuthToken { id?: string; projectId?: string; url?: string; token?: string; createdOn?: string; expiresOn?: string; usedOn?: string; createdByUserId?: string; createdByUserEmail?: string; attributes?: V1MagicAuthTokenAttributes; metricsView?: string; metricsViewFilter?: V1Expression; metricsViewFields?: string[]; state?: string; + title?: string; }