Skip to content

feat: better external link validation - #7494

Open
tdgao wants to merge 43 commits into
mainfrom
truman/better-external-link-validation
Open

tdgao wants to merge 43 commits into
mainfrom
truman/better-external-link-validation

Conversation

@tdgao

@tdgao tdgao commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Backend

  • Adds new external link validators and nags
  • Include details: { nags: ... } returned with save project validation error
  • Show specific validation errors in field helper text in frontend

Frontend

  • New project links settings page

@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Note

This changelog has been merged into the changelog for #7467

Pull request changelog

App

Added

Changed

Deprecated

Removed

Fixed

Security

Website

Added

Changed

Deprecated

Removed

Fixed

Security

Hosting

Added

Changed

Deprecated

Removed

Fixed

Security

@tdgao
tdgao added this pull request to stack #7468 September 11, 2026 22:32
@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

@tdgao

tdgao commented Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

/deploy

@modrinth-bot

Copy link
Copy Markdown
Member

🎉 Deployed labrinth (commit bf807814da7852994172140710d63d9d43b1a08e, build) onto the dev cluster.

@tdgao
tdgao marked this pull request as ready for review September 14, 2026 05:49
@tdgao
tdgao marked this pull request as draft September 14, 2026 05:50
@tdgao
tdgao force-pushed the truman/better-external-link-validation branch from 441c71c to 882a403 Compare September 14, 2026 19:02
@tdgao
tdgao marked this pull request as ready for review September 14, 2026 21:22
@tdgao
tdgao requested a review from aecsocket September 15, 2026 01:04
@tdgao
tdgao force-pushed the truman/better-external-link-validation branch from e1f0d1f to fa3c7c8 Compare September 15, 2026 01:13
@tdgao
tdgao force-pushed the truman/better-external-link-validation branch 2 times, most recently from 7542170 to 6eb0a40 Compare September 15, 2026 17:27
Comment thread apps/labrinth/Cargo.toml Outdated
}
}

pub fn validate_donation_platforms(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this isn't technically the correct way to do this, you should be looking up link_platforms in the db and fetching the full set of dono platforms from there. but also, I want to redo the entire link platforms system anyway so it's fine

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yea right now each platform's allowlist/validation logic is also explicitly defined for each platform type in code instead of db.

I'll leave it as is

Comment thread apps/labrinth/src/routes/v3/projects/validate.rs Outdated
Comment thread apps/labrinth/src/routes/v3/projects/validate.rs Outdated
@tdgao
tdgao force-pushed the truman/better-external-link-validation branch from 20b8d19 to 126de52 Compare September 15, 2026 19:29
Base automatically changed from truman/more-validator-fixes to main September 15, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants