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

chore(site): create lorem-ipsum custom dummy text element #2040

Closed
wants to merge 3 commits into from

Conversation

ala-n
Copy link
Collaborator

@ala-n ala-n commented Nov 8, 2023

Starting to move staff from epic/redesign branch to stable...

@ala-n ala-n added site Feature, enhancement or bug for demo site needs review The PR is waiting for review labels Nov 8, 2023
@ala-n ala-n requested review from a team November 8, 2023 22:41
@ala-n ala-n self-assigned this Nov 8, 2023
@ala-n ala-n requested review from yadamskaya, abarmina and NastaLeo and removed request for a team November 8, 2023 22:41
pages/src/text/lorem-ipsum.ts Outdated Show resolved Hide resolved
@ala-n ala-n changed the title chore(site): create esl-d-lorem-ipsum custom element chore(site): create lorem-ipsum custom element Nov 13, 2023
@ala-n ala-n changed the title chore(site): create lorem-ipsum custom element chore(site): create lorem-ipsum custom dummy text element Nov 13, 2023
@ala-n
Copy link
Collaborator Author

ala-n commented Nov 13, 2023

@exadel-inc/esl-all-contributors team, there is one common question remaining for that PR:

As you can see, the component is generalized enough. While it may not be a production-valuable component, it could still be utilized for demo content in the development process, not only on the ESL site but also on the customer side.

So, do you think it is a good idea to move the component from the site package to ESL modules?

  • 👍🏻 - yes
  • 👎🏻 - no

The default custom tag name has been set to esl-lorem-ipsum.

  • 👀 - that's fine
  • 😕 - we need to consider another naming (possibly esl-dummy-text in that case)

Feel free to express your opinion via text in case a quick vote with emojis does not clearly convey your thoughts.

Copy link

codeclimate bot commented Nov 13, 2023

Code Climate has analyzed commit efeaf1c and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 54.7% (0.0% change).

View more on Code Climate.

super.disconnectedCallback();
}
protected override attributeChangedCallback(name: string, oldValue: string, newValue: string): void {
super.attributeChangedCallback(name, oldValue, newValue);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does it need to call the empty method?

import {ESLBaseElement} from '@exadel/esl/modules/esl-base-element/core';
import {attr} from '@exadel/esl/modules/esl-utils/decorators';

const WORDS = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess "dictionary" is a more appropriate name.

And it seems to me that if users could import the dictionaries they need and use them, then this would be a very cool feature. Moreover, they could make their own dictionaries and use them.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Great idea! I'll take a look how to make this setting available

@ala-n
Copy link
Collaborator Author

ala-n commented Nov 15, 2023

As a result of discussion final tag name: esl-random-text

@ala-n
Copy link
Collaborator Author

ala-n commented Nov 16, 2023

Closed as moved to #2055

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
not ready for merge site Feature, enhancement or bug for demo site
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants