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

⚠️ Features broken on new issues (beta) #7856

Open
fregante opened this issue Oct 4, 2024 · 11 comments · Fixed by #7873, #7874 or #7876
Open

⚠️ Features broken on new issues (beta) #7856

fregante opened this issue Oct 4, 2024 · 11 comments · Fixed by #7873, #7874 or #7876
Labels
bug help wanted Please! ♥︎ Particularly useful features that everyone would love!

Comments

@fregante
Copy link
Member

fregante commented Oct 4, 2024

Description

I'm sure every isConversationList feature is currently broken on that page.

How to replicate the issue + URL

Test URLs:

The beta is enabled by organization. These three have it. You can spam issues on https://github.com/download-directory/download-directory.github.io/issues if necessary, I'll delete them once we're done. Or leave comments in download-directory/download-directory.github.io#141, better.

@fregante fregante added bug help wanted Please! ♥︎ Particularly useful features that everyone would love! labels Oct 4, 2024
@fregante fregante pinned this issue Oct 4, 2024
@fregante
Copy link
Member Author

fregante commented Oct 4, 2024

By the way, finally we have an autocomplete!

Screenshot 3

@fregante
Copy link
Member Author

More features are broken, like the label alignment

@fregante fregante reopened this Oct 11, 2024
@fregante
Copy link
Member Author

Bye quick-comment-hiding

Screenshot 28

@fregante
Copy link
Member Author

fregante commented Oct 15, 2024

These are features running on isIssueList and isSingleIssue

I'll check these off after verifying them, or with 👋 if they're no longer needed

Important features

Rest

  • comment-excess
  • hide-navigation-hover-highlight
  • keyboard-navigation
  • linkify-user-edit-history-popup
  • linkify-user-location
  • preview-hidden-comments
  • quick-mention
  • selection-in-new-tab
  • shorten-links
  • toggle-everything-with-alt

Done

  • jump-to-conversation-close-event
  • show-names
  • small-user-avatars
  • sticky-sidebar
  • table-input
  • reactions-avatars
  • scrollable-areas
  • prevent-link-loss
  • collapsible-content-button
  • embed-gist-inline
  • emphasize-draft-pr-label
  • linkify-user-labels
  • jump-to-conversation-close-event
  • avoid-accidental-submissions 👋
  • esc-to-cancel 👋
  • clean-conversation-headers 👋
  • prevent-comment-loss 👋
  • quick-comment-hiding 👋
  • bugs-tab
  • ci-link
  • clean-repo-tabs
  • clean-rich-text-editor
  • close-out-of-view-modals
  • command-palette-navigation-shortcuts
  • copy-on-y
  • esc-to-deselect-line
  • fit-textareas
  • hide-diff-signs
  • hide-user-forks
  • improve-shortcut-help
  • linkify-branch-references
  • linkify-code
  • linkify-line-numbers
  • more-dropdown-links
  • one-key-formatting
  • parse-backticks
  • profile-hotkey
  • quick-comment-edit
  • quick-new-issue
  • releases-tab
  • reload-failed-proxied-images
  • repo-avatars
  • repo-header-info
  • repo-wide-file-finder
  • show-whitespace
  • sort-conversations-by-update-time
  • tab-to-indent
  • unfinished-comments
  • user-local-time

@fregante
Copy link
Member Author

The list above has already been verified. Unless you see that the feature is no longer needed, you can assume they're not working. That would save time from having to build that table

@kovsu
Copy link
Member

kovsu commented Oct 28, 2024

Here has two avatar.

https://github.com/download-directory/download-directory.github.io/issues?q=is%3Apr

image

@fregante
Copy link
Member Author

cc @ToBinio #7924

@ToBinio
Copy link
Contributor

ToBinio commented Oct 28, 2024

@fregante could it be that GitHub is rolling out that feature?
cause for is:pr it also renders images without refined Github

should I open a PR and just fix it for is:pr or do you think it will come for normal issues too and the feature should just be disabled for the new view

@fregante
Copy link
Member Author

Uh, they did 😅

@fregante
Copy link
Member Author

We should hold off on implementing this one, their header layout is messy on mobile and I expect them to change it completely. Only fix it if it's a simple class change

@fregante
Copy link
Member Author

fregante commented Nov 7, 2024

For advanced features like close-as-unplanned, we have to use the UI on behalf of the user because we no longer have the good ol' form element 😒

For example in #7893 this meant opening the dropdown menu and simulating a click on the Edit item.

Here I'd expect the dropdown arrow to be hidden and a new custom button to be added. When the button is clicked, we show the arrow, open it, click "close as not planned", then click the new "close" button.

Screenshot

I wonder if it's just easier to do it via API and call triggerConversationUpdate (which is also likely broken on the new issue view), but I think that as long as every part here is selectable, it's actually not too difficult:

async function editReactComment({delegateTarget: editButton}: DelegateEvent<MouseEvent, HTMLButtonElement>): Promise<void> {
(editButton.nextElementSibling as HTMLButtonElement).click();
await delay(1); // Allow the dropdown to open
document
.activeElement! // The focus is now on the first item in the dropdown
.parentElement! // Select the list element
.querySelector('[aria-keyshortcuts="e"]')! // Find the edit item
.click();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment