-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add AUTHORIZED_FETCH disclaimer to Actor Profile error messages #19
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
abad02c
feat: add AUTHORIZED_FETCH disclaimer to Actor Profile error messages
akhileshthite c9fab37
feat: add UI for other activity types
akhileshthite 7ebf7e5
style: add border and padding to error message component
akhileshthite 1bf9527
feat (#18): dynamically update page title with actor's username in pr…
akhileshthite 5f8aef7
feat (#16): improve colorblind theme menu accessibility with optgroup
akhileshthite 50e05a8
fix: restore missing href assignment for getObjectPage
akhileshthite bead186
fix: ensure consistent and recognizable title format for the reader p…
akhileshthite e15c7f8
refactor: change pUserName element from 'div' to 'a' for hyperlink fu…
akhileshthite File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,8 @@ | |
font-size: 0.875rem; | ||
text-align: center; | ||
} | ||
|
||
.other-activity { | ||
color: var(--rdp-text-color); | ||
font-size: 16px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,6 +170,7 @@ class DistributedActivity extends HTMLElement { | |
displayUnimplemented () { | ||
const message = `Activity type ${this.activityType} is not implemented yet.` | ||
const messageElement = document.createElement('p') | ||
messageElement.classList.add('other-activity') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
messageElement.textContent = message | ||
this.appendChild(messageElement) | ||
} | ||
|
@@ -220,13 +221,15 @@ class DistributedActivity extends HTMLElement { | |
const to = this.activityData.object | ||
const message = `New follow request from ${from} to ${to}` | ||
const messageElement = document.createElement('p') | ||
messageElement.classList.add('other-activity') | ||
messageElement.textContent = message | ||
this.appendChild(messageElement) | ||
} | ||
|
||
displayLikeActivity () { | ||
const message = `New like on ${this.activityData.object}` | ||
const messageElement = document.createElement('p') | ||
messageElement.classList.add('other-activity') | ||
messageElement.textContent = message | ||
this.appendChild(messageElement) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,28 +51,37 @@ class ThemeSelector extends HTMLElement { | |
const select = document.createElement('select') | ||
select.id = 'theme-select' | ||
|
||
// Create and append the options | ||
const options = [ | ||
{ value: 'light', text: 'Light' }, | ||
{ value: 'dark', text: 'Dark' }, | ||
{ value: '', text: '👁️ Color Blind Themes 👁️', disabled: true }, | ||
// Create and append the standard theme options | ||
const standardGroup = document.createElement('optgroup') | ||
standardGroup.label = 'Standard Themes'; | ||
['light', 'dark'].forEach(text => { | ||
const option = document.createElement('option') | ||
option.value = text | ||
option.textContent = text.charAt(0).toUpperCase() + text.slice(1) | ||
standardGroup.appendChild(option) | ||
}) | ||
select.appendChild(standardGroup) | ||
|
||
// Create and append the colorblind theme options within an optgroup | ||
const colorBlindGroup = document.createElement('optgroup') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
colorBlindGroup.label = 'Color Blind Themes'; | ||
[ | ||
{ value: 'deuteranomaly', text: 'Deuteranomaly (Green-Weak)' }, | ||
{ value: 'protanomaly', text: 'Protanomaly (Red-Weak)' }, | ||
{ value: 'deuteranopia', text: 'Deuteranopia (Green-Blind)' }, | ||
{ value: 'protanopia', text: 'Protanopia (Red-Blind)' }, | ||
{ value: 'tritanopia', text: 'Tritanopia (Blue-Blind)' }, | ||
{ value: 'tritanomaly', text: 'Tritanomaly (Blue-Weak)' }, | ||
{ value: 'achromatopsia', text: 'Achromatopsia (All-Color-Blind)' } | ||
] | ||
|
||
// Create and append the options | ||
options.forEach(({ value, text }) => { | ||
].forEach(({ value, text }) => { | ||
const option = document.createElement('option') | ||
option.value = value | ||
option.textContent = text | ||
select.appendChild(option) | ||
colorBlindGroup.appendChild(option) | ||
}) | ||
|
||
select.appendChild(colorBlindGroup) | ||
|
||
// Append the select & style to the template's content | ||
template.content.appendChild(select) | ||
template.content.appendChild(style) | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed? Could we add it back? I find it useful to be able to navigate to accounts on their native web url.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added back.
It was a mistake.