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

Timeline events improvements for displaying user and app details #4788

Merged
merged 14 commits into from
Apr 23, 2024

Conversation

Cloud11PL
Copy link
Member

@Cloud11PL Cloud11PL commented Apr 10, 2024

What type of PR is this?

  • 💅 Refactor
  • 🌟 Feature
  • 🔥 Bug Fix
  • 🔩 Maintenance
  • 🛠 Workflow CI/CD changes

Related Issues or Documents

  • closes #

Usage Instructions, Screenshots, Recordings

CleanShot 2024-04-12 at 10 27 33

CleanShot 2024-04-12 at 10 16 32

Have you written tests?

  • Yes!
  • No... here is why: Writing tests are mandatory, please replace this text with why test are not included in this PR

Description

  • Fixes an issue where avatar in history component shows incorrect initials
  • Adds url to Avatar component if it exists on user
  • Makes date format for timeline events consistent - the date will now have format of "X ... ago"
  • Notes made by Apps will now show avatar (if available) or fallback to initials

Copy link

changeset-bot bot commented Apr 10, 2024

🦋 Changeset detected

Latest commit: 63720d3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
saleor-dashboard Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot temporarily deployed to pr-4788 April 10, 2024 12:06 Destroyed
@Cloud11PL Cloud11PL force-pushed the MERX-276-fix-avatar-initials branch from 83b1c3c to 8177c39 Compare April 11, 2024 12:29
@github-actions github-actions bot temporarily deployed to pr-4788 April 11, 2024 12:32 Destroyed
@Cloud11PL Cloud11PL changed the title fix avatar display for history component Timeline events improvements for displaying user and app details Apr 12, 2024
@github-actions github-actions bot temporarily deployed to pr-4788 April 12, 2024 08:36 Destroyed
@github-actions github-actions bot temporarily deployed to pr-4788 April 12, 2024 09:00 Destroyed
@github-actions github-actions bot temporarily deployed to pr-4788 April 12, 2024 09:22 Destroyed
@Cloud11PL Cloud11PL marked this pull request as ready for review April 12, 2024 09:23
@Cloud11PL Cloud11PL requested a review from a team as a code owner April 12, 2024 09:23
@Cloud11PL Cloud11PL requested a review from a team April 15, 2024 10:37
poulch
poulch previously approved these changes Apr 15, 2024
@github-actions github-actions bot temporarily deployed to pr-4788 April 15, 2024 16:39 Destroyed
poulch
poulch previously approved these changes Apr 15, 2024
@github-actions github-actions bot temporarily deployed to pr-4788 April 17, 2024 14:27 Destroyed
@github-actions github-actions bot temporarily deployed to pr-4788 April 18, 2024 07:26 Destroyed
poulch
poulch previously approved these changes Apr 18, 2024
src/components/Timeline/TimelineNote.test.tsx Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to pr-4788 April 18, 2024 08:07 Destroyed
@github-actions github-actions bot temporarily deployed to pr-4788 April 18, 2024 10:13 Destroyed
poulch
poulch previously approved these changes Apr 18, 2024
@github-actions github-actions bot temporarily deployed to pr-4788 April 22, 2024 09:22 Destroyed
@github-actions github-actions bot temporarily deployed to pr-4788 April 22, 2024 09:49 Destroyed
@Cloud11PL Cloud11PL force-pushed the MERX-276-fix-avatar-initials branch from bc300de to b376105 Compare April 22, 2024 12:06
@github-actions github-actions bot temporarily deployed to pr-4788 April 22, 2024 12:08 Destroyed
@github-actions github-actions bot temporarily deployed to pr-4788 April 23, 2024 08:34 Destroyed
@Cloud11PL Cloud11PL requested a review from Droniu April 23, 2024 08:53
@Cloud11PL Cloud11PL force-pushed the MERX-276-fix-avatar-initials branch from 9652a06 to 973d88d Compare April 23, 2024 10:22
@github-actions github-actions bot temporarily deployed to pr-4788 April 23, 2024 10:23 Destroyed
);

// Assert
const avatar = container.querySelector("img");
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: using container is not recommended, you could query this img by role or by tag name easily

@github-actions github-actions bot temporarily deployed to pr-4788 April 23, 2024 11:00 Destroyed
@Cloud11PL Cloud11PL merged commit 31a73ea into main Apr 23, 2024
15 checks passed
@Cloud11PL Cloud11PL deleted the MERX-276-fix-avatar-initials branch April 23, 2024 12:22
poulch added a commit that referenced this pull request Apr 23, 2024
* fix avatar display for history component

* changeset

* fix app avatars; improve date format consistency

* fix fixtures

* improve changeset message

* cr fixes

* add timeline note tests

* fix tests

* AAA

* add comments in note test

* trigger

* migrate to strict

* trigger

---------

Co-authored-by: Paweł Chyła <chyla1988@gmail.com>
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