Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

[Do-Not-Merge] Add deprecated notice to terra-overlay #3357

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Components in beta stage may include breaking changes, new features, and bug fix
| [terra-image](https://github.com/cerner/terra-core/tree/main/packages/terra-image) | [![NPM version](https://badgen.net/npm/v/terra-image)](https://www.npmjs.org/package/terra-image) | ![Stable](https://badgen.net/badge/status/Stable/green) | [![terra-image](https://badgen.net/david/dep/cerner/terra-core/packages/terra-image)](https://david-dm.org/cerner/terra-core?path=packages/terra-image) |
| [terra-list](https://github.com/cerner/terra-core/tree/main/packages/terra-list) | [![NPM version](https://badgen.net/npm/v/terra-list)](https://www.npmjs.org/package/terra-list) | ![Stable](https://badgen.net/badge/status/Stable/green) | [![terra-list](https://badgen.net/david/dep/cerner/terra-core/packages/terra-list)](https://david-dm.org/cerner/terra-core?path=packages/terra-list) |
| [terra-mixins](https://github.com/cerner/terra-core/tree/main/packages/terra-mixins) | [![NPM version](https://badgen.net/npm/v/terra-mixins)](https://www.npmjs.org/package/terra-mixins) | ![Stable](https://badgen.net/badge/status/Stable/green) | [![terra-mixins](https://badgen.net/david/dep/cerner/terra-core/packages/terra-mixins)](https://david-dm.org/cerner/terra-core?path=packages/terra-mixins) |
| [terra-overlay](https://github.com/cerner/terra-core/tree/main/packages/terra-overlay) | [![NPM version](https://badgen.net/npm/v/terra-overlay)](https://www.npmjs.org/package/terra-overlay) | ![Stable](https://badgen.net/badge/status/Stable/green) | [![terra-overlay](https://badgen.net/david/dep/cerner/terra-core/packages/terra-overlay)](https://david-dm.org/cerner/terra-core?path=packages/terra-overlay) |
| [terra-overlay](https://github.com/cerner/terra-core/tree/main/packages/terra-overlay) | [![NPM version](https://badgen.net/npm/v/terra-overlay)](https://www.npmjs.org/package/terra-overlay) | ![Deprecated](https://badgen.net/badge/status/Deprecated/grey) | [![terra-overlay](https://badgen.net/david/dep/cerner/terra-core/packages/terra-overlay)](https://david-dm.org/cerner/terra-core?path=packages/terra-overlay) |
| [terra-paginator](https://github.com/cerner/terra-core/tree/main/packages/terra-paginator) | [![NPM version](https://badgen.net/npm/v/terra-paginator)](https://www.npmjs.org/package/terra-paginator) | ![Stable](https://badgen.net/badge/status/Stable/green) | [![terra-paginator](https://badgen.net/david/dep/cerner/terra-core/packages/terra-paginator)](https://david-dm.org/cerner/terra-core?path=packages/terra-paginator) |
| [terra-profile-image](https://github.com/cerner/terra-core/tree/main/packages/terra-profile-image) | [![NPM version](https://badgen.net/npm/v/terra-profile-image)](https://www.npmjs.org/package/terra-profile-image) | ![Stable](https://badgen.net/badge/status/Stable/green) | [![terra-profile-image](https://badgen.net/david/dep/cerner/terra-core/packages/terra-profile-image)](https://david-dm.org/cerner/terra-core?path=packages/terra-profile-image) |
| [terra-progress-bar](https://github.com/cerner/terra-core/tree/main/packages/terra-progress-bar) | [![NPM version](https://badgen.net/npm/v/terra-progress-bar)](https://www.npmjs.org/package/terra-progress-bar) | ![Stable](https://badgen.net/badge/status/Stable/green) | [![terra-progress-bar](https://badgen.net/david/dep/cerner/terra-core/packages/terra-progress-bar)](https://david-dm.org/cerner/terra-core?path=packages/terra-progress-bar) |
Expand Down
3 changes: 3 additions & 0 deletions packages/terra-overlay/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Added
* Added a deprecated notice.

## 3.62.0 - (February 2, 2021)

* Changed
Expand Down
18 changes: 16 additions & 2 deletions packages/terra-overlay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,23 @@
[![NPM version](https://badgen.net/npm/v/terra-overlay)](https://www.npmjs.org/package/terra-overlay)
[![Build Status](https://badgen.net/travis/cerner/terra-core)](https://travis-ci.com/cerner/terra-core)

The Terra Overlay component is a component that displays an overlay relative to the container that triggered the overlay. This component blocks interactions and fades out all elements of the triggering container.
## Deprecation Notice
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't convert the readme to mdx. It needs to be renderable by github.

Copy link
Contributor

Choose a reason for hiding this comment

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

and npm

Copy link
Contributor

Choose a reason for hiding this comment

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

oops good call, didn't realize this was the readme


A Loading Overlay is a subcomponent that displays an overlay with a spinner icon and loading message.
The terra-overlay npm package is deprecated as of 3.62.0. terra-overlay will be removed from the repo in a future version, but the package will remain on npm.

### What deprecation means
Any apps that currently use terra-overlay will continue to work as-is.
However, the terra-overlay package will no longer continue to be supported / developed.

## Why?
Terra Overlay design is a bad pattern and hence it is being deprecated.
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you mean by this is a bad pattern? being devils advocate, without any background context, I don't really feel like this sells me on why it should deprecated.

Also what is different about terra-application-loading-overlay that make it a better pattern?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, i was going to get to that once we got some other things cleaned up, but it's not a bad pattern it's just an old pattern and now we want people to pull from terra-application instead. There will have to be some more tweaking of the wording here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd say the biggest reason for this deprecation is to integrate the presentation of overlays with the overall application framework to ensure accessibility. Improving the ease of use of these components is a plus, too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated here a63aa91, with what @tbiethman mentioned ☝️.


## How to replace this package?
This package can be replaced with [terra-application-loading-overlay](https://engineering.cerner.com/terra-ui/application/terra-application/components/application-loading-overlay)

~~The Terra Overlay component is a component that displays an overlay relative to the container that triggered the overlay. This component blocks interactions and fades out all elements of the triggering container.

A Loading Overlay is a subcomponent that displays an overlay with a spinner icon and loading message.~~

- [Getting Started](#getting-started)
- [Documentation](https://engineering.cerner.com/terra-ui/components/terra-overlay/overlay/overlay)
Expand Down