Skip to content
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

Flyout: promote beta dashboard from it #320

Merged
merged 5 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dist/readthedocs-addons.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/readthedocs-addons.js.map

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions src/flyout.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ export class FlyoutElement extends LitElement {
<dd>
<a
href="${addUtmParameters(
this.config.projects.current.urls.home,
this.config.projects.current.urls.home
.replace("readthedocs.org", "app.readthedocs.org")
.replace("readthedocs.com", "app.readthedocs.com"),
"flyout",
)}"
>Project Home</a
Expand All @@ -181,7 +183,9 @@ export class FlyoutElement extends LitElement {
<dd>
<a
href="${addUtmParameters(
this.config.projects.current.urls.builds,
this.config.projects.current.urls.builds
.replace("readthedocs.org", "app.readthedocs.org")
.replace("readthedocs.com", "app.readthedocs.com"),
"flyout",
)}"
>Builds</a
Expand All @@ -190,7 +194,9 @@ export class FlyoutElement extends LitElement {
<dd>
<a
href="${addUtmParameters(
this.config.projects.current.urls.downloads,
this.config.projects.current.urls.downloads
.replace("readthedocs.org", "app.readthedocs.org")
.replace("readthedocs.com", "app.readthedocs.com"),
"flyout",
)}"
>Downloads</a
Expand Down
4 changes: 2 additions & 2 deletions src/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export class NotificationElement extends LitElement {
// NOTE: point users to the new beta dashboard for now so we promote it more.
// We will revert this once we are fully migrated to the new dashboard.
build: config.builds.current.urls.build
.replace("readthedocs.org", "beta.readthedocs.org")
.replace("readthedocs.com", "beta.readthedocs.com"),
.replace("readthedocs.org", "app.readthedocs.org")
.replace("readthedocs.com", "app.readthedocs.com"),
external: config.versions.current.urls.vcs,
};
}
Expand Down
12 changes: 6 additions & 6 deletions tests/__snapshots__/flyout.test.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ snapshots["Flyout addon snapshot flyout completely"] =
On Read the Docs
</dt>
<dd>
<a href="https://readthedocs.org/projects/project/?utm_source=project&amp;utm_content=flyout">
<a href="https://app.readthedocs.org/projects/project/?utm_source=project&amp;utm_content=flyout">
Project Home
</a>
</dd>
<dd>
<a href="https://readthedocs.org/projects/project/builds/?utm_source=project&amp;utm_content=flyout">
<a href="https://app.readthedocs.org/projects/project/builds/?utm_source=project&amp;utm_content=flyout">
Builds
</a>
</dd>
<dd>
<a href="https://readthedocs.org/projects/project/downloads/?utm_source=project&amp;utm_content=flyout">
<a href="https://app.readthedocs.org/projects/project/downloads/?utm_source=project&amp;utm_content=flyout">
Downloads
</a>
</dd>
Expand Down Expand Up @@ -179,17 +179,17 @@ snapshots["Flyout addon snapshot flyout with search disabled"] =
On Read the Docs
</dt>
<dd>
<a href="https://readthedocs.org/projects/project/?utm_source=project&amp;utm_content=flyout">
<a href="https://app.readthedocs.org/projects/project/?utm_source=project&amp;utm_content=flyout">
Project Home
</a>
</dd>
<dd>
<a href="https://readthedocs.org/projects/project/builds/?utm_source=project&amp;utm_content=flyout">
<a href="https://app.readthedocs.org/projects/project/builds/?utm_source=project&amp;utm_content=flyout">
Builds
</a>
</dd>
<dd>
<a href="https://readthedocs.org/projects/project/downloads/?utm_source=project&amp;utm_content=flyout">
<a href="https://app.readthedocs.org/projects/project/downloads/?utm_source=project&amp;utm_content=flyout">
Downloads
</a>
</dd>
Expand Down
6 changes: 3 additions & 3 deletions tests/flyout.test.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@
<dl>
<dt>On Read the Docs</dt>
<dd>
<a href="https://readthedocs.org/projects/project/?utm_source=project&amp;utm_content=flyout">Project Home</a>
<a href="https://app.readthedocs.org/projects/project/?utm_source=project&amp;utm_content=flyout">Project Home</a>
</dd>
<dd>
<a href="https://readthedocs.org/projects/project/builds/?utm_source=project&amp;utm_content=flyout">Builds</a>
<a href="https://app.readthedocs.org/projects/project/builds/?utm_source=project&amp;utm_content=flyout">Builds</a>
</dd>
<dd>
<a href="https://readthedocs.org/projects/project/downloads/?utm_source=project&amp;utm_content=flyout">Downloads</a>
<a href="https://app.readthedocs.org/projects/project/downloads/?utm_source=project&amp;utm_content=flyout">Downloads</a>
</dd>
</dl>
`);
Expand Down