Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
3c39f49
feat: prevent user elements like links and buttons from handling the …
devvaannsh Nov 24, 2025
9e3478b
fix: internal blocker also blocking in preview mode
devvaannsh Nov 24, 2025
e5e24b1
fix: cursor not getting positioned properly on element click in edit …
devvaannsh Nov 24, 2025
15a8768
feat: check and clear any selection if anything exists before selecti…
devvaannsh Nov 24, 2025
0785315
refactor: use better style when image gallery svg is selected
devvaannsh Nov 24, 2025
d80ea2b
feat: show pre-filled folder in image folder dialog
devvaannsh Nov 24, 2025
4abb404
fix: root directories not being displayed when user clears a pre fill…
devvaannsh Nov 25, 2025
8499926
fix: drag drop not working because mouse down is blocked
devvaannsh Nov 25, 2025
208226e
refactor: improve suggestions list colors to match it with tab bar
devvaannsh Nov 25, 2025
3653700
fix: tests failing as boxes not getting dismissed on click on body or…
devvaannsh Nov 25, 2025
79b260a
feat: show a toast message when folder selection dialog is open
devvaannsh Nov 26, 2025
d51696f
refactor: better UI for the toast message
devvaannsh Nov 26, 2025
86c11f2
fix: localize the dialog overlay string
devvaannsh Nov 26, 2025
9b18baf
fix: use higher z-index so that overlay does not get hidden
devvaannsh Nov 26, 2025
79c305a
fix: window focus handlers are never cleared which was causing repeti…
devvaannsh Nov 27, 2025
db16740
feat: add cut copy paste buttons in options box
devvaannsh Nov 27, 2025
c1877c7
refactor: move the edit options inside a dropdown
devvaannsh Nov 27, 2025
fb08a2b
feat: localize the strings used in the dropdown
devvaannsh Nov 27, 2025
dc05338
refactor: make dropdown consistent to existing phoenix colors
devvaannsh Nov 27, 2025
c714d96
fix: dropdown not getting dismissed on other element click
devvaannsh Nov 27, 2025
e7ec0e5
refactor: use font awesome icons for cut copy paste
devvaannsh Nov 27, 2025
e76b50c
fix: improvised positioning of the dropdown
devvaannsh Nov 27, 2025
3537382
feat: add ruler lines feature when element is clicked
devvaannsh Nov 29, 2025
2b9a071
fix: ruler lines not getting updated unless when clicked element changes
devvaannsh Nov 29, 2025
ec2ae2c
feat: ruler lines and outline to be shown in blue for non-editable el…
devvaannsh Nov 29, 2025
37c1261
refactor: use rgba vals with opacity to ruler lines to make it less d…
devvaannsh Nov 29, 2025
42f9552
feat: also add show ruler lines option in the more options dropdown
devvaannsh Nov 29, 2025
403e7bb
refactor: improve checkmark styles in more options dropdown
devvaannsh Nov 29, 2025
c53e196
refactor: change border color of the more options dropdown
devvaannsh Nov 29, 2025
8e349d2
fix: text editing in table, li, option etc not working because of dom…
devvaannsh Nov 29, 2025
b97dfe4
fix: indentation breaks when pasting a copied element
devvaannsh Nov 30, 2025
b34b701
feat: show first time copy cut toast message
devvaannsh Nov 30, 2025
d5cf4fd
feat: add edit link support for anchor tags
devvaannsh Dec 1, 2025
855a254
refactor: make hyperlink styles consistent to other elements
devvaannsh Dec 1, 2025
2ec9f7d
refactor: modify the link icon
devvaannsh Dec 1, 2025
f106577
feat: show a link icon in the hyperlink editor
devvaannsh Dec 1, 2025
dec1502
feat: show href link in info box for anchor elements
devvaannsh Dec 1, 2025
ba916ab
feat: add 35 char max limit for urls in the info box
devvaannsh Dec 1, 2025
bc6972d
fix: flicker issue after hyperlink edit completes
devvaannsh Dec 2, 2025
73f2ac2
fix: prevent more options dropdown from resizing because of checkmark
devvaannsh Dec 2, 2025
b4a6597
fix: slight pixel inconsistencies between ruler and elements outline
devvaannsh Dec 2, 2025
d973d83
fix: element highlighting overlapping the boxes
devvaannsh Dec 2, 2025
5447a95
feat: add support for ruler lines pixel values
devvaannsh Dec 2, 2025
cf18b34
fix: css text appending styles on every update call causing the strin…
devvaannsh Dec 2, 2025
824a12d
fix: round the pixels to ensure integer display
devvaannsh Dec 2, 2025
992f760
refactor: use the standard function syntax instead of the shorthand
devvaannsh Dec 2, 2025
59cfa5d
fix: positioning of the ruler markers
devvaannsh Dec 2, 2025
815e48a
fix: remove redundant code from live development file as they are no …
devvaannsh Dec 3, 2025
3b03b41
refactor: single source of truth for phoenix internal attribute
devvaannsh Dec 3, 2025
da85a5b
refactor: move all the strings used in remote functions to its helper…
devvaannsh Dec 3, 2025
47f8d0b
refactor: move data brackets id and brackets highlight to globals
devvaannsh Dec 3, 2025
9e7a9a4
refactor: move all icons used by remote functions to remote helper
devvaannsh Dec 3, 2025
2389771
refactor: move options box styles to remote helper file
devvaannsh Dec 3, 2025
443a320
refactor: move options box dropdown styles to remote helper
devvaannsh Dec 3, 2025
464abbf
refactor: move info box styles to remote helper file
devvaannsh Dec 3, 2025
3387cd8
refactor: move toast and dialog overlay styles to remote helper file
devvaannsh Dec 3, 2025
11d6a5a
refactor: move image gallery hyperlink editor and ai styles to remote…
devvaannsh Dec 3, 2025
0646743
fix: pass the mode to the remoteFunctions instead of the isProUser bo…
devvaannsh Dec 3, 2025
05887ee
feat: preview button unselected will always toggle to a non-preview mode
devvaannsh Dec 3, 2025
224fea5
fix: show ruler lines checkmark icon is not consistent in safari
devvaannsh Dec 3, 2025
a5e4b5e
fix: image gallery header icon not appearing in linux
devvaannsh Dec 3, 2025
77f33c1
fix: image gallery styles not consistent in linux
devvaannsh Dec 4, 2025
1a1f880
feat: formatting changes like ctrl + b, u, i were adding internal att…
devvaannsh Dec 4, 2025
a64ddd8
fix: show ruler pixel values inside viewport always
devvaannsh Dec 4, 2025
c402c9b
fix: ruler lines appearing even for invisible elements
devvaannsh Dec 4, 2025
0a02487
fix: boxes and ruler markers not getting updated when css is edited
devvaannsh Dec 4, 2025
e03591c
fix: boxes not getting dismissed when element doesn't exist in the do…
devvaannsh Dec 5, 2025
c672a10
fix: ruler lines causing live preview to overflow
devvaannsh Dec 5, 2025
796f29e
fix: element highlighting is very unpredictable
devvaannsh Dec 5, 2025
581e358
fix: smart ruler label markers position detection to always prevent o…
devvaannsh Dec 5, 2025
b88eafa
fix: more predictable positioning for info and options box
devvaannsh Dec 5, 2025
287182c
fix: also take the vertical scrollbar width into account when calcula…
devvaannsh Dec 5, 2025
aef47cb
fix: try placing info box above options box when no place available
devvaannsh Dec 5, 2025
254b1f1
feat: add remote function script support in live preview for extensib…
abose Dec 6, 2025
96970c8
chore: add extension
abose Dec 6, 2025
a006fea
refactor: remove dead code
devvaannsh Dec 6, 2025
443d3a7
refactor: improve code readability
devvaannsh Dec 6, 2025
eedcaec
chore: make LivePreviewEdit.js movable to extension
abose Dec 6, 2025
d1d4226
refactor: pro into integrated extension with kernal mode trust access
abose Dec 6, 2025
a94944e
fix: add priority order for box positions so that they always follow …
devvaannsh Dec 6, 2025
3bca274
fix: prod builkd break as ? is not supported
abose Dec 6, 2025
519cbf4
fix: test framework not loading
abose Dec 6, 2025
dcf234d
feat: add hot corner in the live preview for easy toggle to preview m…
devvaannsh Dec 6, 2025
3cd9cbf
feat: add addRemoteFunctionConstantsScript api
abose Dec 7, 2025
497424e
refactor: remote strings as remote fn constants instead of config
abose Dec 7, 2025
9a8ffe3
refactor: remote icons as remote fn constants instead of config
abose Dec 7, 2025
451539f
refactor: remove unused code
abose Dec 7, 2025
8268bc1
refactor: move css styles for edit boxes to extension
abose Dec 7, 2025
d2fc4b1
refactor: remote fns should work without the extension as well
abose Dec 7, 2025
39d92cc
refactor: image options box styling optimize
abose Dec 7, 2025
ff67c79
refactor: options box styles into its own css file for better code in…
abose Dec 7, 2025
91c9fa8
refactor: infobox and ruler styles in remote functions
abose Dec 7, 2025
1f741a8
refactor: toast message and dialog overlay styles
abose Dec 7, 2025
41c15c2
refactor: ai prompt box css in remote functions
abose Dec 7, 2025
ac96446
refactor: image gallery css in remote functions
abose Dec 7, 2025
d2d332f
refactor: hyperlink editor and hot corner css in remote functions
abose Dec 7, 2025
ffa472b
fix: prod build doesnt inject live preview styles are replace comment…
abose Dec 7, 2025
2c311a2
fix: improved drag drop
devvaannsh Dec 7, 2025
e0b1150
Revert "fix: improved drag drop"
devvaannsh Dec 7, 2025
ece11d0
feat: show drop marker label with tag class id names
devvaannsh Dec 7, 2025
4824d0c
refactor: make label styles consistent to other internal elements
devvaannsh Dec 7, 2025
81a970b
chore: inlining json files as well for require
abose Dec 7, 2025
b3b1b60
build: concantenate js relative files as well
abose Dec 7, 2025
3fdf721
feat: show a outline over the target element
devvaannsh Dec 7, 2025
210c2e6
fix: also add left side check overflow for the label
devvaannsh Dec 7, 2025
242feb7
feat: reliable dragging using a cycle marker for all possible drop po…
devvaannsh Dec 7, 2025
3b3eae1
build: failed if any phoenix pro files are not inlineable
abose Dec 8, 2025
636399d
chore: remove source map generation as it never worked and we dont ob…
abose Dec 8, 2025
866b72a
build: remove pro sources from built artifacts after dist generation
abose Dec 8, 2025
0face1b
chore: event listener attachment decisions taken in live preview with…
abose Dec 8, 2025
972e3f6
fix: replace the cycling logic with the divide total space by number …
devvaannsh Dec 9, 2025
70b7f15
fix: drop markers not getting cleared on auto scroll
devvaannsh Dec 9, 2025
02a1e11
fix: hot corners not working
devvaannsh Dec 9, 2025
f1d0acb
fix: improve hot corner styles
devvaannsh Dec 9, 2025
bdb8476
refactor: remove highlight flag as we use mode now for preview, edit …
abose Dec 9, 2025
a27b650
fix: ruler lines and boxes overlapping hot corners
devvaannsh Dec 9, 2025
98f5e2a
refactor: remove remote styles config passing as it can be passed dir…
abose Dec 9, 2025
bbc9205
fix: test runner showing stray buttons due to hot corners
abose Dec 9, 2025
c5670f3
fix: leaky listeners/event handlers in live document
abose Dec 10, 2025
138313c
refactor: move dismissLivePreviewEditBoxes into pro extension
abose Dec 10, 2025
cfe7e0e
feat: add tooltip in hot corner button
devvaannsh Dec 10, 2025
4ae0a2d
fix: custom server live preview integ tests failing fix
abose Dec 10, 2025
8323ff5
fix: prevent boxes overlapping the element edge cases
devvaannsh Dec 10, 2025
4f2427b
fix: live preview integ test failures
abose Dec 10, 2025
7a972bd
fix: live preview event handler leak causing inconcsitant lp bugs cau…
abose Dec 10, 2025
f243c4c
feat: show no network error in image gallery when device is not conne…
devvaannsh Dec 10, 2025
417509f
fix: remove transform from nav button active state as it was causing …
devvaannsh Dec 10, 2025
322e697
fix: network error retry button ui not consistent
devvaannsh Dec 10, 2025
113b348
chore: not exposing pro user flags outside the kernal trust module
abose Dec 10, 2025
301e755
fix: autoscrolling colliding with drag-drop for elements which falls …
devvaannsh Dec 10, 2025
911658c
refactor: live preview edit tests into seperate suite
abose Dec 11, 2025
a1f449b
build: phoenix pro optional build and test injection
abose Dec 11, 2025
426217f
ci: move to macos 15 runners as github deprecated older runners
abose Dec 11, 2025
9bc8702
fix: for non editable elements drag drop while auto scrolling is caus…
devvaannsh Dec 11, 2025
4750b07
chore: pro extension decides what mode to use from entitlements
abose Dec 11, 2025
a2e69c5
fix: download indicator flashing when image gallery not connected to …
devvaannsh Dec 11, 2025
c5c1a28
feat: when network connection is restored fetch the images
devvaannsh Dec 11, 2025
2ed123d
feat: dont show edit text button for disabled elements as edit text w…
devvaannsh Dec 11, 2025
7e8f524
chore: reload live preview working and reload liev perview menu item …
abose Dec 11, 2025
96669c8
fix: reliable config passing between phcode and live preview
abose Dec 11, 2025
92a6fd5
fix: svg elements not getting rendered properly in live preview when …
devvaannsh Dec 11, 2025
c40d089
feat: svg elements drag drop feature
devvaannsh Dec 11, 2025
7a5d890
test: live preview edit integ tests working
abose Dec 11, 2025
12608cb
fix: dont strip test folders in pro extension in dist-test builds
abose Dec 11, 2025
87f8f77
fix: svg elements drag-drop not ending on escape key press
devvaannsh Dec 11, 2025
1ae6ca3
fix: release dist failing to launch lp edit
abose Dec 12, 2025
fea8b4a
test: verify that in pro phoenix-pro extension is loaded only from mi…
abose Dec 12, 2025
54cbd83
build: remove optional extension after build
abose Dec 12, 2025
a488e81
feat: move svg elements as a single unit
devvaannsh Dec 12, 2025
de2d4e7
fix: hover highlights not getting cleared when dragging an svg
devvaannsh Dec 12, 2025
8156e63
fix: remove the drag drop event listeners before adding it again
devvaannsh Dec 12, 2025
2ae3c55
feat: drag drop was happening even on slightest mouse movements which…
devvaannsh Dec 12, 2025
5faff3d
fix: live preview related css highlightfails due to space in path. de…
abose Dec 12, 2025
47b0dab
fix: playwright not starting up in macos 15, since we r close to rele…
abose Dec 12, 2025
0907f1a
fix: indentation breaking for multiline elements or complex elements …
devvaannsh Dec 12, 2025
454ea3c
fix: overlays appearing for custom servers which is not expected
devvaannsh Dec 12, 2025
ae3266c
refactor: headers and remote fn import fn wrapping to prevent name co…
abose Dec 12, 2025
06efeb7
refactor: remove window object for storing temp state variables in li…
abose Dec 13, 2025
3a7a3cf
refactor: remoteHighlight var to fn scope instead of global
abose Dec 13, 2025
d237f25
refactor: remote functions continued
abose Dec 13, 2025
f91aff4
refactor: remote function LivePreviewView util
abose Dec 13, 2025
1567bfe
refactor: framework for optional lp edit handlers and refactor Hyperl…
abose Dec 13, 2025
a6994ba
refactor: ruler lines code and relavant infra
abose Dec 13, 2025
5310fce
chore: add render ordering to live preview widgets
abose Dec 13, 2025
6a05d38
refactor: drag and drop live preview code placeholder
abose Dec 13, 2025
846cf8a
fix: null exception in remote functions caught by ut suite fail to start
abose Dec 13, 2025
26ffbeb
refactor: move drag drop from remote functions to its specific file
devvaannsh Dec 13, 2025
8f67449
fix: ruler lines not shown when enabled unless a new element is clicked
devvaannsh Dec 13, 2025
80cde74
fix: refresh config once window.load fires otherwise we get stale data
devvaannsh Dec 13, 2025
e31a3c5
refactor: move user facing strings of ruler lines to measurements
devvaannsh Dec 14, 2025
5af8c54
refactor: improve more options dropdown styles to make it consistent
devvaannsh Dec 14, 2025
9830112
fix: decouple drag and drop from remote fucntions with direct api calls
abose Dec 15, 2025
be480c4
chore: better event handler registration in live preview
abose Dec 15, 2025
202f5fb
chore: better generic event handling for escape key press in editor
abose Dec 15, 2025
9941a9c
fix: allow the tool to specify of we should retain the options box
abose Dec 15, 2025
7507a41
chore: add proConstants for declared ordering for live preview tool b…
abose Dec 15, 2025
1b28ec9
refactor: duplicate elemnt as lp plugin
abose Dec 15, 2025
13059ea
refactor: delete elemnt as lp plugin
abose Dec 15, 2025
202d432
refactor: select parent as lp plugin
abose Dec 15, 2025
c8d7382
refactor: cut element into lp plugin
abose Dec 15, 2025
6c0e570
refactor: copy element into lp plugin
abose Dec 15, 2025
53a3f0a
chore: paste should paste to end of current tag and refactor to pro p…
abose Dec 15, 2025
e26ee9e
refactor: move image gallery feature from remote functions to its sep…
devvaannsh Dec 15, 2025
e3d0989
fix: image gallery toolbox ordering as it should come before duplicat…
devvaannsh Dec 15, 2025
cac9ac1
refactor: move ai from remote functions to its respective file
devvaannsh Dec 15, 2025
701ed71
fix: image gallery toggle button should stay in place when toggling g…
abose Dec 15, 2025
f28703c
refactor: rename ai file to be able to see it faster in file list
abose Dec 15, 2025
ee0c1c5
refactor: move edit text functionality from remote functions to its o…
devvaannsh Dec 15, 2025
68b79aa
fix: add interaction blockers in allowed handler functions
devvaannsh Dec 15, 2025
59dcddb
feat: keyboard shortcuts for cut/copy/paste working in live preview e…
abose Dec 15, 2025
3ab5b5c
feat: keyboard shortcuts for cut/copy/paste should work only in edit …
abose Dec 15, 2025
90c043d
refactor: move hot corner to its separate file
devvaannsh Dec 15, 2025
317b9be
refactor: clean up code to fix all eslint issues
devvaannsh Dec 15, 2025
6638b61
chore: cut copy paste works in popped out live preview and clipboard …
abose Dec 15, 2025
be8cccb
refactor: redundant code
abose Dec 15, 2025
c7bdb49
fix: in popped out live preview ctrl-shift-z does redo now
abose Dec 15, 2025
fc287dc
fix: element getting dragged when trying to select text while editing
devvaannsh Dec 15, 2025
79360bb
fix: in popped out live preview cut/copy/paste doenst work
abose Dec 15, 2025
4e21326
feat: delete and backspace key support to delete live preview elements
abose Dec 15, 2025
82e7a7d
refactor: move toast message to its respective file
devvaannsh Dec 16, 2025
15b9baf
refactor: change naming convention from node info box to info box
devvaannsh Dec 16, 2025
4a134d7
refactor: change naming convention from node more options box to toolbox
devvaannsh Dec 16, 2025
9d0335e
refactor: change naming convention from node more options handler to …
devvaannsh Dec 16, 2025
d4972e4
fix: live preview exceptions intermitantly on app start
abose Dec 16, 2025
97db68b
chore: custom remote function setup script in core
abose Dec 16, 2025
f308a69
chore: remote script load changes
abose Dec 16, 2025
5692b8e
refactor: move everything to its own separate file
devvaannsh Dec 16, 2025
8f92a14
fix: boxes not getting destroyed when a new element is clicked
devvaannsh Dec 16, 2025
382b096
build: fix prod release build failure, remote functions will not be m…
abose Dec 16, 2025
21b47c5
fix: boxes positioning broke as they were not cleared when an element…
devvaannsh Dec 16, 2025
49c4dbe
fix: live preview edit tests failing
devvaannsh Dec 16, 2025
d0a5e60
build: create minified browser script in prod release working
abose Dec 17, 2025
8ff09b2
build: update build doc
abose Dec 17, 2025
304a97c
build: update build doc
abose Dec 17, 2025
07171b3
refactor: fix eslint issues
devvaannsh Dec 17, 2025
3bfcd58
fix: dont leak keyboard shorcuts like delete, cut, copy paste in lp t…
abose Dec 17, 2025
8d1d5ee
fix: undo redo on preview text inputs leaking to editor
abose Dec 17, 2025
df296ad
fix: pressing delete in image gallery text field deleted live preview…
abose Dec 17, 2025
8341cf2
fix: reduce number of default queries
devvaannsh Dec 17, 2025
4868ba2
ci: phoenix pro optional clone scripts
abose Dec 17, 2025
486a0b6
ci: placeholder pro folder for pro build testing
abose Dec 17, 2025
a36d0ea
ci: add pro repo clone creds to github actions mac m1 for testing
abose Dec 17, 2025
818c1c7
ci: add pro repo clone creds to all github actions
abose Dec 17, 2025
1e85bd4
ci: add prod tests for mac m1 desktop app as well
abose Dec 17, 2025
d8824d0
ci: add prod tests for mac m1 desktop app as well
abose Dec 17, 2025
3f5b6f4
fix: stale highlighting appears when image source code is updated
devvaannsh Dec 18, 2025
3217b88
fix: load 30 (max-limit) images per API call instead of 10
devvaannsh Dec 18, 2025
d5f2f37
fix: remove lazy loading as it poorly impacted the ux a lot
devvaannsh Dec 18, 2025
693c538
build: dist size validations
abose Dec 18, 2025
fdc7732
build: validate file size limits for release built files
abose Dec 18, 2025
a69b38e
build: reduced file size limits validation in dist
abose Dec 18, 2025
2f1c5f6
ci: cloudflare deply headers
abose Dec 18, 2025
4b734bf
ci: cloudflare deploy headers
abose Dec 18, 2025
297123d
ci: cloudflare deploy not working
abose Dec 18, 2025
686655f
feat: pass is paid subscriber to the backend for quota reservation
devvaannsh Dec 18, 2025
92ea205
ci: removing cloudflare related files as we cant ship in cf
abose Dec 18, 2025
aa62f90
fix: element highlighting not working for internal stylesheet
devvaannsh Dec 18, 2025
5efaf6f
build: phoenix pro build info in about box
abose Dec 18, 2025
28c10ba
build: update phoenix pro tracking repo
abose Dec 18, 2025
ee8e2b9
chore: remove phoenix pro from source
abose Dec 18, 2025
ca8848b
build: wire in phoenix pro actual folder build
abose Dec 18, 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
3 changes: 3 additions & 0 deletions .github/workflows/create-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
run: |
npm ci
- name: Verifying release artifact build
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run release:prod
- name: Deploy Notification To authoring production repository create.phcode.dev
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/desktop-linux-prod-test-pull.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: 'Desktop-Linux prod release full test suite run on pull request'
# we only do this on linux as a sanity. detailed tests will be run on pulls on staging/prod branch
on:
pull_request:
branches: [ main ]
Expand Down Expand Up @@ -31,6 +30,9 @@ jobs:
sudo apt-get install xvfb

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
Expand All @@ -39,6 +41,8 @@ jobs:
- name: Download phoenix desktop and build test runner
env:
GH_TOKEN: ${{ github.token }}
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/desktop-linux-test-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
sudo apt-get install xvfb

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
Expand All @@ -38,6 +41,8 @@ jobs:
- name: Download phoenix desktop and build test runner
env:
GH_TOKEN: ${{ github.token }}
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
Expand Down
111 changes: 111 additions & 0 deletions .github/workflows/desktop-mac-m1-prod-test-pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: 'Desktop-mac M1 prod release full test suite run on pull request'
on:
pull_request:
branches: [ main ]

concurrency:
group: pr-desktop-mac-m1-prod-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
test-desktop-mac-m1-prod:
runs-on: macos-15
timeout-minutes: 90
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.85.1

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
npm run release:prod

- name: Download phoenix desktop and build test runner
env:
GH_TOKEN: ${{ github.token }}
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
cd phoenix-desktop
npm ci
npm run releaseDistTestDebug

- name: Run tauri unit tests
uses: nick-fields/retry@v2
id: macM1RunUnit
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=unit -q

- name: Run tauri integration tests
uses: nick-fields/retry@v2
id: macM1RunIntegration
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=integration -q

- name: Run tauri mainview tests
uses: nick-fields/retry@v2
id: macM1RunMainview
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=mainview -q

- name: Run tauri livepreview tests
uses: nick-fields/retry@v2
id: macM1RunLivepreview
continue-on-error: true
with:
timeout_minutes: 12
max_attempts: 3
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=livepreview -q

- name: Run tauri LegacyInteg tests
uses: nick-fields/retry@v2
id: macM1RunLegacyInteg
continue-on-error: true
with:
timeout_minutes: 20
max_attempts: 3
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q

- name: Fail on test runs failed in Mac M1 (prod)
if: steps.macM1RunUnit.outcome == 'failure' || steps.macM1RunIntegration.outcome == 'failure' || steps.macM1RunMainview.outcome == 'failure' || steps.macM1RunLivepreview.outcome == 'failure' || steps.macM1RunLegacyInteg.outcome == 'failure'
run: |
echo "Mac M1 (prod) tests failed, marking step as failed"
echo "Failed tests:"
if [ "${{ steps.macM1RunUnit.outcome }}" == "failure" ]; then
echo "- Run tauri unit tests"
fi
if [ "${{ steps.macM1RunIntegration.outcome }}" == "failure" ]; then
echo "- Run tauri integration tests"
fi
if [ "${{ steps.macM1RunMainview.outcome }}" == "failure" ]; then
echo "- Run tauri mainview tests"
fi
if [ "${{ steps.macM1RunLivepreview.outcome }}" == "failure" ]; then
echo "- Run tauri livepreview tests"
fi
if [ "${{ steps.macM1RunLegacyInteg.outcome }}" == "failure" ]; then
echo "- Run tauri LegacyInteg tests"
fi
exit 1
7 changes: 6 additions & 1 deletion .github/workflows/desktop-mac-m1-test-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
test-desktop-mac-m1:
runs-on: macos-14
runs-on: macos-15
timeout-minutes: 90
steps:
- uses: actions/checkout@v3
Expand All @@ -23,6 +23,9 @@ jobs:
toolchain: 1.85.1

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
Expand All @@ -31,6 +34,8 @@ jobs:
- name: Download phoenix desktop and build test runner
env:
GH_TOKEN: ${{ github.token }}
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/desktop-mac-test-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
test-desktop-mac:
runs-on: macos-13
runs-on: macos-15-intel
timeout-minutes: 90
steps:
- uses: actions/checkout@v3
Expand All @@ -23,6 +23,9 @@ jobs:
toolchain: 1.85.1

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
Expand All @@ -31,6 +34,8 @@ jobs:
- name: Download phoenix desktop and build test runner
env:
GH_TOKEN: ${{ github.token }}
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/desktop-windows-test-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
toolchain: 1.85.1

- name: build phoenix dist-test
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm ci
npm run build
Expand All @@ -31,6 +34,8 @@ jobs:
- name: Download phoenix desktop and build test runner
env:
GH_TOKEN: ${{ github.token }}
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
cd ..
git clone https://github.com/phcode-dev/phoenix-desktop.git
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
run: |
npm ci
- name: Verifying release artifact build
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run release:dev
- name: Deploy Notification To dev.phcode.dev repository
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-chromium-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-chromium-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-chromium-windows-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-chromium-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-firefox-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/playwright-firefox-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/playwright-staging-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down Expand Up @@ -102,6 +105,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down Expand Up @@ -178,7 +184,7 @@ jobs:

playwrightChromiumMacos:
timeout-minutes: 90
runs-on: macos-14
runs-on: macos-15
steps:
- uses: actions/checkout@v3
- name: setup node
Expand All @@ -188,6 +194,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down Expand Up @@ -273,6 +282,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down Expand Up @@ -358,6 +370,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down Expand Up @@ -434,7 +449,7 @@ jobs:

playwrightFirefoxMacos:
timeout-minutes: 90
runs-on: macos-14
runs-on: macos-15
steps:
- uses: actions/checkout@v3
- name: setup node
Expand All @@ -444,6 +459,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build phoenix
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run build
npm run release:prod
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
run: |
npm ci
- name: Verifying release artifact build
env:
PRO_REPO_URL: ${{ secrets.PRO_REPO_URL }}
PRO_REPO_ACCESS_TOKEN: ${{ secrets.PRO_REPO_ACCESS_TOKEN }}
run: |
npm run release:prod
- name: Deploy Notification To production repository phcode.dev
Expand Down
Loading
Loading