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: story stat counter #613

Merged
merged 2 commits into from
Oct 25, 2023
Merged

feat: story stat counter #613

merged 2 commits into from
Oct 25, 2023

Conversation

50rayn
Copy link
Contributor

@50rayn 50rayn commented Oct 21, 2023

Description

I've introduced a new feature on the Home screen that displays the counts of stories, variants, and documents. This provides users with an at-a-glance overview of the available content, aiding in quick decision-making. This works on all examples. Because this affects all examples, I wanted to write a unit test in packages/histoire-app, but I didn't find any test command in this package. I don't think that is a good idea to write tests in an example project because it doesn't test behaviour in other examples, that's why I was searching for tests in historie-app.

As reference guides for writing tests i use:

Additional context

Preview of the feature:

  • Vue3
  • image
  • Vue3 Themed
    image
  • Svelte4
    image

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • If it's a new feature, provide a convincing reason to add it. Ideally, you should open a suggestion issue first and have it approved before working on it.
  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@codesandbox
Copy link

codesandbox bot commented Oct 21, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@stackblitz
Copy link

stackblitz bot commented Oct 21, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link

netlify bot commented Oct 21, 2023

Deploy Preview for histoire-examples-svelte3 ready!

Name Link
🔨 Latest commit ec37fb7
🔍 Latest deploy log https://app.netlify.com/sites/histoire-examples-svelte3/deploys/65391146f795c00008759de4
😎 Deploy Preview https://deploy-preview-613--histoire-examples-svelte3.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 configuration.

@netlify
Copy link

netlify bot commented Oct 21, 2023

Deploy Preview for histoire-controls ready!

Name Link
🔨 Latest commit ec37fb7
🔍 Latest deploy log https://app.netlify.com/sites/histoire-controls/deploys/65391146db895c00085ff9bb
😎 Deploy Preview https://deploy-preview-613--histoire-controls.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 configuration.

@netlify
Copy link

netlify bot commented Oct 21, 2023

Deploy Preview for histoire-site ready!

Name Link
🔨 Latest commit ec37fb7
🔍 Latest deploy log https://app.netlify.com/sites/histoire-site/deploys/653911461f14c00008352ae0
😎 Deploy Preview https://deploy-preview-613--histoire-site.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 configuration.

@netlify
Copy link

netlify bot commented Oct 21, 2023

Deploy Preview for histoire-examples-vue3 ready!

Name Link
🔨 Latest commit ec37fb7
🔍 Latest deploy log https://app.netlify.com/sites/histoire-examples-vue3/deploys/653911469b9a740008884a2a
😎 Deploy Preview https://deploy-preview-613--histoire-examples-vue3.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 configuration.

@Akryum
Copy link
Member

Akryum commented Oct 25, 2023

Thank you very much for this! 💚 I've reworked the design a little bit to be less "dramatic" and also support mobile.

@50rayn
Copy link
Contributor Author

50rayn commented Oct 25, 2023

Thanks a lot for the feedback. I'm glad to contribute to such a great project 🤗💚

@Akryum Akryum merged commit 0f23b42 into histoire-dev:main Oct 25, 2023
13 checks passed
@50rayn 50rayn deleted the feat/story-stats branch October 25, 2023 14:41
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.

None yet

2 participants