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

CED-1762 create v3 EsViewMore #1520

Merged
merged 5 commits into from
Sep 10, 2024

Conversation

lgeggleston
Copy link
Contributor

@lgeggleston lgeggleston commented Sep 10, 2024

πŸ”— Linked issue

https://energysage.atlassian.net/browse/CED-1762

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

  • Create EsViewMore in Vue 3, no need for primeVue component
  • install dependency html-truncate
  • Removed a piece of logic from original version of this component that seems to pass down click functionality from the parent if given and replace default show more/show less (if (this.$listeners && this.$listeners.click) ...). However, a check through ES repo usage of this component showed this is not currently used, and I don't think it makes much sense to continue, so removed in this case..

πŸ₯Ό Testing

🧐 Feedback Requested / Focus Areas

  • The click override thing is actually used for a real reason in one place - EsReview ( to open a modal in CDGM). However, we decided to defer recreating EsReview since it's only used in CDGM for now. I think it may actually be simpler to replace that use in EsReview with a truncated span+button, since that's the only part of the component really used - but we only need to do that if CDGM is getting upgraded to vue3 at all.
    • does it sounds alright if I just add this note to the Review ticket, in case gets done in the future?

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.
  • I have documented testing approach

Copy link

swarmia bot commented Sep 10, 2024

βœ… Β Linked to Task CED-1762 Β· Create v3 EsViewMore
➑️  Part of Epic CED-1339 · Build Vue 3 design system [LC]

@hroth1994
Copy link
Contributor

πŸ‘€

Copy link
Contributor

@hroth1994 hroth1994 left a comment

Choose a reason for hiding this comment

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

Looks great so far! Just a few non-functional comments:

es-ds-docs/package.json Outdated Show resolved Hide resolved
es-ds-docs/pages/molecules/support.vue Show resolved Hide resolved
es-ds-docs/pages/molecules/view-more.vue Show resolved Hide resolved
es-ds-docs/pages/molecules/view-more.vue Show resolved Hide resolved
Copy link
Contributor

@hroth1994 hroth1994 left a comment

Choose a reason for hiding this comment

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

I agree adding a note to the EsReview ticket is sufficient. One small nit but LGTM! 🌟

es-ds-docs/pages/molecules/view-more.vue Outdated Show resolved Hide resolved
@lgeggleston lgeggleston merged commit 8a85183 into esds-3.0-vue3-primevue Sep 10, 2024
1 check passed
@lgeggleston lgeggleston deleted the CED-1762-create-v3-es-view-more branch September 10, 2024 21:11
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.

2 participants