Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 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
93e5faa
chore: update solidos dependencies (dev: solid-logic@6.2.2-2 pane-reg…
github-actions[bot] Dec 4, 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,171 changes: 1,307 additions & 864 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
padding: 0 10px;
align-self: stretch;

solid-ui-combobox,
solid-ui-input {
solid-ui-combobox {
--solid-ui-input-border-color: var(--solid-ui-color-slate-200, #E2E8F0);
}

Expand All @@ -39,17 +38,19 @@
}

.access-grants-general-share {
display: flex;
align-items: center;
display: grid;
grid-template-columns: minmax(0, 1fr) 150px 120px;
align-items: start;
gap: 10px;
align-self: stretch;

.access-grants-general-share-content {
grid-column: 1;
grid-row: 1;
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 10px;
flex: 1 0 0;

.access-grants-general-share-icon {
display: flex;
Expand All @@ -73,30 +74,78 @@
flex-shrink: 0;
aspect-ratio: 1/1;

icon-lucide-globe {
.access-grants-general-share-icon-image {
width: 17.5px;
height: 17.5px;
flex-shrink: 0;
aspect-ratio: 1/1;
}

}

.access-grants-general-share-text {
flex: 1 1 auto;
min-width: 0;

.access-grants-general-share-text-title {
display: flex;
align-items: center;
gap: 4px;
color: var(--solid-ui-color-gray-900, #101828);
font-size: var(--solid-ui-font-size-sm, .875rem);
font-size: var(--solid-ui-font-size-xs, .75rem);
font-weight: 600;
}

.access-grants-general-share-text-description {
color: var(--solid-ui-color-gray-700, #364153);
font-size: var(--solid-ui-font-size-sm, .875rem);
.access-grants-general-info-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
padding: 13px;
flex: 0 0 42px;
border: 0;
border-radius: 50%;
color: var(--solid-ui-color-gray-600, #4A5565);
background: transparent;
cursor: pointer;

&:hover,
&:focus-visible {
color: var(--solid-ui-color-gray-900, #101828);
background: var(--solid-ui-color-slate-100, #F1F5F9);
}

icon-lucide-info {
width: 16px;
height: 16px;
}
}
}

}
}

.access-grants-general-share-entries {
grid-column: 2 / 4;
grid-row: 1;
display: flex;
flex-direction: column;
gap: 4px;
}

.access-grants-general-share-entry {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
}

.access-scope-select {
width: 150px;
min-width: 150px;
font-size: var(--solid-ui-font-size-xs, .75rem);
font-weight: 500;
}
}
}

Expand All @@ -108,10 +157,152 @@
font-weight: 500;
}

.access-role-readonly {
display: inline-flex;
width: 120px;
min-width: 120px;
box-sizing: border-box;
align-items: center;
min-height: 36px;
color: var(--solid-ui-color-gray-600, #4A5565);
font-size: var(--solid-ui-font-size-xs, .75rem);
font-weight: 500;
}

.access-role-select--compact {
display: block;
max-width: 100%;
--solid-ui-input-border-color: transparent;
margin-top: 0;
}

.access-grants-general-info-dialog {
position: fixed;
left: 0;
top: 0;
box-sizing: border-box;
width: min(320px, calc(100vw - 32px));
max-width: min(320px, calc(100vw - 32px));
max-height: calc(100vh - 24px);
margin: 0;
padding: 16px;
align-items: flex-start;
gap: 8px;
overflow: auto;
border: 1px solid var(--solid-ui-color-slate-200, #E2E8F0);
border-radius: 6px;
color: var(--solid-ui-color-gray-700, #364153);
font-size: var(--solid-ui-font-size-xs, .75rem);

&[open] {
display: flex;
}

p {
margin: 0;
flex: 1;
}

.access-grants-general-info-dialog-close {
display: inline-flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
padding: 13px;
flex: 0 0 42px;
border: 0;
border-radius: 50%;
color: var(--solid-ui-color-gray-900, #101828);
background: transparent;
cursor: pointer;

&:hover,
&:focus-visible {
background: var(--solid-ui-color-slate-100, #F1F5F9);
}

icon-lucide-x {
width: 16px;
height: 16px;
}
}

}

@media (max-width: 768px) {
.access-grants-general {
padding: 0;

.access-grants-general-share {
display: flex;
flex-direction: column;
gap: 8px;

.access-grants-general-share-content {
width: 100%;
flex: 0 0 auto;
}

.access-grants-general-share-entries {
width: 100%;
}

.access-grants-general-share-entry {
justify-content: flex-start;
flex-wrap: wrap;
}

.access-scope-select,
.access-role-select--general {
min-width: 0;
width: auto;
flex: 1 1 140px;
}
}
}

.access-grants-general-info-dialog {
width: calc(100vw - 24px);
max-width: none;
}
}
}

:host([layout='mobile']) {
.access-grants-general {
padding: 0;

.access-grants-general-share {
display: flex;
flex-direction: column;
gap: 8px;

.access-grants-general-share-content {
width: 100%;
flex: 0 0 auto;
}

.access-grants-general-share-entries {
width: 100%;
}

.access-grants-general-share-entry {
justify-content: flex-start;
flex-wrap: wrap;
}

.access-scope-select,
.access-role-select--general {
min-width: 0;
width: auto;
flex: 1 1 140px;
}
}
}

.access-grants-general-info-dialog {
width: calc(100vw - 24px);
max-width: none;
}
}
Loading
Loading