Skip to content

feat(UI): Add Tooltip to draft/preview card on the new homepage.#13175

Merged
b4handjr merged 1 commit intomainfrom
fix-exp-5703
Aug 1, 2025
Merged

feat(UI): Add Tooltip to draft/preview card on the new homepage.#13175
b4handjr merged 1 commit intomainfrom
fix-exp-5703

Conversation

@b4handjr
Copy link
Contributor

Because

  • We need a tooltip in the draft/preview card on the new homepage.

This commit

  • Adds a simple tooltip with the text: This is anything that you own or are subscribed to follow – which are in Draft or Preview states. Go to the link to check the message for the next actions needed.
image

Fixes #13174

Copy link
Contributor

@yashikakhurana yashikakhurana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @b4handjr 🎉 it would be great if you can move that text to a constant file and then refer it here

<i class="fa-regular fa-circle-question"
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-title="This is anything that you own or are subscribed to follow – which are in Draft or Preview states. Go to the link to check the message for the next actions needed."></i>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for this text, you can add in here as a constant, this refers to our UI constants, refer to this PR here https://github.com/mozilla/experimenter/pull/13117/files and pass this in a context, you can also create home page as key and under that put links and tooltips

Copy link
Contributor

@yashikakhurana yashikakhurana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect, thank you @b4handjr 🎉 🎉

draft_or_preview_experiments, 4
).get_page(draft_page)
context["links"] = NimbusUIConstants.HOME_PAGE_LINKS
context["tooltips"] = NimbusUIConstants.HOME_PAGE_TOOLTIPS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@b4handjr b4handjr added this pull request to the merge queue Jul 31, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 31, 2025
@b4handjr b4handjr added this pull request to the merge queue Aug 1, 2025
Merged via the queue into main with commit 86a12c3 Aug 1, 2025
15 checks passed
@b4handjr b4handjr deleted the fix-exp-5703 branch August 1, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Draft or Preview III-Add Tooltip for Draft or Preview Header

2 participants