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

Conversation

pranav300
Copy link
Contributor

@pranav300 pranav300 commented Feb 18, 2021

Summary

Added a deprecated notice to terra-overlay

The plan is to wait till terra-application v2 is released and then update this PR with correct links for migration guide.

Till then this can work as a template for deprecation and maintenance PR's.

Closes #3331

Thank you for contributing to Terra.
@cerner/terra

@mjhenkes mjhenkes temporarily deployed to terra-core-deprecate-ov-wexbts February 18, 2021 13:48 Inactive
@@ -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

@mjhenkes mjhenkes temporarily deployed to terra-core-deprecate-ov-wexbts February 19, 2021 03:52 Inactive
@mjhenkes
Copy link
Contributor

mjhenkes commented Feb 19, 2021

For any of these depreciation notices we need to do the following.

  • update the repo readme and badge
  • update any of the component doc pages, using the notices component. In this case, the maintainance notice variant would be appropriate with similar phrasing as used for terra-application-navigation
  • update the component readme (using just straight markdown), update the badge
  • adding an independent deprecation guide doc page. This doc should contain what deprecation means, why we've made the change and how consumers should move forward. (Basically what you've already documented here. I will want to make some tweaks to the phrasing here but you have a good start.

---After PR----

  • npm deprecate with a message (we should use the exact same message as what is in our notices component on the main doc pages so these match, plus also on the component readme.md - all can link to our deprecation guide doc).

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 ☝️.

@mjhenkes mjhenkes temporarily deployed to terra-core-deprecate-ov-wexbts February 21, 2021 22:37 Inactive
@pranav300 pranav300 changed the title Add deprecated notice to terra-overlay [Do-Not-Merge] Add deprecated notice to terra-overlay Feb 22, 2021
@mjhenkes mjhenkes temporarily deployed to terra-core-deprecate-ov-wexbts February 22, 2021 16:39 Inactive
@pranav300
Copy link
Contributor Author

Closing this PR. Due to delay in terra-application v2 release, marking these components deprecated seems premature.

The deprecations of this will be done once terra-application v2 is released.

cc/ @ryanthemanuel @ShettyAkarsh

@pranav300 pranav300 closed this Aug 20, 2021
@pranav300 pranav300 deleted the deprecate-overlay branch August 20, 2021 09:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[terra-overlay] Deprecate terra-overlay
6 participants