Skip to content

Commit

Permalink
Adding banner to notify users of Azure Data Studio's retirement annou…
Browse files Browse the repository at this point in the history
…ncement. (#26191) (#26192)

* Adding banner to welcome page

* Adding notification

* Updating README

* Update label text from "Okay" to "OK"

---------

Co-authored-by: Benjin Dubishar <[email protected]>
  • Loading branch information
kburtram and Benjin authored Feb 7, 2025
1 parent e854340 commit 95e6a0e
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Azure Data Studio

> [!IMPORTANT]
> Azure Data Studio will be retired on **February 28, 2026**. [Read more](https://aka.ms/ads-retirement)
----

[![Join the chat at https://gitter.im/Microsoft/sqlopsstudio](https://badges.gitter.im/Microsoft/sqlopsstudio.svg)](https://gitter.im/Microsoft/sqlopsstudio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://dev.azure.com/ms/azuredatastudio/_apis/build/status/AzureDataStudio-Localization-CI?branchName=main)](https://dev.azure.com/ms/azuredatastudio/_build/latest?definitionId=453&branchName=main)
[![Twitter Follow](https://img.shields.io/twitter/follow/azuredatastudio?style=social)](https://twitter.com/azuredatastudio)
Expand Down
11 changes: 11 additions & 0 deletions src/sql/workbench/contrib/welcome/browser/az_data_welcome_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ export default () => `
</div>
</div>
</div>
<div class="row" id="retirement-announcement-container">
<div class="retirement-banner">
<p>
${escape(localize('welcomePage.adsRetirementAnnouncement', "Azure Data Studio will be retired on February 28, 2026."))}
<a class="link" href="https://aka.ms/ads-retirement">
${escape(localize('welcomePage.adsRetirementAnnouncementLink', "Read more"))}
<span class="icon-link themed-icon-alt"></span>
</a>
</p>
</div>
</div>
<div class="row header-bottom-nav-tiles ads-grid">
<div class="col">
<a role="button" class="header-bottom-nav-tile-link ads-welcome-page-link" href="command:${AddServerAction.ID}">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { Registry } from 'vs/platform/registry/common/platform';
import { IWorkbenchContributionsRegistry, Extensions as WorkbenchExtensions } from 'vs/workbench/common/contributions';
import { LifecyclePhase } from 'vs/workbench/services/lifecycle/common/lifecycle';
import { RetirementAnnouncement } from 'sql/workbench/contrib/welcome/browser/retirementAnnouncement';

Registry
.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench)
.registerWorkbenchContribution(RetirementAnnouncement, LifecyclePhase.Eventually);
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storage/common/storage';
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
import { IHostService } from 'vs/workbench/services/host/browser/host';
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
import { localize } from 'vs/nls';

export class RetirementAnnouncement {
private static DO_NOT_SHOW_RETIREMENT_PROMPT = 'workbench.doNotShowRetirementPrompt';

constructor(
@IStorageService private storageService: IStorageService,
@INotificationService private notificationService: INotificationService,
@IHostService hostService: IHostService,
@IConfigurationService configurationService: IConfigurationService
) {
if (this.storageService.get(RetirementAnnouncement.DO_NOT_SHOW_RETIREMENT_PROMPT, StorageScope.APPLICATION)) {
return;
}

const retirementNotice = localize('prompt.adsRetirementAnnouncement', "Azure Data Studio will be retired on February 28, 2026. [Read more](https://aka.ms/ads-retirement)");
this.notificationService.prompt(
Severity.Info,
retirementNotice,
[
{
label: localize('okay', "OK"),
run: () => { /* no-op, just an ack */ }
},
{
label: localize('never', "Don't show again"),
run: () => {
this.storageService.store(RetirementAnnouncement.DO_NOT_SHOW_RETIREMENT_PROMPT, true, StorageScope.APPLICATION, StorageTarget.MACHINE);
}
}
]
);
}

}
11 changes: 11 additions & 0 deletions src/sql/workbench/contrib/welcome/browser/welcomePage.css
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,17 @@
background-repeat: no-repeat
}

.ads-homepage .retirement-banner {
width: 100%;
padding: 20px;
background-color: #ffcc00;
color: #000;
text-align: center;
font-size: 16px;
font-weight: bold;
border-radius: 4px;
}

.ads-homepage .middle-section {
display: flex;
flex-direction: column;
Expand Down
3 changes: 3 additions & 0 deletions src/vs/workbench/workbench.desktop.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,6 @@ import 'sql/workbench/contrib/commandLine/electron-sandbox/commandLine.contribut

//getting started
import 'sql/workbench/contrib/welcome/electron-sandbox/gettingStarted.contribution';

// Azure Data Studio Retirement announcent
import 'sql/workbench/contrib/welcome/browser/retirementAnnouncement.contribution';
3 changes: 3 additions & 0 deletions src/vs/workbench/workbench.web.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,7 @@ import 'sql/workbench/contrib/welcome/browser/gettingStarted.contribution';
// Telemetry Opt Out
import 'sql/workbench/contrib/telemetry/browser/telemetryOptOut.contribution';

// Azure Data Studio Retirement announcent
import 'sql/workbench/contrib/welcome/browser/retirementAnnouncement.contribution';

//#endregion

0 comments on commit 95e6a0e

Please sign in to comment.