Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

PermissionShield: make the permissions docs link configurable instead of hard-coding docs.meshery.io

未关闭 适合新手
#1,883 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@ReVuz 已经在做这个了。

开始于 2026年10月19日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
react, typescript
领域
frontend

调研方向

从 src/custom/permissions.tsx 中 PermissionShield / PermissionSessionContext 的缺少权限原因处开始,然后检查使用方如何渲染它。让使用方提供文档链接,并确保未提供链接或传入 null 时省略该链接。完成标准是:使用方可以提供自己的链接或将其隐藏,并且品牌化租户的爬取不再找到 Meshery 链接。

由索引模型根据 Issue 内容生成。

描述

Current Behavior

src/custom/permissions.tsx (the missing-permission reason rendered by PermissionShield / PermissionSessionContext) hard-codes a link to https://docs.meshery.io/reference/references/permissions/ (line 347 at master). Every consumer renders that link, including Layer5 Cloud on a white-labeled tenant's own custom domain (for example cloud.blowhorn.ai), where users must not see Meshery or Layer5 references.

Expected Behavior

The permissions documentation link is a prop (or context value) the consumer supplies. When the consumer does not supply one, the link is omitted rather than defaulting to the Meshery docs, or the consumer can explicitly pass null to hide it.

Context

Found by the branded-tenant crawl in layer5io/meshery-cloud (ui/e2e/branded-tenant-no-provider-brand.spec.ts), which fails on /identity/organizations for a custom-domain organization solely because of this link. Cloud will pass its own link on provider hosts and none on branded hosts once the prop exists.

主要语言
TypeScript
星标
140
派生
243
平均合并
5 天 10 小时
30 天内合并 PR
17

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

layer5io/sistent 的其他 Issue

查看 layer5io/sistent 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。