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
8dfbba8
feat: preview single + bulk on browse
sharanyavinod May 20, 2026
81e963b
test: introduce tests for preview
sharanyavinod May 20, 2026
c145f03
chore: typo
sharanyavinod May 20, 2026
47c0903
Merge branch 'main' into bulk-publish
sharanyavinod May 20, 2026
eaf4ed3
Merge branch 'main' into bulk-publish
sharanyavinod May 21, 2026
4bf9c52
fix: copy preview urls
sharanyavinod May 21, 2026
6d05d09
Merge branch 'bulk-publish' of github-personal:adobe/da-live into bul…
sharanyavinod May 21, 2026
4920d9c
chore: cleanup
sharanyavinod May 21, 2026
d20fdb7
feat: publish on browse
sharanyavinod May 21, 2026
a508352
fix: align with action in edit page
sharanyavinod May 21, 2026
b1fd959
fix: make preview/publish non-blocking
sharanyavinod May 22, 2026
0bb394d
Merge branch 'main' into ew-pub
sharanyavinod May 22, 2026
e23b8bf
test: adapt to new structure
sharanyavinod May 22, 2026
00ac6b6
Merge branch 'ew-pub' of github-personal:adobe/da-live into ew-pub
sharanyavinod May 22, 2026
90cdd6c
chore: code cleanup
sharanyavinod May 22, 2026
1c6c29b
chore: autoclose toast in 5s
sharanyavinod May 22, 2026
c25faf2
Merge branch 'main' into ew-pub
sharanyavinod May 22, 2026
92e6088
fix: review comments
sharanyavinod May 28, 2026
b6d2a83
Merge branch 'main' into ew-pub
sharanyavinod May 28, 2026
d0f5808
chore: cleanup
sharanyavinod May 28, 2026
42ac8f7
Merge branch 'ew-pub' of github-personal:adobe/da-live into ew-pub
sharanyavinod May 28, 2026
22243c2
Merge branch 'main' into ew-pub
sharanyavinod Jun 1, 2026
217cc86
fix: improve publish ux
sharanyavinod Jun 1, 2026
fb25838
chore: code cleanup
sharanyavinod Jun 1, 2026
e272fc2
Merge branch 'main' into ew-pub
sharanyavinod Jun 8, 2026
cfddc33
Merge branch 'main' into ew-pub
sharanyavinod Jun 12, 2026
9054c88
Merge branch 'main' into ew-pub
sharanyavinod Jun 26, 2026
f73f238
Merge branch 'main' into ew-pub
sharanyavinod Jun 26, 2026
4e8ea4b
Merge branch 'main' into ew-pub
sharanyavinod Jun 26, 2026
789143d
chore: resolve conflicts
sharanyavinod Jun 26, 2026
4a9680a
Merge branch 'ew-pub' of github-personal:adobe/da-live into ew-pub
sharanyavinod Jun 26, 2026
073302c
fix: resolve conflicts + regressions
sharanyavinod Jun 26, 2026
b8b79cd
test: add e2es
sharanyavinod Jun 26, 2026
88122cb
fix:strip html
sharanyavinod Jun 26, 2026
656833c
Merge branch 'main' into ew-pub
sharanyavinod Jun 26, 2026
65be063
chore: adapt e2e selector
sharanyavinod Jun 26, 2026
44c7d34
Merge branch 'main' into ew-pub
sharanyavinod Jul 1, 2026
5cf7e7e
Merge branch 'main' into ew-pub
sharanyavinod Jul 6, 2026
6a833cd
fix: exclude link and media versioning
sharanyavinod Jul 6, 2026
148208a
style: update text case
sharanyavinod Jul 6, 2026
d2d2ab6
chore: cleanup
sharanyavinod Jul 6, 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
27 changes: 27 additions & 0 deletions blocks/browse/da-actionbar/da-actionbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,33 @@ button {
gap: var(--s2-spacing-75);
}

.da-action-bar .preview-button img,
.da-action-bar .publish-button img {
filter: brightness(0) invert(1);
}

.da-action-bar .preview-button.loading img,
.da-action-bar .publish-button.loading img {
display: none;
}

.da-action-bar .preview-button.loading::before,
.da-action-bar .publish-button.loading::before {
content: "";
display: block;
width: 14px;
height: 14px;
border: 2px solid rgb(255 255 255 / 40%);
border-top-color: #fff;
border-radius: 50%;
animation: ab-spin 0.8s linear infinite;
flex-shrink: 0;
}

@keyframes ab-spin {
to { transform: rotate(360deg); }
}

.da-action-bar.hide,
.da-action-bar .hide {
display: none;
Expand Down
34 changes: 32 additions & 2 deletions blocks/browse/da-actionbar/da-actionbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default class DaActionBar extends LitElement {
static properties = {
items: { attribute: false },
permissions: { attribute: false },
loading: { attribute: false },
isFavorite: { attribute: false },
isHlx6: { attribute: false },
_isCopying: { state: true },
Expand Down Expand Up @@ -102,6 +103,18 @@ export default class DaActionBar extends LitElement {
this.dispatchEvent(event);
}

handlePreview() {
const opts = { bubbles: true, composed: true };
const event = new CustomEvent('onpreview', opts);
this.dispatchEvent(event);
}

handlePublish() {
const opts = { bubbles: true, composed: true };
const event = new CustomEvent('onpublish', opts);
this.dispatchEvent(event);
}

async handleShare() {
const { items2Clipboard } = await import('../da-list/helpers/utils.js');
items2Clipboard(this.items);
Expand All @@ -122,6 +135,10 @@ export default class DaActionBar extends LitElement {
return this.permissions.some((permission) => permission === 'write');
}

get _canAemAction() {
return this._canWrite && this.items.some((item) => item.ext && item.ext !== 'link') && !this._isCopying;
}

get _canRename() {
if (!this._canWrite) return false;
const isFolder = !this.items[0]?.ext;
Expand All @@ -134,8 +151,7 @@ export default class DaActionBar extends LitElement {
}

get _canShare() {
const isFile = this.items.some((item) => item.ext && item.ext !== 'link');
return isFile && !this._isCopying;
return this.items.some((item) => item.ext && item.ext !== 'link') && !this._isCopying;
}

get currentAction() {
Expand Down Expand Up @@ -197,6 +213,20 @@ export default class DaActionBar extends LitElement {
${icon('delete')}
<span>Delete</span>
</button>
<button
@click=${this.handlePreview}
?disabled=${!!this.loading}
class="preview-button ${this._canAemAction ? '' : 'hide'} ${this.loading === 'preview' ? 'loading' : ''}">
<img src="/blocks/edit/img/S2_Icon_Preview_20_N.svg" alt="" aria-hidden="true"/>
<span>Preview</span>
</button>
<button
@click=${this.handlePublish}
?disabled=${!!this.loading}
class="publish-button ${this._canAemAction ? '' : 'hide'} ${this.loading === 'publish' ? 'loading' : ''}">
<img src="/blocks/edit/img/S2_Icon_Publish_20_N.svg" alt="" aria-hidden="true"/>
<span>Publish</span>
</button>
<button
@click=${this.handleShare}
class="share-button ${this._canShare ? '' : 'hide'}">
Expand Down
32 changes: 32 additions & 0 deletions blocks/browse/da-list/da-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,29 @@ da-list-item.is-expanded::after {
filter: brightness(0) invert(1);
}

.da-aem-results-btn {
position: fixed;
bottom: 20px;
right: 24px;
z-index: 400;
height: 36px;
padding: 0 16px;
border-radius: 18px;
border: none;
background: var(--s2-blue-800);
color: #fff;
font-size: 14px;
font-family: var(--body-font-family);
cursor: pointer;
filter: drop-shadow(rgb(0 0 0 / 20%) 0 2px 6px);
white-space: nowrap;
}

.da-aem-results-btn:hover {
background: var(--s2-blue-900);
}


/* Drop conflicts dialog */
.da-drop-conflicts {
margin: 8px 0 0;
Expand All @@ -334,4 +357,13 @@ da-list-item.is-expanded::after {
display: flex;
align-items: center;
gap: var(--s2-spacing-75);
}

.da-list-note-excluded {
display: inline-block;
text-transform: lowercase;
}

.da-list-note-excluded::first-letter {
text-transform: uppercase;
}
Loading
Loading