Skip to content

Update "Share chart" dialog wording - #7928

Open
emilykl wants to merge 6 commits into
v4.0from
update-cloud-dialog-wording
Open

Update "Share chart" dialog wording#7928
emilykl wants to merge 6 commits into
v4.0from
update-cloud-dialog-wording

Conversation

@emilykl

@emilykl emilykl commented Aug 3, 2026

Copy link
Copy Markdown
Contributor
  • Update "Share chart" dialog with more informative wording
    • Add hyperlink to Plotly Cloud
  • Update button tooltip to add an ellipsis ("Share chart...")
  • Update and add Jasmine tests to cover dialog code

Codepen demo: https://codepen.io/emilykl-code/pen/PwWKqej

Dialog
Screenshot 2026-08-04 at 9 38 54 AM

Button tooltip

Screenshot 2026-08-04 at 9 39 14 AM

@red-patience

Copy link
Copy Markdown

LGTM!

@ndrezn

ndrezn commented Aug 3, 2026

Copy link
Copy Markdown
Member

Should this be sentence case? @red-patience

@red-patience

Copy link
Copy Markdown

Should this be sentence case? @red-patience

If this sets a new precedent then I would recommend sentence case but if not, then consistency with what exists already.

@emilykl

emilykl commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Should this be sentence case? @red-patience

Which part?

@ndrezn

ndrezn commented Aug 3, 2026

Copy link
Copy Markdown
Member

"Share chart" instead of current "Share Chart"

@emilykl emilykl changed the title Update "Share Chart" dialog wording Update "Share chart" dialog wording Aug 4, 2026
@emilykl

emilykl commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

@red-patience @ndrezn I don't feel strongly either way, and there's not much precedent in plotly.js itself, so I've lowercased the word "chart" both in the button tooltip and the dialog title.

@camdecoster camdecoster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I left a few comments, but no blockers.

Comment thread draftlogs/7928_change.md Outdated
return;
}
if (baseUrlObj.protocol !== 'https:' && baseUrlObj.protocol !== 'http:') {
console.error('Invalid protocol for plotlyServerURL: ' + baseUrl);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this log the invalid protocol rather than the URL?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, maybe it could log both, I'll update.

Comment thread src/components/modebar/cloud_confirm.js Outdated
Comment on lines +9 to +11
// Wording for dialog box. Must be defined inside this function rather than
// at the top of the file because localization requires a reference to the
// graph div (gd)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could these strings be defined in a constants.js file? I've seen that pattern in the repo.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's a good idea, thanks, I'll do that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh wait, no, that can't be done directly because of the localization needing a reference to gd. I might be able to structure this a bit more clearly though.

@emilykl
emilykl force-pushed the update-cloud-dialog-wording branch from 5bc58da to 4897de4 Compare August 5, 2026 15:29
Co-authored-by: Cameron DeCoster <cameron.decoster@gmail.com>
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.

4 participants