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(requestoverview): add link to staging/cms #1161

Merged
merged 8 commits into from
May 25, 2023
Merged

Conversation

seaerchin
Copy link
Contributor

@seaerchin seaerchin commented Nov 25, 2022

corresponding BE PR here

Problem

This adds the link in the review request to either the staging site or the cms site

Closes IS-54

Solution

As the link is constructed on teh BE and returned to the FE, this just displays the link in the correct place

Tests

  • navigate to a email login based repo
  • create a new image
  • create a new file
  • create a new unlinked page
  • create a new page in folder
  • create a new page in a subfolder
  • create a new resource room page
  • repeat the above steps but edit existing items rather than creating
  • create a new empty folder + subcollection
  • create a new empty collection + sub collection
  • delete an item
  • move an item
  • request a review
  • pages should be able to have a staging + cms link, files/images should not
  • the deleted item should show up but the buttons should be disabled
  • the moved item should show only as a new item

verified by @kishore03109

@seaerchin seaerchin changed the title [wip] feat(requestoverview): add ext link to staging feat(requestoverview): add ext link to staging Mar 17, 2023
@seaerchin seaerchin changed the title feat(requestoverview): add ext link to staging feat(requestoverview): add link to staging/cms Mar 17, 2023
@seaerchin seaerchin marked this pull request as ready for review March 17, 2023 05:51
@mergify mergify bot requested a review from a team March 21, 2023 01:02
@mergify
Copy link

mergify bot commented Mar 21, 2023

This pull request has been stale for more than 30 days! Could someone please take a look at it @isomerpages/iso-engineers

header: () => (
<Th borderBottom="1px solid" borderColor="gray.100" w="10rem" />
),
cell: ({ row }) => (
<HStack spacing="0.25rem">
{allowEditing && (
<Link href="www.google.com">
<Link
Copy link
Contributor

Choose a reason for hiding this comment

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

@seaerchin lgtm, could you add a screenshot of how this looks like on the UI or add steps to test this locally?

Copy link
Contributor Author

@seaerchin seaerchin Mar 27, 2023

Choose a reason for hiding this comment

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

there's a story written for this so it should show inside the storybook! can get to it via chromatic below (UI Tests/UI Review)

Copy link
Contributor

@kishore03109 kishore03109 left a comment

Choose a reason for hiding this comment

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

Chromatic and other CICD builds are failing, may I trouble you to look into them?

@@ -239,34 +239,30 @@ export const MOCK_SITE_DASHBOARD_INFO: SiteDashboardInfo = {

export const MOCK_ITEMS: EditedItemProps[] = [
{
type: ["page"],
type: "page",
Copy link
Contributor

Choose a reason for hiding this comment

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

would be nice if this is a TS type rather than string

Base automatically changed from feat/identity-phase-2 to develop March 30, 2023 04:20
@mergify mergify bot requested a review from a team April 29, 2023 08:50
@mergify
Copy link

mergify bot commented Apr 29, 2023

This pull request has been stale for more than 30 days! Could someone please take a look at it @isomerpages/iso-engineers

@seaerchin seaerchin temporarily deployed to staging May 17, 2023 10:38 — with GitHub Actions Inactive
@seaerchin seaerchin temporarily deployed to staging May 17, 2023 10:51 — with GitHub Actions Inactive
@seaerchin
Copy link
Contributor Author

!run e2e

@cypress
Copy link

cypress bot commented May 18, 2023

15 failed tests on run #274 ↗︎

15 109 0 0 Flakiness 0

Details:

feat(requestoverview): add link to staging/cms
Project: isomercms-frontend Commit: 74fa6dd928
Status: Failed Duration: 42:13 💡
Started: May 18, 2023 4:45 AM Ended: May 18, 2023 5:27 AM
Failed  editPage.spec.ts • 1 failed test

View Output Video

Test Artifacts
editPage.spec > Edit resource page > Edit page (resource) should have correct colour Output Screenshots Video
Failed  files.spec.ts • 7 failed tests

View Output Video

Test Artifacts
Files > Create file, delete file, edit file settings in Files > Should be able to edit a file Output Screenshots Video
Files > Create file, delete file, edit file settings in Files > Should not be able to create file with invalid title Output Screenshots Video
Files > Create file, delete file, edit file settings in Files > Should not be able to edit file and save with invalid title Output Screenshots Video
Files > Create file, delete file, edit file settings in Files > Should be able to delete file Output Screenshots Video
Files > Create file directory, delete file directory, edit file directory settings in Files > Should be able to edit file directory name Output Screenshots Video
Files > Create file directory, delete file directory, edit file directory settings in Files > Should be able to delete file directory Output Screenshots Video
Files > Create file, delete file, edit file settings, and move files in file directories > Should be able to move file to different image album Output Screenshots Video
Failed  folders.spec.ts • 2 failed tests

View Output Video

Test Artifacts
Folders flow > Create page, delete page, edit page settings in folder > Should not be able to create page with invalid title Output Screenshots Video
Folders flow > Create page, delete page, edit page settings in subfolder > Should not be able to create page with invalid title Output Screenshots Video
Failed  resourceCategory.spec.ts • 4 failed tests

View Output Video

Test Artifacts
Resource category page > Resources category page should allow user to create a new resource page of type post Output Screenshots Video
Resource category page > Resources category page should allow user to create a new resource page of type post Output Screenshots Video
Resource category page > Resources category page should allow user to create a new resource page of type file Output Screenshots Video
Resource category page > Resources category page should allow user to create a new resource page of type link Output Screenshots Video
Failed  settings.spec.ts • 1 failed test

View Output Video

Test Artifacts
Settings page > Should change Logos and have change reflect correctly on save Output Screenshots Video

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@seaerchin seaerchin temporarily deployed to staging May 25, 2023 04:24 — with GitHub Actions Inactive
@seaerchin seaerchin temporarily deployed to staging May 25, 2023 04:37 — with GitHub Actions Inactive
Copy link
Contributor

@alexanderleegs alexanderleegs left a comment

Choose a reason for hiding this comment

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

As discussed offline,

  • We should confirm the behaviour of moving files - currently the change only shows up as a new page instead of both a delete and an add
  • Confirm behaviour of delete as well - currently it shows up as a file which cannot be viewed on staging/cms (which makes sense, because it's not available anymore), but is this intuitive to users

Approving first because these are not blocking, but it is behaviour that we should confirm with design!

@seaerchin seaerchin merged commit 807fd60 into develop May 25, 2023
@seaerchin seaerchin deleted the feat/staging-url branch May 25, 2023 05:08
@seaerchin
Copy link
Contributor Author

seaerchin commented May 25, 2023

As discussed offline,

  • We should confirm the behaviour of moving files - currently the change only shows up as a new page instead of both a delete and an add
  • Confirm behaviour of delete as well - currently it shows up as a file which cannot be viewed on staging/cms (which makes sense, because it's not available anymore), but is this intuitive to users

Approving first because these are not blocking, but it is behaviour that we should confirm with design!

filed as IS-229

@mergify
Copy link

mergify bot commented Jun 24, 2023

This pull request has been stale for more than 30 days! Could someone please take a look at it @isomerpages/iso-engineers

@mergify mergify bot requested a review from a team June 24, 2023 06:17
@mergify
Copy link

mergify bot commented Jul 24, 2023

This pull request has been stale for more than 30 days! Could someone please take a look at it @isomerpages/iso-engineers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants