-
Notifications
You must be signed in to change notification settings - Fork 442
[feat] Add PostHog data-attr attributes to Upload Model flow #7173
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,15 +5,20 @@ | |||||
| class="text-muted-foreground mr-auto underline flex items-center gap-2" | ||||||
| > | ||||||
| <i class="icon-[lucide--circle-question-mark]" /> | ||||||
| <a href="#" target="_blank" class="text-muted-foreground">{{ | ||||||
| $t('How do I find this?') | ||||||
| }}</a> | ||||||
| <a | ||||||
| href="#" | ||||||
| target="_blank" | ||||||
| class="text-muted-foreground" | ||||||
| data-attr="upload-model-step1-help-link" | ||||||
| >{{ $t('How do I find this?') }}</a | ||||||
| > | ||||||
| </span> | ||||||
| <TextButton | ||||||
| v-if="currentStep === 1" | ||||||
| :label="$t('g.cancel')" | ||||||
| type="transparent" | ||||||
| size="md" | ||||||
| data-attr="upload-model-step1-cancel-button" | ||||||
| :disabled="isFetchingMetadata || isUploading" | ||||||
| @click="emit('close')" | ||||||
| /> | ||||||
|
|
@@ -22,6 +27,7 @@ | |||||
| :label="$t('g.back')" | ||||||
| type="transparent" | ||||||
| size="md" | ||||||
| :data-attr="`upload-model-step${currentStep}-back-button`" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Simplify the back button data-attr to a static string. The back button only appears when Apply this diff to simplify: - :data-attr="`upload-model-step${currentStep}-back-button`"
+ data-attr="upload-model-step2-back-button"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| :disabled="isFetchingMetadata || isUploading" | ||||||
| @click="emit('back')" | ||||||
| /> | ||||||
|
|
@@ -32,6 +38,7 @@ | |||||
| :label="$t('g.continue')" | ||||||
| type="secondary" | ||||||
| size="md" | ||||||
| data-attr="upload-model-step1-continue-button" | ||||||
| :disabled="!canFetchMetadata || isFetchingMetadata" | ||||||
| @click="emit('fetchMetadata')" | ||||||
| > | ||||||
|
|
@@ -47,6 +54,7 @@ | |||||
| :label="$t('assetBrowser.upload')" | ||||||
| type="secondary" | ||||||
| size="md" | ||||||
| data-attr="upload-model-step2-confirm-button" | ||||||
| :disabled="!canUploadModel || isUploading" | ||||||
| @click="emit('upload')" | ||||||
| > | ||||||
|
|
@@ -62,6 +70,7 @@ | |||||
| :label="$t('assetBrowser.finish')" | ||||||
| type="secondary" | ||||||
| size="md" | ||||||
| data-attr="upload-model-step3-finish-button" | ||||||
| @click="emit('close')" | ||||||
| /> | ||||||
| </div> | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.
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.
Fix the broken help link.
The help link has
href="#"which is a placeholder that doesn't navigate anywhere. This provides a poor user experience, as clicking the "How do I find this?" link will not help users.Consider one of the following:
If you need assistance implementing any of these solutions, I can help generate the code.
🤖 Prompt for AI Agents
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.
Ah good reminder. need to implement this still
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.
@luke-mino-altherr, sounds good! Feel free to tag me if you'd like help implementing the help link—whether that's finding the right documentation URL, creating a popover component, or setting up the accessibility attributes. Happy to assist! 🐰
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.
I will implement (or remove) this in a separate pass
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.
@luke-mino-altherr, sounds good! Since you're planning to address this separately, would you like me to create a GitHub issue to track the help link implementation/removal? I can include a reference to this PR and discussion for context.