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

IS-456: Text Cards Previews #1516

Merged
merged 5 commits into from
Sep 27, 2023

Conversation

harishv7
Copy link
Contributor

Problem

Adds previews for text cards on CMS

Closes IS-456

Solution

Followed suggested approach on template doc to enable text-card previews on CMS.

Breaking Changes

  • Yes - this PR contains breaking changes
    • Details ...
  • No - this PR is backwards compatible with ALL of the following feature flags in this doc

Screenshot 2023-09-22 at 11 09 10 AM

Tests

  • Unit tests (using npm run tests)

  • e2e tests (comment on this PR with the text !run e2e)

  • Smoke tests

  • You should be able to add text cards section

  • A max of 4 text cards should be allowed to be added

@harishv7 harishv7 requested review from alexanderleegs, seaerchin, dcshzj and kishore03109 and removed request for alexanderleegs and seaerchin September 22, 2023 03:09
@harishv7 harishv7 temporarily deployed to staging September 22, 2023 03:41 — with GitHub Actions Inactive
@harishv7
Copy link
Contributor Author

Note: Some comments from design, will merge after fixing it

@alexanderleegs alexanderleegs force-pushed the feat/text-cards-panel branch 2 times, most recently from 56dd050 to 34c3c8f Compare September 27, 2023 01:49
@harishv7 harishv7 force-pushed the IS-456-text-cards-previews branch from 2fed57b to 0031790 Compare September 27, 2023 05:38
@harishv7 harishv7 temporarily deployed to staging September 27, 2023 05:52 — with GitHub Actions Inactive
@harishv7 harishv7 temporarily deployed to staging September 27, 2023 05:53 — with GitHub Actions Inactive
@alexanderleegs alexanderleegs merged commit 331e772 into feat/text-cards-panel Sep 27, 2023
10 checks passed
@mergify mergify bot deleted the IS-456-text-cards-previews branch September 27, 2023 09:07
alexanderleegs added a commit that referenced this pull request Sep 27, 2023
* wip: basic cms preview

* feat: refactor styles

Co-authored-by: Alexander Lee <[email protected]>

* feat: enable previews on text-cards

* fix: lint issues

* feat: update previews to match template

Co-authored-by: Alexander Lee <[email protected]>

---------

Co-authored-by: Alexander Lee <[email protected]>
alexanderleegs added a commit that referenced this pull request Sep 27, 2023
* chore: add validators

* chore: add constants

* chore: add new textcard component types

* chore: add placeholder preview section

* chore: add new homepageDroppableZone type

* Feat: add textCards side panel

* feat: update useDrag to work with subtextcards

* feat: add text card parsing and change handler

* Fix: add button styles and restrict cards to 4

* fix: disable save on card error

* fix: rebase errors

* fix: remove comments

* fix: cast text cards once

* chore: remove unused updateElement

* fix: bug when attempting to create 2 textcard sections before adding text cards

Lodash behaviour here is buggy - _.set sets the fields in multiple array items for section data, which was causing errors

* chore: rename textcardcard

* feat: add help overlay and add feature flag (#1528)

* feat: add help overlay and add feature flag

* chore: rearrange resource position in add section

* IS-456: Text Cards Previews (#1516)

* wip: basic cms preview

* feat: refactor styles

Co-authored-by: Alexander Lee <[email protected]>

* feat: enable previews on text-cards

* fix: lint issues

* feat: update previews to match template

Co-authored-by: Alexander Lee <[email protected]>

---------

Co-authored-by: Alexander Lee <[email protected]>

* chore: refactor homepage to if/else to preserve existing behaviour (#1527)

* chore: refactor homepage to if/else to preserve existing behaviour

* fix: rebase errors

* fix: check for empty string

* fix: rename var

* fix: add type guards to create and delete and add comments

* chore: change to unknown

---------

Co-authored-by: Harish <[email protected]>
Co-authored-by: Alexander Lee <[email protected]>
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.

3 participants