Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs search faq #781

Merged
merged 225 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
225 commits
Select commit Hold shift + click to select a range
fb70491
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 7, 2025
a1bd9f9
chore: added webhook-type for slack-github-action
asthabh23 Jan 7, 2025
33ddbcf
Merge pull request #734 from adobe/issue-733
trieloff Jan 7, 2025
df6edc5
feat: blog list page design
asthabh23 Jan 7, 2025
5e0e854
chore: blog page css and fixing lint issues
asthabh23 Jan 7, 2025
d0996c2
chore: css updates for layout
asthabh23 Jan 7, 2025
a88d81b
chore: update CTA button style
asthabh23 Jan 7, 2025
8ab3025
Merge pull request #736 from adobe/issue-733
asthabh23 Jan 7, 2025
f600c24
chore: updated heading levels for the article
asthabh23 Jan 7, 2025
522ddd0
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 7, 2025
74c29e2
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 8, 2025
3d1cf8d
Merge pull request #737 from adobe/blog-list-page
asthabh23 Jan 8, 2025
f6e4c04
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 8, 2025
4ade8ad
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 8, 2025
d8d3d94
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 8, 2025
0737015
feat: cwv perf chart (#695)
kptdobe Jan 9, 2025
f224278
chore: major lint
fkakatie Jan 9, 2025
2905900
Merge pull request #739 from adobe/lint
fkakatie Jan 9, 2025
34737ce
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 10, 2025
5eef2ea
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 10, 2025
0a96266
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 10, 2025
92f8f2c
ciu(github): fix branch name pattern
trieloff Jan 10, 2025
5af96a3
ci(GitHub): fix conditions for pr trigger
trieloff Jan 10, 2025
fdbdb2c
fix(deps): update dependency @adobe/rum-distiller to v1.15.0
renovate[bot] Jan 10, 2025
dc44e9d
ci(GitHub): update import maps workflow to use correct branch referen…
trieloff Jan 10, 2025
75da750
59;5uMerge branch 'main' into r-adobe-rum-distiller
trieloff Jan 10, 2025
f177130
chore(oversight): update import maps
github-actions[bot] Jan 10, 2025
3cb78c6
ci(GitHub): enhance import maps workflow with pull request permission…
trieloff Jan 10, 2025
d977cd3
Merge branch 'r-adobe-rum-distiller' of https://github.com/adobe/heli…
trieloff Jan 10, 2025
64f493a
ci(GitHub): improve import maps update workflow to prevent empty commits
trieloff Jan 10, 2025
d1eb816
Revert "chore(oversight): update import maps"
trieloff Jan 10, 2025
422c22d
chore(oversight): update import maps
github-actions[bot] Jan 10, 2025
f7a74d6
ci(GitHub): refactor import maps update workflow to format test URL i…
trieloff Jan 10, 2025
e9d6ccf
Merge branch 'r-adobe-rum-distiller' of https://github.com/adobe/heli…
trieloff Jan 10, 2025
9fac836
fix(workflow): update test URL in import maps update workflow to incl…
trieloff Jan 10, 2025
ab9354e
chore(deps): update dependency @babel/eslint-parser to v7.26.5
renovate[bot] Jan 10, 2025
f4a0b96
chore(oversight): update import maps
github-actions[bot] Jan 10, 2025
705199d
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 11, 2025
9ce9e5c
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 12, 2025
61eaaa3
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 13, 2025
0a5ed7d
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 13, 2025
1613bef
Merge pull request #743 from adobe/r-adobe-rum-distiller
trieloff Jan 13, 2025
032b19e
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 14, 2025
c25a16e
fix: simplify Y labelling (#740)
kptdobe Jan 14, 2025
e1e320b
fix: wrong color for CLS
kptdobe Jan 14, 2025
3306129
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 14, 2025
453a537
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 14, 2025
5c3ee5e
bug: deselecting a checkpoint breaks the dashboard in certain scenarios
vdua Jan 14, 2025
689cc85
trivial: removing accidental insertion of datachunks to window
vdua Jan 14, 2025
afacdc7
fix(rum): use new bundles domain (#749)
maxakuru Jan 14, 2025
2b48a74
bug: fixing the deselcting checkpoint issue in rum explorer as well
vdua Jan 15, 2025
825f08c
Merge pull request #748 from vdua/deselect-checkpoint
langswei Jan 15, 2025
458b1c8
fix(releases): display infrastructure changes
trieloff Jan 15, 2025
b32fe57
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 15, 2025
29eafb2
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 15, 2025
e8d690b
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 15, 2025
5857c54
fix: broken top margins
davidnuescheler Jan 15, 2025
f3ec000
Merge pull request #750 from adobe/dangerous-releases
trieloff Jan 15, 2025
f729e25
Merge pull request #751 from adobe/fix-margin
davidnuescheler Jan 15, 2025
a803208
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 15, 2025
4717beb
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 16, 2025
7b51730
fix: cwv perf tooltip
kptdobe Jan 16, 2025
edadfb0
chore(deps): update dependency lint-staged to v15.4.1
renovate[bot] Jan 16, 2025
415b8d6
fix(deps): update dependency @adobe/rum-distiller to v1.16.0
renovate[bot] Jan 16, 2025
00f50d3
chore(oversight): update import maps
github-actions[bot] Jan 16, 2025
985b0c3
feat(oversight): help for facets in explorer.html view
asthabh23 Jan 17, 2025
ab48967
feat(explorer): help for facets in explorer.html view
asthabh23 Jan 17, 2025
0f1a9ac
feat(oversight): add facet for enter-target
trieloff Jan 17, 2025
b34c4b3
Merge pull request #753 from adobe/r-adobe-rum-distiller
trieloff Jan 17, 2025
130fd33
fix(lib-franklin): bump rum-js version to 2.10.0
trieloff Jan 17, 2025
b660c74
fix: add ams facet (#759)
maxakuru Jan 17, 2025
35ac3f1
feat(rum): use new beta version of rum enhancer
trieloff Jan 17, 2025
87538b4
fix(rum): use newer beta version
trieloff Jan 17, 2025
e1e9b44
Merge pull request #761 from adobe/rum-enhancer-beta
trieloff Jan 18, 2025
f661cc4
chore: revert updates from rum-explorer
asthabh23 Jan 20, 2025
943486d
chore: resolving merge conflict
asthabh23 Jan 20, 2025
1fd736e
chore: revert updates from rum-explorer
asthabh23 Jan 20, 2025
b055e4b
chore: layout fix
asthabh23 Jan 20, 2025
478056a
chore(oversight): replicating help feature in all views
asthabh23 Jan 20, 2025
1d491f8
fix: tag
asthabh23 Jan 20, 2025
aedb9f1
Merge pull request #756 from adobe/facets-help
asthabh23 Jan 20, 2025
15add77
fix(deps): update dependency @adobe/rum-distiller to v1.16.1
renovate[bot] Jan 20, 2025
29f8f63
Merge branch 'main' into r-babel-eslint-parser
trieloff Jan 20, 2025
d0c1627
chore(oversight): update import maps
github-actions[bot] Jan 20, 2025
ab29f31
Merge pull request #744 from adobe/r-babel-eslint-parser
trieloff Jan 20, 2025
6d71cf3
Merge pull request #762 from adobe/r-adobe-rum-distiller
trieloff Jan 20, 2025
d52f26d
Merge pull request #752 from adobe/r-lint-staged
trieloff Jan 20, 2025
41566a9
chore(deps): update dependency stylelint to v16.13.2
renovate[bot] Jan 20, 2025
668ecdd
Merge pull request #745 from adobe/r-stylelint
trieloff Jan 20, 2025
574662c
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 20, 2025
10a3beb
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 21, 2025
5cabe3f
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 22, 2025
b8cdf25
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 23, 2025
de9c17f
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 24, 2025
198a5f3
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 27, 2025
3c19bd7
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 27, 2025
f58c340
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 28, 2025
efddec8
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 28, 2025
5ccd1b6
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 28, 2025
9fb07a9
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 28, 2025
1f33008
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 28, 2025
a7ace5e
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 28, 2025
4296751
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 28, 2025
fac7ac8
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 29, 2025
9ca9297
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 29, 2025
42c6278
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 29, 2025
c363276
fix: facet filtering in safari
shsteimer Jan 29, 2025
7d84e21
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 30, 2025
508c3fe
fix(deps): update dependency @adobe/rum-distiller to v1.16.2
renovate[bot] Jan 31, 2025
56dbd8f
chore(oversight): update import maps
github-actions[bot] Jan 31, 2025
46bd567
chore(docs): update admin API docs [skip ci]
invalid-email-address Jan 31, 2025
22ef2ad
Merge pull request #767 from adobe/r-adobe-rum-distiller
asthabh23 Feb 3, 2025
669390f
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 3, 2025
711edd1
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 4, 2025
38686ed
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 4, 2025
bc133d2
chore(deps): update dependency stylelint-config-standard to v37 (#746)
renovate[bot] Feb 4, 2025
0dc1e6d
chore(deps): update dependency lint-staged to v15.4.3 (#763)
renovate[bot] Feb 4, 2025
542606c
chore(deps): update dependency @babel/core to v7.26.7 (#764)
renovate[bot] Feb 4, 2025
5fce967
chore(deps): update dependency stylelint to v16.14.1 (#765)
renovate[bot] Feb 4, 2025
b7846a5
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 4, 2025
688e384
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 5, 2025
ec09252
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 5, 2025
71dd853
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 5, 2025
5ef5116
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 6, 2025
9d2bf1a
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 6, 2025
89040bc
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 6, 2025
e2962ae
fix: add commerce facet (#770)
maxakuru Feb 6, 2025
027e198
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 6, 2025
a565238
feat: multiple author support in author-box
asthabh23 Feb 10, 2025
689e6ce
chore: fix breadcrumb navigation for blog section
asthabh23 Feb 10, 2025
31dc944
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 10, 2025
d0e77be
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 10, 2025
177b221
Update helix-query.yaml
davidnuescheler Feb 10, 2025
8ffdad1
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 10, 2025
cfc58a2
Merge pull request #775 from adobe/davidnuescheler-patch-1
davidnuescheler Feb 11, 2025
27d6a5f
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 12, 2025
3fab9bd
Merge pull request #774 from adobe/issue-773
asthabh23 Feb 12, 2025
e23fe3e
fix: author-box profile pics style
asthabh23 Feb 12, 2025
924614d
fix: width for mobile view
asthabh23 Feb 12, 2025
6f66e39
Merge pull request #777 from adobe/author-box-images
asthabh23 Feb 12, 2025
fb6e003
working with results coming from FAQ
amol-anand Feb 12, 2025
d6bfa85
FAQ answers aren't great for homepage variant
amol-anand Feb 12, 2025
0ceb905
only returning results that are useful
amol-anand Feb 12, 2025
f80d1b7
removing console logs
amol-anand Feb 12, 2025
0de3a01
prioritize title and faq question and test
amol-anand Feb 12, 2025
b6aeba8
cleanup
amol-anand Feb 12, 2025
b4e6429
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 12, 2025
f9c5d2f
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 13, 2025
0d6f656
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 13, 2025
76d737d
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 13, 2025
4d95f3b
feat: Enable CSP with nonce (#776)
andreituicu Feb 13, 2025
c2ba3c5
Revert "feat: Enable CSP with nonce (#776)" (#779)
andreituicu Feb 13, 2025
a08dd9a
feat: Enable CSP with nonce (#780)
andreituicu Feb 13, 2025
8ba1494
updating existing search with the new one
amol-anand Feb 13, 2025
a489b7c
added block options to Cards block: baseline alternate definition for…
3vil3mpir3 Feb 14, 2025
668d586
chore: lint
fkakatie Feb 14, 2025
fdc8bd4
chore: lint
fkakatie Feb 14, 2025
caedfb0
refactor: retool search logic
fkakatie Feb 14, 2025
bb4d7ec
fixing linting issues
3vil3mpir3 Feb 14, 2025
ef8c717
fixing linting issues
3vil3mpir3 Feb 14, 2025
8d58126
fix: filter out filler words
fkakatie Feb 14, 2025
170a24d
style: homepage variant sizing
fkakatie Feb 14, 2025
07aa749
fix: better filtering
fkakatie Feb 14, 2025
670ec56
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 14, 2025
32bcaeb
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 14, 2025
6203ae3
made triangles smaller, animation now on card enter instead of link h…
3vil3mpir3 Feb 14, 2025
5af59c0
fixed typo
3vil3mpir3 Feb 14, 2025
ea8be91
increasing homepage variant result set from 1 to 3
amol-anand Feb 14, 2025
41ea30e
continuing to find more results unless we have 3
amol-anand Feb 14, 2025
9a22e32
ci(github): refactor workflow to use polling of AEM Live Admin API to…
trieloff Feb 16, 2025
bb2bb0a
ci(github): support multiple paths in resource publish dispatch events
trieloff Feb 16, 2025
55b810e
ci(github): move workflow into correct folder
trieloff Feb 16, 2025
56ac290
ci(github): add manual trigger to track publishes workflow
trieloff Feb 16, 2025
2d9e856
ci(github): simplify jq command in track publishes workflow
trieloff Feb 16, 2025
66f4638
ci(github): add debug logging to track publishes workflow
trieloff Feb 16, 2025
d5f909f
ci(github): enhance debug logging in track publishes workflow
trieloff Feb 16, 2025
86fc40c
ci(github): improve error handling and logging in track publishes wor…
trieloff Feb 16, 2025
db3651e
ci(github): add secret validation for AEM Live Admin Token in track p…
trieloff Feb 16, 2025
6d367d8
ci(github): improve URL encoding and debugging in track publishes wor…
trieloff Feb 16, 2025
c9ca3b8
ci(github): force HTTP/1.1 and improve URL encoding in track publishe…
trieloff Feb 16, 2025
af4fbfd
ci(github): add headers and improve curl request in track publishes w…
trieloff Feb 16, 2025
6b13d7b
ci(github): add curl trace debugging to track publishes workflow
trieloff Feb 16, 2025
541cbd8
ci(github): optimize curl request and jq processing in track publishe…
trieloff Feb 16, 2025
6cb0237
ci(github): simplify logs processing and add debug output in track pu…
trieloff Feb 16, 2025
725cff6
ci(github): add compatibility fix for file path handling in track pub…
trieloff Feb 16, 2025
b0b0359
ci(github): add configurable repository dispatch event type in track …
trieloff Feb 16, 2025
5709462
ci(github): enhance track publishes workflow with workflow call and r…
trieloff Feb 16, 2025
51e44d6
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 18, 2025
fdc2ed3
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 18, 2025
65465f5
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 18, 2025
1060b7a
Merge pull request #783 from adobe/coloredcardcorners
3vil3mpir3 Feb 18, 2025
afde070
FAQ: add optional categories and filters (#784)
rofe Feb 19, 2025
923fe16
ci(github): add JWT token expiry check to track publishes workflow
trieloff Feb 19, 2025
e25c584
ci(github): improve workflow run detection in track publishes workflow
trieloff Feb 19, 2025
0248c9b
chore(deps): upgrade Chart.js to version 4.4.8 across RUM tools
trieloff Feb 20, 2025
ee89bb5
Merge branch 'main' into enter-type
trieloff Feb 20, 2025
e3ddaea
Merge pull request #757 from adobe/enter-type
trieloff Feb 20, 2025
5369e14
Merge pull request #786 from adobe/bump-chartjs
trieloff Feb 20, 2025
ecfa83c
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 20, 2025
485769e
Merge branch 'main' into rum-explorer-safari
shsteimer Feb 21, 2025
ca5dc1c
chore: add iterator.filter fix to oversight as well
shsteimer Feb 21, 2025
223838e
Merge pull request #766 from adobe/rum-explorer-safari
shsteimer Feb 21, 2025
4d44ee7
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 21, 2025
852d7a9
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 22, 2025
bbb2fe4
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 22, 2025
10878e9
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 23, 2025
2fa30bd
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 23, 2025
8359c42
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 24, 2025
6ee422f
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 24, 2025
11b61da
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 24, 2025
397b1d7
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 25, 2025
5fcb697
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 25, 2025
fc71389
chore(deps): update dependency @babel/core to v7.26.9 (#771)
renovate[bot] Feb 25, 2025
22b7f08
chore(deps): update dependency @web/test-runner to v0.20.0 (#778)
renovate[bot] Feb 25, 2025
4c40bd9
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 25, 2025
b16c9b0
chore(deps): update dependency @babel/eslint-parser to v7.26.8 (#772)
renovate[bot] Feb 25, 2025
f5e8133
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 25, 2025
618f6ca
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 25, 2025
00befe4
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 25, 2025
849dfa0
chore(docs): update admin API docs [skip ci]
invalid-email-address Feb 25, 2025
3a5e970
adding 3 results to show for homepage variant
amol-anand Feb 25, 2025
665cedf
Merge branch 'main' into docs-search-faq
fkakatie Feb 26, 2025
c2d9f2b
feat: faq-theme styles
fkakatie Feb 26, 2025
c1cea37
lint fix
amol-anand Feb 26, 2025
870a3ea
fix: side nav bug in hiding content post load
amol-anand Feb 26, 2025
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
6 changes: 5 additions & 1 deletion .github/workflows/log-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
repository_dispatch:
types:
- resource-published
- resource-published-native
jobs:
print:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -30,6 +30,8 @@ jobs:
{
"text": "Just published: `${{ github.event.client_payload.path }}`"
}
webhook-type: webhook-trigger
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Notify Slack (Markdown)
if: ${{ endsWith(github.event.client_payload.path, '.md') }}
uses: slackapi/[email protected]
Expand All @@ -41,3 +43,5 @@ jobs:
{
"text": "Just published: https://www.aem.live${{ steps.format.outputs.replaced }}"
}
webhook-type: webhook-trigger
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
264 changes: 264 additions & 0 deletions .github/workflows/track-publishes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
name: Track Publishes
on:
schedule:
- cron: "0/5 * * * *"
workflow_dispatch:


permissions:
actions: read # required to access workflow runs
contents: write # required to access the repository, for the dispatch event

env:
ADD_MD_SUFFIX: "true" # default value for all triggers, this is a compatibility fix for older workflows
REPOSITORY_DISPATCH_EVENT: "resource-published-native" # default value for all triggers, this is a compatibility fix for older workflows
WORKFLOW_CALL_USE: "example" # if REPOSITORY_DISPATCH_EVENT is unset, this is the workflow file that will be called
ROUTE_FILTER: "live" # filter for the route field in the logs, can be 'live' or 'preview'

jobs:
check-token-expiry:
runs-on: ubuntu-latest
steps:
- name: Check JWT token expiration
run: |
# Function to decode JWT token part
decode_base64_url() {
local len=$((${#1} % 4))
local result="$1"
if [ $len -eq 2 ]; then result="$1"'=='
elif [ $len -eq 3 ]; then result="$1"'='
fi
echo "$result" | tr '_-' '/+' | base64 -d
}

# Get the token
TOKEN="${{ secrets.AEM_LIVE_ADMIN_TOKEN }}"

# Extract the payload (second part of the JWT)
PAYLOAD=$(echo -n $TOKEN | cut -d '.' -f 2)

# Decode the payload
DECODED_PAYLOAD=$(decode_base64_url $PAYLOAD)

# Extract expiration timestamp
EXPIRY=$(echo $DECODED_PAYLOAD | jq -r .exp)
CURRENT_TIME=$(date +%s)
ONE_WEEK_FROM_NOW=$((CURRENT_TIME + 7*24*60*60))

echo "Token expires at: $(date -d @$EXPIRY)"
echo "Current time: $(date -d @$CURRENT_TIME)"
echo "One week from now: $(date -d @$ONE_WEEK_FROM_NOW)"

if [ $EXPIRY -lt $ONE_WEEK_FROM_NOW ]; then
echo "::warning::AEM_LIVE_ADMIN_TOKEN will expire in less than a week (on $(date -d @$EXPIRY)). Please renew the token soon."
echo "Token expiration is approaching" >> $GITHUB_STEP_SUMMARY
echo "The AEM_LIVE_ADMIN_TOKEN will expire on $(date -d @$EXPIRY)" >> $GITHUB_STEP_SUMMARY
echo "Please generate a new token and update the repository secret." >> $GITHUB_STEP_SUMMARY
fi

if [ $EXPIRY -lt $CURRENT_TIME ]; then
echo "::error::AEM_LIVE_ADMIN_TOKEN has expired on $(date -d @$EXPIRY)"
exit 1
fi
check-last-run:
runs-on: ubuntu-latest
outputs:
workflow-id: ${{ steps.workflow-id.outputs.WORKFLOW_ID }}
last-run-iso: ${{ steps.last-run.outputs.LAST_CREATED_AT_ISO }} # ISO 8601
last-run-unix: ${{ steps.last-run.outputs.LAST_CREATED_AT_UNIX }} # Unix timestamp
branch-name: ${{ steps.branch-name.outputs.BRANCH_NAME }}
steps:
- name: Get branch name
id: branch-name
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ ${GITHUB_EVENT_NAME} == "pull_request" ]]
then
echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_OUTPUT
else
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
fi
- name: Get workflow id
id: workflow-id
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
WORKFLOW_ID=$(gh api /repos/${{ github.repository }}/actions/runs/${{ github.run_id }} | jq -r .workflow_id)
echo "WORKFLOW_ID=$WORKFLOW_ID" >> $GITHUB_OUTPUT
echo "Workflow id: ${WORKFLOW_ID}"
- name: Get previous build status
shell: bash
id: last-run
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAX_PAGES: "5" # Maximum number of pages to check before giving up
run: |
LAST_CREATED_AT_ISO=""
page=1

while [[ $page -le $MAX_PAGES ]]; do
echo "Checking page $page for successful runs..."

# Get workflow runs for current page
WORKFLOW_RUNS=$(gh api "/repos/${{ github.repository }}/actions/workflows/${{ steps.workflow-id.outputs.WORKFLOW_ID }}/runs?status=completed&branch=${{ steps.branch-name.outputs.BRANCH_NAME }}&page=$page&per_page=100")

# Check if we got any runs
TOTAL_COUNT=$(echo "$WORKFLOW_RUNS" | jq '.total_count')
if [[ $TOTAL_COUNT -eq 0 || $(echo "$WORKFLOW_RUNS" | jq '.workflow_runs | length') -eq 0 ]]; then
echo "No more workflow runs found."
break
fi

# Try to find a successful run on this page
LAST_CREATED_AT_ISO=$(echo "$WORKFLOW_RUNS" | jq -r "[.workflow_runs[] | select(.conclusion == \"success\") | .created_at][0]")

if [[ "$LAST_CREATED_AT_ISO" != "null" ]]; then
echo "Found successful run on page $page"
break
fi

# Store first run's timestamp as fallback if we haven't stored one yet
if [[ $page -eq 1 ]]; then
FALLBACK_TIMESTAMP=$(echo "$WORKFLOW_RUNS" | jq -r "[.workflow_runs[].created_at][0]")
if [[ "$FALLBACK_TIMESTAMP" != "null" ]]; then
echo "Storing fallback timestamp from first page: $FALLBACK_TIMESTAMP"
FIRST_RUN_ISO=$FALLBACK_TIMESTAMP
fi
fi

((page++))
done

# If we didn't find a successful run, use fallback strategies
if [[ "$LAST_CREATED_AT_ISO" == "null" || -z "$LAST_CREATED_AT_ISO" ]]; then
echo "::warning::No successful workflow runs found in the last $MAX_PAGES pages."

if [[ -n "$FIRST_RUN_ISO" ]]; then
echo "Using timestamp from earliest found run as fallback"
LAST_CREATED_AT_ISO=$FIRST_RUN_ISO

# Add information about recent failures to the job summary
echo "Recent workflow run history:" >> $GITHUB_STEP_SUMMARY
echo "$WORKFLOW_RUNS" | jq -r '.workflow_runs | map({conclusion, created_at, html_url}) | .[:5]' >> $GITHUB_STEP_SUMMARY
else
echo "::warning::No previous runs found at all. Using a timestamp from 5 minutes ago as fallback."
LAST_CREATED_AT_ISO=$(date -u -d "5 minutes ago" "+%Y-%m-%dT%H:%M:%SZ")
fi
fi

LAST_CREATED_AT_UNIX=$(date -d "$LAST_CREATED_AT_ISO" +%s)
echo "LAST_CREATED_AT_ISO=$LAST_CREATED_AT_ISO" >> $GITHUB_OUTPUT
echo "LAST_CREATED_AT_UNIX=$LAST_CREATED_AT_UNIX" >> $GITHUB_OUTPUT
echo "Previous build created at: $LAST_CREATED_AT_ISO"
poll-log:
runs-on: ubuntu-latest
needs: check-last-run
steps:
- name: Check for required secrets
run: |
if [[ -z "${{ secrets.AEM_LIVE_ADMIN_TOKEN }}" ]]; then
echo "::error::The AEM_LIVE_ADMIN_TOKEN secret is not configured. Please add this secret to your repository settings."
exit 1
fi
- name: Get Logs
id: get-logs
run: |
echo "Debug: Last run ISO: ${{ needs.check-last-run.outputs.last-run-iso }}"

# URL encode the from parameter (using tr to remove newlines)
FROM_PARAM=$(echo -n "${{ needs.check-last-run.outputs.last-run-iso }}" | tr -d '\n' | jq -sRr @uri)
echo "Debug: URL encoded from parameter: $FROM_PARAM"

# Construct and echo the full URL for debugging
FULL_URL="https://admin.hlx.page/log/adobe/helix-website/main?from=$FROM_PARAM"
echo "Debug: Full URL: $FULL_URL"

# Make the API request
RESPONSE=$(curl --http1.1 -s -w "\n%{http_code}" \
-H "Authorization: token $(echo -n "${{ secrets.AEM_LIVE_ADMIN_TOKEN }}" | tr -d '\n')" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "User-Agent: GitHub-Actions-Workflow" \
"$FULL_URL")

# Extract status code from last line
HTTP_STATUS=$(echo "$RESPONSE" | tail -n1)
# Extract response body (everything except the last line)
BODY=$(echo "$RESPONSE" | sed '$ d')

echo "Debug: HTTP Status: $HTTP_STATUS"

# Check if status code is not 2xx
if [[ $HTTP_STATUS -lt 200 ]] || [[ $HTTP_STATUS -gt 299 ]]; then
echo "Error: API request failed with status $HTTP_STATUS"
echo "Response body: $BODY"
exit 1
fi

# Process the response if status was ok
LOGS=$(echo "$BODY" | jq -R --arg route "${{ env.ROUTE_FILTER }}" 'fromjson | .entries | sort_by(.timestamp) | map(select(.route == $route))' | base64 -w 0)

echo "Debug: LOGS value length: ${#LOGS}"
echo "Debug: First few characters: ${LOGS:0:100}"
echo "logs=$LOGS" >> $GITHUB_OUTPUT
- name: Check for publishes
id: check-publishes
if: steps.get-logs.outputs.logs != 'W10K'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
LOGS="${{ steps.get-logs.outputs.logs }}"

echo "$LOGS" | base64 -d | jq -c '.[]' | while read -r log; do
user=$(echo "$log" | jq -r '.user // "unknown"')
status=$(echo "$log" | jq -r '.status')
timestamp=$(echo "$log" | jq -r '.timestamp')

# Get all paths (combine path and paths, filter out empty strings)
paths=$(echo "$log" | jq -r '[ .path, (.paths[]?) ] | map(select(length > 0))[]')

echo "$paths" | while read -r path; do
# Add .md extension if configured and path has no extension
if [[ "${{ env.ADD_MD_SUFFIX }}" == "true" ]] && [[ "$path" != *.* ]]; then
path="${path}.md"
fi

# Handle repository dispatch or workflow call
if [[ -n "${{ env.REPOSITORY_DISPATCH_EVENT }}" ]]; then
payload=$(jq -n \
--arg type "${{ env.REPOSITORY_DISPATCH_EVENT }}" \
--arg path "$path" \
--arg user "$user" \
--arg timestamp "$timestamp" \
--arg status "$status" \
'{
event_type: $type,
client_payload: {
path: $path,
user: $user,
timestamp: $timestamp,
status: $status
}
}')

echo "Triggering dispatch for $path with event type: ${{ env.REPOSITORY_DISPATCH_EVENT }}"
gh api \
--method POST \
--header "Accept: application/vnd.github.v3+json" \
"/repos/${{ github.repository }}/dispatches" \
--input - <<< "$payload"
elif [[ -n "${{ env.WORKFLOW_CALL_USE }}" ]]; then
echo "Triggering workflow ${{ env.WORKFLOW_CALL_USE }} for $path"
gh workflow run "${{ env.WORKFLOW_CALL_USE }}" \
-f path="$path" \
-f user="$user" \
-f timestamp="$timestamp" \
-f status="$status"
else
echo "Skipping triggers for $path (neither REPOSITORY_DISPATCH_EVENT nor WORKFLOW_CALL_USE is set)"
fi
done
done
22 changes: 16 additions & 6 deletions .github/workflows/update-importmaps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@ name: Update import maps
on:
pull_request:
branches:
- 'r_*'
- 'main'

jobs:
build:
if: startsWith(github.head_ref, 'r-')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Configure Git
run: |
git config user.name 'github-actions[bot]'
Expand All @@ -24,12 +27,19 @@ jobs:
run: tools/imports.sh
- name: Commit changes
run: |
git add -A
git commit -m "chore(oversight): update import maps"
git push
if git diff --quiet; then
echo "No changes to commit"
else
git add -A
git commit -m "chore(oversight): update import maps"
git push origin HEAD:${{ github.head_ref }}
fi
- name: Update PR comment to include aem.live test URL
env:
GH_TOKEN: ${{ github.token }}
run: |
OLD_BODY=$(gh pr view --json body --jq ".body")
BRANCH_NAME=$(echo ${{ github.ref }} | sed 's|refs/heads/||')
NEW_BODY="$OLD_BODY\n\nTest at: https://$BRANCH_NAME--helix-website--adobe.aem.live/tools/oversight/explorer.html?domain=www.emigrationbrewing.com"
BRANCH_NAME=$(echo ${{ github.head_ref }})
TEST_URL="https://$BRANCH_NAME--helix-website--adobe.aem.live/tools/oversight/explorer.html?domain=emigrationbrewing.com&view=month&domainkey=open"
printf -v NEW_BODY "%s\n\nTest at: %s" "$OLD_BODY" "$TEST_URL"
gh pr edit ${{ github.event.number }} --body "$NEW_BODY"
13 changes: 9 additions & 4 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@
<html>

<head>
<meta
http-equiv="Content-Security-Policy"
content="script-src 'nonce-aem' 'strict-dynamic'; base-uri 'self'; object-src 'none';"
move-as-header="true"
>
<title>Page not found</title>
<script type="text/javascript">
<script nonce="aem" type="text/javascript">
window.isErrorPage = true;
window.errorCode = '404';
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="Page not found">
<script src="/scripts/scripts.js" type="module" crossorigin="use-credentials"></script>
<script type="module">
<script nonce="aem" src="/scripts/scripts.js" type="module" crossorigin="use-credentials"></script>
<script nonce="aem" type="module">
window.addEventListener('load', () => {
if (document.referrer) {
const { origin, pathname } = new URL(document.referrer);
Expand All @@ -26,7 +31,7 @@
}
});
</script>
<script type="module">
<script nonce="aem" type="module">
import { sampleRUM } from '/scripts/lib-franklin.js';
import { applyRedirects } from '/scripts/redirects.js';
await applyRedirects();
Expand Down
Loading
Loading