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

feat: delete insight page #920

Merged
merged 4 commits into from
Mar 1, 2023
Merged

Conversation

shamimbinnur
Copy link
Contributor

@shamimbinnur shamimbinnur commented Feb 28, 2023

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

This PR adds the ability to delete the insight page. Once the user clicks on the button "delete page" a confirmation modal will appear and ask the user to write DELETE in order to confirm the deletion.

Related Tickets & Documents

Fixes #853

Mobile & Desktop Screenshots/Recordings

Screenshot 2023-02-28 at 7 31 54 PM

Screenshot 2023-02-28 at 7 32 04 PM

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ docs.opensauced.pizza
  • πŸ• dev.to/opensauced
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

@netlify
Copy link

netlify bot commented Feb 28, 2023

βœ… Deploy Preview for design-insights ready!

Name Link
πŸ”¨ Latest commit 4b3598a
πŸ” Latest deploy log https://app.netlify.com/sites/design-insights/deploys/63fea9f16a69b80008a599a7
😎 Deploy Preview https://deploy-preview-920--design-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Feb 28, 2023

βœ… Deploy Preview for oss-insights ready!

Built without sensitive environment variables

Name Link
πŸ”¨ Latest commit 4b3598a
πŸ” Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/63fea9f15ea8b300073073d3
😎 Deploy Preview https://deploy-preview-920--oss-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@shamimbinnur shamimbinnur marked this pull request as ready for review February 28, 2023 13:42
components/organisms/InsightPage/InsightPage.tsx Outdated Show resolved Hide resolved
components/organisms/InsightPage/InsightPage.tsx Outdated Show resolved Hide resolved
components/organisms/InsightPage/InsightPage.tsx Outdated Show resolved Hide resolved
components/organisms/InsightPage/InsightPage.tsx Outdated Show resolved Hide resolved
components/organisms/InsightPage/InsightPage.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@brandonroberts brandonroberts left a comment

Choose a reason for hiding this comment

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

Minor changes

components/organisms/InsightPage/InsightPage.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@brandonroberts brandonroberts left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@OgDev-01 OgDev-01 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@bdougie bdougie left a comment

Choose a reason for hiding this comment

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

It works, but I agree with @OgDev-01 that we should visible disable the button if "DELETE" is not present. Current the button doesn't work, but we should show the 🚫 on the button

#920 (comment)

@shamimbinnur shamimbinnur requested review from bdougie and OgDev-01 March 1, 2023 01:38
Copy link
Member

@bdougie bdougie left a comment

Choose a reason for hiding this comment

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

Thanks @shamimbinnur. Would love to see this PR as a Highlight

@shamimbinnur
Copy link
Contributor Author

Thanks @shamimbinnur. Would love to see this PR as a Highlight

@bdougie I just did it!

Copy link
Contributor

@0-vortex 0-vortex left a comment

Choose a reason for hiding this comment

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

LGTM! πŸ‘

@brandonroberts brandonroberts merged commit e1cd798 into open-sauced:beta Mar 1, 2023
github-actions bot pushed a commit that referenced this pull request Mar 1, 2023
## [1.31.0-beta.12](v1.31.0-beta.11...v1.31.0-beta.12) (2023-03-01)

### πŸ• Features

* add ability to delete an insight page ([#920](#920)) ([e1cd798](e1cd798)), closes [#853](#853)
* add loading state to highlight cards ([#921](#921)) ([63c2cc1](63c2cc1)), closes [#903](#903)
@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2023

πŸŽ‰ This PR is included in version 1.31.0-beta.12 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

github-actions bot pushed a commit that referenced this pull request Mar 2, 2023
## [1.32.0-beta.1](v1.31.0...v1.32.0-beta.1) (2023-03-02)

### πŸ• Features

* add ability to delete an insight page ([#920](#920)) ([e1cd798](e1cd798)), closes [#853](#853)
* add loading state to highlight cards ([#921](#921)) ([63c2cc1](63c2cc1)), closes [#903](#903)
* default explore topic matches user interest ([#930](#930)) ([e73c9dd](e73c9dd)), closes [#929](#929)
* implement highlights feed page ([#913](#913)) ([6271c91](6271c91)), closes [#900](#900) [#829](#829)
* navigate to user contributions tab if there are no user highlights ([#918](#918)) ([3bb20ef](3bb20ef)), closes [#914](#914) [#916](#916)
* update default user profile bio ([#926](#926)) ([2a95817](2a95817)), closes [#922](#922)
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2023

πŸŽ‰ This PR is included in version 1.32.0-beta.1 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

github-actions bot pushed a commit that referenced this pull request Mar 2, 2023
## [1.32.0](v1.31.0...v1.32.0) (2023-03-02)

### πŸ• Features

* add ability to delete an insight page ([#920](#920)) ([e1cd798](e1cd798)), closes [#853](#853)
* add loading state to highlight cards ([#921](#921)) ([63c2cc1](63c2cc1)), closes [#903](#903)
* default explore topic matches user interest ([#930](#930)) ([e73c9dd](e73c9dd)), closes [#929](#929)
* implement highlights feed page ([#913](#913)) ([6271c91](6271c91)), closes [#900](#900) [#829](#829)
* navigate to user contributions tab if there are no user highlights ([#918](#918)) ([3bb20ef](3bb20ef)), closes [#914](#914) [#916](#916)
* update default user profile bio ([#926](#926)) ([2a95817](2a95817)), closes [#922](#922)
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2023

πŸŽ‰ This PR is included in version 1.32.0 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.31.0-beta.12](open-sauced/app@v1.31.0-beta.11...v1.31.0-beta.12) (2023-03-01)

### πŸ• Features

* add ability to delete an insight page ([#920](open-sauced/app#920)) ([e1cd798](open-sauced/app@e1cd798)), closes [#853](open-sauced/app#853)
* add loading state to highlight cards ([#921](open-sauced/app#921)) ([63c2cc1](open-sauced/app@63c2cc1)), closes [#903](open-sauced/app#903)
ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.32.0-beta.1](open-sauced/app@v1.31.0...v1.32.0-beta.1) (2023-03-02)

### πŸ• Features

* add ability to delete an insight page ([#920](open-sauced/app#920)) ([e1cd798](open-sauced/app@e1cd798)), closes [#853](open-sauced/app#853)
* add loading state to highlight cards ([#921](open-sauced/app#921)) ([63c2cc1](open-sauced/app@63c2cc1)), closes [#903](open-sauced/app#903)
* default explore topic matches user interest ([#930](open-sauced/app#930)) ([e73c9dd](open-sauced/app@e73c9dd)), closes [#929](open-sauced/app#929)
* implement highlights feed page ([#913](open-sauced/app#913)) ([6271c91](open-sauced/app@6271c91)), closes [#900](open-sauced/app#900) [#829](open-sauced/app#829)
* navigate to user contributions tab if there are no user highlights ([#918](open-sauced/app#918)) ([3bb20ef](open-sauced/app@3bb20ef)), closes [#914](open-sauced/app#914) [#916](open-sauced/app#916)
* update default user profile bio ([#926](open-sauced/app#926)) ([2a95817](open-sauced/app@2a95817)), closes [#922](open-sauced/app#922)
ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.32.0](open-sauced/app@v1.31.0...v1.32.0) (2023-03-02)

### πŸ• Features

* add ability to delete an insight page ([#920](open-sauced/app#920)) ([e1cd798](open-sauced/app@e1cd798)), closes [#853](open-sauced/app#853)
* add loading state to highlight cards ([#921](open-sauced/app#921)) ([63c2cc1](open-sauced/app@63c2cc1)), closes [#903](open-sauced/app#903)
* default explore topic matches user interest ([#930](open-sauced/app#930)) ([e73c9dd](open-sauced/app@e73c9dd)), closes [#929](open-sauced/app#929)
* implement highlights feed page ([#913](open-sauced/app#913)) ([6271c91](open-sauced/app@6271c91)), closes [#900](open-sauced/app#900) [#829](open-sauced/app#829)
* navigate to user contributions tab if there are no user highlights ([#918](open-sauced/app#918)) ([3bb20ef](open-sauced/app@3bb20ef)), closes [#914](open-sauced/app#914) [#916](open-sauced/app#916)
* update default user profile bio ([#926](open-sauced/app#926)) ([2a95817](open-sauced/app@2a95817)), closes [#922](open-sauced/app#922)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: Delete options for created pages
5 participants