Skip to content

Feat/access general - #888

Merged
SharonStrats merged 7 commits into
stagingfrom
feat/access-general
Oct 9, 2026
Merged

SharonStrats merged 7 commits into
stagingfrom
feat/access-general

Conversation

@SharonStrats

@SharonStrats SharonStrats commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

This PR implements the general access area. The public can only change to 'Viewer', while authenticated agent has all options for a role available.

I also found a funny problem with the combobox which also exists in profile-pane oddly enough. We were not able to reclick and pick another value if you change your mind before you save. So I just added an @click.

Here is how it looks
Screenshot 2026-10-09 at 8 54 11 PM
Needs this PR SolidOS/solid-logic#341 first

SharonStrats and others added 4 commits October 9, 2026 13:30
Prompt: tests were created by ai

Co-authored-by: GPT-5.4 Mini <gpt-5.4-mini@openai.com>
@SharonStrats
SharonStrats requested review from timea-solid and a balanced review from Copilot October 9, 2026 09:56
@SharonStrats SharonStrats self-assigned this Oct 9, 2026
@SharonStrats SharonStrats moved this to In review in SolidOS NLNet UI Oct 9, 2026
@SharonStrats SharonStrats linked an issue Oct 9, 2026 that may be closed by this pull request

Copilot AI left a comment

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.

🟡 Changes recommended

Mixed authorizations can be hidden, failed grants silently dropped, and directory styling cannot cross the shadow boundary.

3 open findings
What changed in this PR

Adds authenticated and public general-access controls to the sharing modal.

Changes:

  • Adds separate authenticated/public role selectors and persistence.
  • Excludes general grants from shared-user listings.
  • Reopens comboboxes on click and expands tests.
File Description
AccessControlModal.ts Implements general-access UI and saving.
AccessControlModal.styles.css Styles new controls and labels.
helpers.ts Adds URI and deduplication helpers.
Combobox.ts Reopens options when clicked.
access-control-modal.test.ts Tests general-access behavior.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/components/access-control-modal/AccessControlModal.ts
Comment thread src/components/access-control-modal/AccessControlModal.ts
Comment on lines +966 to 971
<span class="access-grants-directory-entry">
<!-- This renders inside the combobox shadow DOM, so the modal stylesheet cannot reach these icons.
If combobox supports a dedicated option icon hook, we can move this sizing there instead. -->
${this.renderDirectoryEntryIcon(entry)}
<span>${entry.label}</span>
</span>

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.

the comment was for the styles on the icons. I'm going to leave this as is for now as perhaps we will modify the combobox.

Prompt: Should I address the feedback about errors now, as I am
going to implement error handling later. If so please add a temporary fix.

Co-authored-by: GPT-5.4 Mini <gpt-5.4-mini@openai.com>
@SharonStrats
SharonStrats merged commit 625b78e into staging Oct 9, 2026
9 checks passed
@SharonStrats
SharonStrats deleted the feat/access-general branch October 9, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Sharing pane - General Access view

3 participants