Skip to content

File Tree Diff: updates to UI (info and PR link) #551

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

Merged
merged 6 commits into from
Feb 24, 2025

Conversation

humitos
Copy link
Member

@humitos humitos commented Feb 20, 2025

This is what I understood we agreed on in our meetting.

Peek.2025-02-20.11-45.webm

ToDo

  • add tests
  • require build URL in data validation

This is what I understood we agreed on in our meetting.

* Closes #549
* Closes #548
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

Yea, this is way nicer 💯

It doesn't remove the PR build notification tho :D

@humitos
Copy link
Member Author

humitos commented Feb 20, 2025

It doesn't remove the PR build notification tho :D

Haha, that was on purpose. I didn't want to make that part of this change. However, I think #552 is a better solution.

@ericholscher
Copy link
Member

It doesn't remove the PR build notification tho :D

Haha, that was on purpose. I didn't want to make that part of this change. However, I think #552 is a better solution.

Only if we have it off by default? I really think avoiding notifications unless totally necessary is the right UX. The visual diff UI is a much better way to communicate that info.

@humitos
Copy link
Member Author

humitos commented Feb 20, 2025

Only if we have it off by default? I really think avoiding notifications unless totally necessary is the right UX. The visual diff UI is a much better way to communicate that info.

I can open another PR for this change but I need to understand what's the exact behavior you want here first.

Do you want to remove the notification " This page was created from a pull request build"...

Screenshot_2025-02-20_17-35-21

If you describe all the cases for the expected UX I can put a PR with that.

@humitos
Copy link
Member Author

humitos commented Feb 20, 2025

Also, take into account that we have a setting in the WebUI: https://github.com/readthedocs/readthedocs.org/blob/29a912f4aad30b83b29539cf4ab46c5f7721f040/readthedocs/projects/models.py#L262

that controls whether or not show notification on external versions. I'm not sure we want to ignore that setting.

@humitos
Copy link
Member Author

humitos commented Feb 20, 2025

Summarizing, I don't want to change the current behavior without considering all of that -- but I'm happy to talk and change the current behavior if it's not what we want.

@ericholscher
Copy link
Member

I want inline PR build notifications that are off by default, but can be enabled in the dashboard with that model field.

@humitos
Copy link
Member Author

humitos commented Feb 24, 2025

I want inline PR build notifications that are off by default, but can be enabled in the dashboard with that model field.

OK. That would need #552 and also to change our current default value in .org.

I will merge this PR and we can continue discussing that in another issue. I opened #557 for this.

@humitos humitos merged commit 41dddc7 into main Feb 24, 2025
4 checks passed
@humitos humitos deleted the humitos/filetreediff-ui branch February 24, 2025 10:33
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.

Visual diff: updates to the UI
2 participants