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

fix: Metadata UI issues #4069

Merged
merged 12 commits into from
Jun 20, 2024
Merged

fix: Metadata UI issues #4069

merged 12 commits into from
Jun 20, 2024

Conversation

novakzaballa
Copy link
Contributor

@novakzaballa novakzaballa commented May 31, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Related with: #3986

  1. This Tooltip doesn't make any sense to me. I don't think it's necessary as we have the description and link to the docs below.

Now

Screenshot 2024-05-31 at 12 49 22 PM
  1. I'm not sure what these null values are. Maybe this is old data.

I couldn't reproduce this issue; perhaps it was because the data at that time was correct.

  1. Requeried -> Required
Screenshot 2024-05-31 at 12 51 01 PM
  1. Be more descriptive in locations where metadata should be shown, guiding users to where they can configure the metadata.
Screenshot 2024-05-31 at 12 50 33 PM

How did you test this code?

  • Create metadata for some entity

Copy link

vercel bot commented May 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2024 10:11pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2024 10:11pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Jun 17, 2024 10:11pm

Copy link
Contributor

github-actions bot commented May 31, 2024

Uffizzi Preview deployment-52502 was deleted.

@novakzaballa novakzaballa marked this pull request as ready for review May 31, 2024 16:59
@novakzaballa novakzaballa linked an issue May 31, 2024 that may be closed by this pull request
@matthewelwell
Copy link
Contributor

This looks a lot better but I still think the 'Metadata' section when creating / editing an entity can be improved. Specifically for Segments and Features. I think we should:

  1. Add an option to show / hide the metadata
  2. When there are no metadata fields for an entity type, we should perhaps display something beneath the header (perhaps instead of the tooltip).

With the above 2 suggestions, I think we could end with something like the following:

image

Generally, I am also concerned regarding segments that, if the metadata gets too large, then we are overtaking the 'Rules' tab with the metadata which feels wrong. Should we add a new tab to the Segment modal for the metadata instead?

Also, we need to make sure that we're paying attention to these things on creation of entities. For example, I just noticed that it's not currently possible to create an environment which has required metadata. We should check if the clone behaviour works correctly (and decide whether it should be included in the clone behaviour).

@matthewelwell
Copy link
Contributor

matthewelwell commented Jun 13, 2024

@novakzaballa this is better, but there are still some issues. I've fixed a couple of typos and added a link to the project settings in a commit here.

I'm also still not happy with the approach for showing metadata for segments. I think it should be it's own tab. Can we add that please?

@novakzaballa
Copy link
Contributor Author

@novakzaballa this is better, but there are still some issues. I've fixed a couple of typos and added a link to the project settings in a commit here.

I'm also still not happy with the approach for showing metadata for segments. I think it should be it's own tab. Can we add that please?

@matthewelwell I added the Tab

@matthewelwell
Copy link
Contributor

Thanks for adding the tab, I think that's much better. I've added a few more pieces of feedback below:

This shouldn't be collapsed by default, or even collapsible at all really now that it's in its own tab

image

When creating a new segment, this icon indicating that something has changed looks like it's something in the metadata tab that needs attention. Can this icon be aware of the tab in which something has changed?

image

I like that this icon shows when a specific metadata field has been edited, but it can be removed when just switching between the 2 tabs. If this is difficult to resolve, we can just remove it entirely.

image

@matthewelwell matthewelwell removed their request for review June 14, 2024 13:05
@novakzaballa
Copy link
Contributor Author

Thanks for adding the tab, I think that's much better. I've added a few more pieces of feedback below:

This shouldn't be collapsed by default, or even collapsible at all really now that it's in its own tab

image When creating a new segment, this icon indicating that something has changed looks like it's something in the metadata tab that needs attention. Can this icon be aware of the tab in which something has changed? image I like that this icon shows when a specific metadata field has been edited, but it can be removed when just switching between the 2 tabs. If this is difficult to resolve, we can just remove it entirely. image

I have already made the changes.

@matthewelwell
Copy link
Contributor

Looks like there's still an issue regarding the icon displaying whether something has changed. When I edit the metadata, the icon shows that the rules have changed.

https://www.loom.com/share/07667735cdf041d4b1cc4c6ac08c1e1e?sid=f76cb099-0c77-4e15-8f47-1d30525f97cd

Also, it's odd to me that, when creating a segment, the metadata tab has an icon indicating that it's been changed, but the Basic Configuration tab doesn't. My preference would be that, on create, we don't show the icon at all. On edit, we show the icon only on the tabs that has/have been edited.

image

@novakzaballa
Copy link
Contributor Author

Also, it's odd to me that, when creating a segment, the metadata tab has an icon indicating that it's been changed, but the Basic Configuration tab doesn't. My preference would be that, on create, we don't show the icon at all. On edit, we show the icon only on the tabs that has/have been edited.

Ok, I made the last changes.

@novakzaballa novakzaballa added this pull request to the merge queue Jun 20, 2024
Merged via the queue into main with commit 36c8bb3 Jun 20, 2024
21 checks passed
@novakzaballa novakzaballa deleted the fix/metadata-ui-issues branch June 20, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metadata issues
2 participants