Skip to content

feat: Show generic avatar when there is no one#691

Open
matheusandre1 wants to merge 3 commits intoquarkiverse:mainfrom
matheusandre1:issue497
Open

feat: Show generic avatar when there is no one#691
matheusandre1 wants to merge 3 commits intoquarkiverse:mainfrom
matheusandre1:issue497

Conversation

@matheusandre1
Copy link
Copy Markdown
Contributor

@matheusandre1 matheusandre1 commented Dec 8, 2025

Closes: #497 done.

Show generic avatar when there is no one

@matheusandre1 matheusandre1 requested a review from a team as a code owner December 8, 2025 20:05
Copy link
Copy Markdown
Member

@mcruzdev mcruzdev left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this pull request @matheusandre1, I added a few comments. I think that the CI issue is related to the first comment

@mcruzdev mcruzdev linked an issue Dec 8, 2025 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 9, 2025

🚀 PR Preview for blog and docs ea4e7fe has been successfully built!

@matheusandre1
Copy link
Copy Markdown
Contributor Author

modifications made

@matheusandre1
Copy link
Copy Markdown
Contributor Author

matheusandre1 commented Dec 10, 2025

Would it be correct like this, or would I have to include the entire path from the roq-theme?

@matheusandre1
Copy link
Copy Markdown
Contributor Author

matheusandre1 commented Dec 18, 2025

I didn't identify any functionality for this, I had to implement it myself.

Copy link
Copy Markdown
Collaborator

@ia3andy ia3andy left a comment

Choose a reason for hiding this comment

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

Ok this is very close, you should instead of scanThemeAttachments name it scanResourceSiteAttachments and scan in:

  • if(roqProject.isRoqResourcesInRoot) roqProject.consumePathFromRoqResourceDir(config.publicDir()
  • visitRuntimeResources(config.publicDir())

No need to scan the static dir.

Also make sure to use a specific dir for example:
public/images/roq-default/default-avatar.svg

@matheusandre1
Copy link
Copy Markdown
Contributor Author

Can we merge this?

@ia3andy
Copy link
Copy Markdown
Collaborator

ia3andy commented Mar 24, 2026

After the the sanner pr

if (isIndex) {
attachments = new ArrayList<>();
if (isSiteIndex) {
// Support legacy static dir
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't we support static dir anymore ?

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.

Show generic avatar when there is no one

4 participants