Repository navigation
netiquette - Improve reliability - #9900
Conversation
| <a href={buildRepoUrl('discussions/new/choose')}>new discussion</a> | ||
| {/if} | ||
| instead of leaving a comment here. | ||
| {/if} |
There was a problem hiding this comment.
The message now is shown even if issues and discussions are disabled.
| } | ||
| </script> | ||
|
|
||
| {#if pageDetect.isDraftPR() && !isOwnConversation()} |
There was a problem hiding this comment.
The good part of this PR is that now all the logic is mutually exclusive and self-contained. This helped me simplify the logic and improve it.
For example we can now show "closed long ago" on PR Files. It was always possible, but the extensive logic was never updated as it was spread out.
| </script> | ||
|
|
||
| {#if pageDetect.isDraftPR() && !isOwnConversation()} | ||
| <div class={flashClass}> |
There was a problem hiding this comment.
Note that this no longer uses "Banner". With all the changes, we only have the background and icon color left, everything else is replicable via classes.
|
|
||
| void features.add(import.meta.url, { | ||
| exclude: [ | ||
| isRefinedGitHubRepo, |
There was a problem hiding this comment.
- Restore this in the svelte component
| </script> | ||
|
|
||
| <TimelineItem> | ||
| <Banner classes={[revealed ? 'flash-error' : 'rgh-bg-none']} icon={InfoIcon}> |
There was a problem hiding this comment.
rgh-netiquette uses a completely different style, it exclusively shares AncientIssueText now
| {#if isPopular()} | ||
| {#await userIsModerator() then isModerator} | ||
| {#if !isModerator} | ||
| <div class={flashClass}> | ||
| <DomChef as={FlameIcon} /> | ||
| <span>This issue is highly active. Reconsider commenting unless you | ||
| have read all the comments and have something to add.</span> | ||
| </div> | ||
| {/if} | ||
| {/await} | ||
| {/if} | ||
| {#if !isRefinedGitHubRepo()} | ||
| {#await getCloseDate() then date} |

netiquette- Restore support for the PR Files tab #9897Changes
netiquetteOld issue: https://togithub.com/facebook/react/issues/227
Popular issue: https://togithub.com/facebook/react/issues/13991
Old and popular issue: https://togithub.com/react/react/issues/28313
Old PR: https://togithub.com/facebook/react/pull/209
Draft PR: https://togithub.com/react/react/pull/19377
Draft PR files: https://togithub.com/react/react/pull/19377/files
netiquetteOld issue: #3076
Old PR: #159