Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
1808c84
give dialog an accessible title
SharonStrats Dec 3, 2026
f538391
exit advanced dialog
SharonStrats Dec 3, 2026
2c72f64
add a owner error check and improve error code
SharonStrats Dec 3, 2026
9efe6bc
if access to is present all text should be shown
SharonStrats Dec 3, 2026
64ea74e
add layout to use in access
SharonStrats Dec 3, 2026
213d9e4
mobile is 768
SharonStrats Dec 3, 2026
f64b217
Handle advanced in general access
SharonStrats Dec 4, 2026
0d23c63
General access advanced plus mobile
SharonStrats Dec 4, 2026
89be396
chore: update solidos dependencies (dev: solid-logic@6.2.2-2 pane-reg…
github-actions[bot] Dec 4, 2026
a18b692
Add axe
SharonStrats Dec 4, 2026
f51c4b1
Address PR feedback
SharonStrats Dec 4, 2026
56ceaef
accessibility
SharonStrats Dec 4, 2026
17fed02
chore: update solidos dependencies (dev: solid-logic@6.2.2-2 pane-reg…
github-actions[bot] Dec 4, 2026
8e2ba5b
Enhance access control handling and context updates
SharonStrats Dec 4, 2026
19f7574
Enhance access control handling and context updates
SharonStrats Dec 4, 2026
360325f
Refactor access control logic in AccessControlModal
SharonStrats Dec 4, 2026
669c88e
Ignore refresh results from obsolete resources or modal lifecycles, a…
SharonStrats Dec 4, 2026
c4583d3
chore: update solidos dependencies (dev: solid-logic@6.2.2-2 pane-reg…
github-actions[bot] Dec 4, 2026
b390ee7
Refactor access control logic and update styles
SharonStrats Dec 4, 2026
c57baea
chore: update solidos dependencies (dev: solid-logic@6.2.2-2 pane-reg…
github-actions[bot] Dec 4, 2026
c32194d
Deal with varying conditional statements
SharonStrats Dec 4, 2026
6b3d10c
Update access control modal to handle mixed permissions
SharonStrats Dec 4, 2026
54ed16c
Preserve mixed ACL authorization identities
SharonStrats Dec 4, 2026
a7e0379
update versions
SharonStrats Dec 4, 2026
974fd5f
chore: update solidos dependencies (dev: solid-logic@6.2.2-3 pane-reg…
github-actions[bot] Dec 4, 2026
e695cbb
Refactor access control logic for better clarity
SharonStrats Dec 4, 2026
4d58f9e
harden ACL editing and responsive layout
SharonStrats Dec 5, 2026
7eb4294
Change role from 'Viewer' to 'Mixed permissions'
SharonStrats Dec 5, 2026
a8446a2
Change some to every for owner access check
SharonStrats Dec 5, 2026
932618a
address pr feedback
SharonStrats Dec 5, 2026
15676ee
Refactor hasOwnerAccess access control logic
SharonStrats Dec 5, 2026
88843ec
chore: update solidos dependencies (dev: solid-logic@6.2.2-3 pane-reg…
github-actions[bot] Dec 5, 2026
bd90bae
Refactor access control logic for draft and scope checks
SharonStrats Dec 5, 2026
2d70b69
Update access entries to handle container check
SharonStrats Dec 5, 2026
bc26e7a
assign comp scopes before checking conditional overlap
SharonStrats Dec 5, 2026
eed69e9
Refactor hasOwnerAccess logic for clarity
SharonStrats Dec 5, 2026
bde6235
Improve validation logic in save process
SharonStrats Dec 5, 2026
6da3fd5
Refactor access control logic and update labels
SharonStrats Dec 5, 2026
2fe89d8
chore: update solidos dependencies (dev: solid-logic@6.2.2-3 pane-reg…
github-actions[bot] Dec 5, 2026
c25491f
Refactor AccessControlModal and FileExplorerHeaderControls
SharonStrats Dec 5, 2026
9622358
address feedback
SharonStrats Dec 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,231 changes: 1,337 additions & 894 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@
"escape-html": "^1.0.3",
"lit": "^3.3.3",
"mime-types": "^3.0.2",
"pane-registry": "5.1.3-2",
"pane-registry": "5.1.3-3",
"rdflib": "2.4.1",
"solid-logic": "6.2.2-2",
"solid-logic": "6.2.2-3",
"solid-namespace": "^0.5.4",
"uuid": "^14.0.0"
},
Expand All @@ -141,6 +141,7 @@
"@types/node": "^24.13.2",
"@typescript-eslint/parser": "^8.59.3",
"@vitest/coverage-v8": "^4.0.18",
"axe-core": "^4.14.1",
"concurrently": "^10.0.3",
"eslint": "^9.39.4",
"eslint-import-resolver-typescript": "^4.4.4",
Expand All @@ -166,7 +167,8 @@
"unplugin-icons": "^23.0.1",
"vite": "^8.0.16",
"vite-plugin-lit-css": "^3.0.0",
"vitest": "^4.0.18"
"vitest": "^4.0.18",
"vitest-axe": "^0.1.0"
},
"optionalDependencies": {
"fsevents": "*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@
}
}
}




.access-role-select {
display: block;
max-width: 100%;
Expand All @@ -168,3 +166,19 @@
}

}

@media (max-width: 768px) {
.access-grants-form-main {
flex-direction: column;
}

.access-grants-form-main .access-grants-input,
.access-grants-form-main .access-role-select--top {
box-sizing: border-box;
width: 100%;
}

.access-grants-form-main .access-role-select--top {
margin-top: 0;
}
}
4 changes: 4 additions & 0 deletions src/components/access-control-modal/AccessControlAddAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export default class AccessControlAddAccess extends WebComponent {
@query('.access-role-select--top')
private accessor roleCombobox: HTMLElement & { value?: string } | null = null

public focusAdvancedToggle () {
this.renderRoot.querySelector<HTMLButtonElement>('.access-control-advanced-toggle')?.focus()
}

protected updated (changedProperties: PropertyValues<this>) {
super.updated(changedProperties)

Expand Down
20 changes: 12 additions & 8 deletions src/components/access-control-modal/AccessControlErrors.styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,33 @@

li {
display: grid;
grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
align-items: baseline;
gap: 6px;
gap: 4px;
min-width: 0;
color: var(--solid-ui-color-red-600, #be2e48);
font-size: var(--solid-ui-font-size-sm, .875rem);
line-height: 1.4;
}

.access-control-save-error-label {
.access-control-save-error-detail {
font-weight: 500;
min-width: 0;
overflow-wrap: anywhere;
}

.access-control-save-error-detail {
.access-control-save-error-message {
min-width: 0;
overflow-wrap: anywhere;
}
}

@media (max-width: 600px) {
.access-control-save-errors li {
grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
@media (max-width: 768px) {
.access-control-save-errors {
gap: 10px;

li {
gap: 6px;
font-size: var(--solid-ui-font-size-xs, .75rem);
}
}
}
}
35 changes: 23 additions & 12 deletions src/components/access-control-modal/AccessControlErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,43 @@ export default class AccessControlErrors extends WebComponent {
: 'resource'
}

private getErrorDetail (error: AccessSaveError): string | undefined {
switch (error.action) {
case 'grant':
return `${error.label}: Could not grant ${error.role ?? 'access'} for ${error.scope ? this.getScopeLabel(error.scope) : 'resource'}`
case 'revoke':
return `${error.label}: Could not remove access for ${error.scope ? this.getScopeLabel(error.scope) : 'resource'}`
case 'reset':
return 'Could not reset sharing'
case 'validation':
return undefined
default:
return 'Could not save access changes'
}
}

protected render () {
if (!this.errors.length) {
return html``
}

const validationOnly = this.errors.every(error => error.action === 'validation')
return html`
<solid-ui-error-state
title="Some access changes could not be saved"
message=${this.successfulChangesRefreshed
title=${validationOnly ? 'Access changes not saved' : 'Some access changes could not be saved'}
message=${validationOnly
? 'Update the access settings and try again.'
: this.successfulChangesRefreshed
? 'Any successful changes are shown above. The list below shows only the changes that failed. Close this dialog and reopen it if you want to try again.'
: 'Some changes may have been saved, but we could not refresh the Shared with list. The list below shows only the changes that failed. Close this dialog and reopen it if you want to try again.'}
@close=${this.onClose}
>
<ul class="access-control-save-errors">
${this.errors.map(error => html`
<li>
<span class="access-control-save-error-label">${error.label}</span>
<span class="access-control-save-error-detail">
${error.action === 'grant'
? `Could not grant ${error.role ?? 'access'} for ${error.scope ? this.getScopeLabel(error.scope) : 'resource'}`
: error.action === 'revoke'
? `Could not remove access for ${error.scope ? this.getScopeLabel(error.scope) : 'resource'}`
: error.action === 'reset'
? 'Could not reset sharing'
: 'Could not save access changes'}
</span>
${this.getErrorDetail(error)
? html`<span class="access-control-save-error-detail">${this.getErrorDetail(error)}</span>`
: ''}
<span class="access-control-save-error-message">${error.message}</span>
</li>
`)}
Expand Down
Loading
Loading