Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
5153717
New version.
agarny Nov 11, 2026
a3ce73e
Updated our dependencies.
agarny Nov 13, 2026
89a8dbe
Some minor cleaning up.
agarny Nov 11, 2026
b9fd93a
Theme: switch between light and dark mode without any transition.
agarny Nov 13, 2026
684acdc
Sanitise or escape untrusted HTML before rendering it.
agarny Nov 11, 2026
fa91b08
Consolidated traceName() into vueCommon, so that an empty (or blank) …
agarny Nov 11, 2026
ac898df
Contents component: make file tabs keyboard accessible.
agarny Nov 11, 2026
da2b7bb
Don't transition the visibility of float labels.
agarny Nov 11, 2026
733a6ab
Use outlines for our focus rings and show them by default.
agarny Nov 11, 2026
3be7fdf
Added a keyboard shortcut (Ctrl+Alt+M) to access our main menu in the…
agarny Nov 11, 2026
2cbf8c5
Show our focus ring around the focused item of our menus.
agarny Nov 11, 2026
84560e2
Main menu: Escape only closes the innermost submenu and don't get stu…
agarny Nov 11, 2026
690789a
Give the focus to the safe button of a dangerous question.
agarny Nov 11, 2026
4d7b55b
Match the letter of our keyboard shortcuts rather than their key, and…
agarny Nov 11, 2026
d82a279
Export the plotted data to CSV as it is plotted, with one X column pe…
agarny Nov 12, 2026
b699aec
Interactive Simulation Experiment view: show the progress and status …
agarny Nov 12, 2026
120c15c
Use the same splitter and side panel styles in the Standard and Inter…
agarny Nov 12, 2026
e706051
Draw the focus ring of a scroll bar inside it so that it doesn't get …
agarny Nov 12, 2026
4a13143
Format our numbers and unit labels the same way everywhere.
agarny Nov 12, 2026
0581739
Make the model of an exported COMBINE archive refer to the CellML fil…
agarny Nov 12, 2026
23f2ffc
Don't make the axis selects of the Standard view editable and cache t…
agarny Nov 12, 2026
c44c7e5
Standard Simulation Experiment view: added an Initial point field and…
agarny Nov 12, 2026
a3de513
Graph Panel widget: added logarithmic X and Y axes to the context menu.
agarny Nov 12, 2026
d5bec56
Main menu: added a Window menu and a help role on macOS, and mnemonic…
agarny Nov 12, 2026
d464c2e
Main window: list opened files as recent documents and show unsaved c…
agarny Nov 12, 2026
b1755e9
Standard view: added Reset simulation settings and Clear simulation d…
agarny Nov 12, 2026
c82e8e2
Standard Simulation Experiment view: added a delay wheel.
agarny Nov 13, 2026
5201fd7
Input widget: don't show a focus ring on a slider handle getting the …
agarny Nov 15, 2026
0239416
Graph Panel widget: highlight the last point of traces during live runs.
agarny Nov 16, 2026
af22f37
Removed the DeepWiki badges.
agarny Nov 16, 2026
6a43280
CI: check for linting issues without fixing them, using our new `lint…
agarny Nov 16, 2026
f303a3e
Context menus: hide them when switching to another tab or application.
agarny Nov 16, 2026
1182005
TypeScript: enable noUncheckedIndexedAccess.
agarny Nov 17, 2026
16eabd6
CI/CD: check that the release tag matches our version and use frozen …
agarny Nov 18, 2026
4fb8111
package.json: lower our Vue peer dependency to ^3.5.2.
agarny Nov 19, 2026
21f20d3
Dependencies update script: don't update our peer dependencies anymore.
agarny Nov 19, 2026
2e64c35
Removed the leading `I` and `E` from the names of our interfaces and …
agarny Nov 19, 2026
f851009
Updated our dependencies.
agarny Nov 19, 2026
dcf3dc9
Graph panel: use @opencor/plot rather than our own uPlot-based plotting.
agarny Nov 25, 2026
7d91978
Keyboard and focus ring improvements, and a shared message dialog.
agarny Nov 25, 2026
fe00333
Toasts: errors stay until closed, warnings last longer, pause on focu…
agarny Nov 25, 2026
16e357d
Dialogs: platform button order, sm/md/lg sizes, and a hidden event in…
agarny Nov 25, 2026
119164f
Tab bar and menu bar: let the browser scroll horizontally, no hamburg…
agarny Nov 25, 2026
5ace2b0
Performance: a capped console rendered per entry, cached tab icons, a…
agarny Nov 25, 2026
53ff162
Quick wins: clearer wording and toasts, macOS shortcut order, stable …
agarny Nov 25, 2026
039f1b8
Accessibility: screen-reader hints, keyboard-reachable run details, e…
agarny Nov 25, 2026
6904cff
Context menus: select the first item when opened using the keyboard.
agarny Nov 25, 2026
05f795b
Graph panel: toasts for copying and exporting plot images, and for fa…
agarny Nov 25, 2026
8f5f241
Graph panel: hide the CSV export message if unmounted during an export.
agarny Nov 25, 2026
e7e5849
Settings dialog: show which UI JSON fields and sections have issues.
agarny Nov 25, 2026
f2bab84
UI JSON: clearer schema issues, with each input checked against the s…
agarny Nov 25, 2026
84e0835
UI JSON: only skip the checks that depend on values that failed schem…
agarny Nov 25, 2026
dd54add
UI JSON: remove the "must not be empty" checks that schema validation…
agarny Nov 25, 2026
72b16ae
Settings dialog: don't clip the messages of number fields in cards.
agarny Nov 25, 2026
4ba6d4e
Escape: only close the top-most dialog, leave open overlays to themse…
agarny Nov 25, 2026
3d5f975
Keyboard focus: return it after menu commands and the file-tab contex…
agarny Nov 25, 2026
9c8500d
Simulation feedback: cancel or time out remote loads, stop slow Inter…
agarny Nov 25, 2026
dfeced3
Toasts: use "Cannot …" summaries for export, save, rename and Copy Pa…
agarny Nov 25, 2026
bfcc70d
Toasts: show the subject then the cause, ignore non-action query stri…
agarny Nov 25, 2026
153ab08
Loading model: focus its Cancel button, make it look like one, and gi…
agarny Nov 25, 2026
f8349ec
CORS proxy: allow CellDL files, and mention them in the Open Location…
agarny Nov 25, 2026
fffb43b
Use "OMEX file" rather than "COMBINE archive" throughout, and have th…
agarny Nov 25, 2026
1a38f04
CellDL Editor: upgraded to 0.20261126, use its editor-state API, drop…
agarny Nov 25, 2026
b6d61fe
Simulation Settings: valid new entries, visible unknown values, short…
agarny Nov 26, 2026
663ed9c
Standard view: plot live runs every frame rather than every ~169 ms.
agarny Nov 26, 2026
d17f2bc
Biome: ignore our test CellDL files.
agarny Nov 26, 2026
724dcd4
Simulation views: switch to and from the narrow layout without remoun…
agarny Nov 26, 2026
7acc4c9
Simulation views: show splitters with a centred grip of three dots.
agarny Nov 26, 2026
dd60797
Low-priority UI/UX fixes: screen-reader names, cancellable external d…
agarny Nov 26, 2026
48ff13b
Show the first/last file tab in full when switching to it.
agarny Nov 26, 2026
996720b
Remove the flash when switching file tabs.
agarny Nov 26, 2026
c08fe63
Updated our dependencies.
agarny Nov 26, 2026
3a71b4f
Reflowed our comments to 120 characters and numbered multiple notes.
agarny Nov 26, 2026
97e0482
Keep the save permission when Save As replaces an open file.
agarny Nov 26, 2026
6b12437
Don't report a file issue to the main process for a file that is open.
agarny Nov 26, 2026
a6e09ec
Ignore the outcome of a cancelled update download once a new one has …
agarny Nov 26, 2026
46c0296
Give the CORS proxy more time to respond, and have it give up on a st…
agarny Nov 26, 2026
0e019ee
Show the right number of days for durations of 24 days or more.
agarny Nov 26, 2026
71cdc65
Open a dropped file that has no path under its name, in memory.
agarny Nov 26, 2026
cff4ff0
Accept a lowercase %7c as a file path separator in opencor:// links.
agarny Nov 26, 2026
dbc3bcf
Reject numbers that are too large to be represented.
agarny Nov 26, 2026
aade353
Have the CORS proxy require an unprefixed svg root, as the app does.
agarny Nov 26, 2026
8f45e1a
Prune the temporary files left behind by failed asset uploads.
agarny Nov 26, 2026
cb86ed2
Only hide the OpenCOR message if it is still the one that was shown.
agarny Nov 26, 2026
e2644f4
Keep the tab-switch flash away when switching tabs quickly.
agarny Nov 26, 2026
35f61ed
Cancel the body of an upstream error response in the CORS proxy.
agarny Nov 26, 2026
df539f2
Always check that CSV content looks like a CSV file in the CORS proxy.
agarny Nov 26, 2026
4193607
Report empty CSV data as an issue rather than as added.
agarny Nov 26, 2026
3bb6b10
Read further and report why CSV content is rejected in the CORS proxy.
agarny Nov 26, 2026
8860f55
Wait for a cancelled update download to settle and ignore its outcome.
agarny Nov 27, 2026
34688c7
Only treat an encoded "|" as a separator when it is followed by a fil…
agarny Nov 27, 2026
8ba3569
Give a dropped file that has no path a unique in-memory name.
agarny Nov 27, 2026
6add174
Ignore any issue with cancelling upstream content in the CORS proxy.
agarny Nov 27, 2026
98c8b24
Only update the OpenCOR message if it is still the one that was shown.
agarny Nov 27, 2026
9de2c40
Treat an encoded "|" as a separator when followed by a URL with any s…
agarny Nov 27, 2026
2686598
Report an issue if a cancelled update download takes too long to settle.
agarny Nov 27, 2026
f71da98
Clarify that dropping a file that has no path twice opens it twice.
agarny Nov 27, 2026
db188e6
Ignore the progress of a cancelled update download while a new one wa…
agarny Nov 27, 2026
0a3c8ed
Only skip reporting a file issue to the main process if it was told t…
agarny Nov 27, 2026
3954d30
Say that a number is too large in magnitude when it cannot be represe…
agarny Nov 27, 2026
89b895d
Updated our dependencies.
agarny Nov 27, 2026
6be6626
Show the headers of our plots' context menus.
agarny Nov 27, 2026
d6f2db9
Third-party libraries: switch to Ubuntu 26.04.
agarny Nov 27, 2026
472576f
CI/CD: use Ubuntu's default GCC rather than installing GCC 16.
agarny Nov 27, 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
55 changes: 38 additions & 17 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,36 @@ permissions:
id-token: write

jobs:
version:
if: ${{ github.repository == 'opencor/webapp' }}
name: Version
runs-on: ubuntu-26.04
steps:
- name: Check out OpenCOR
uses: actions/checkout@v7
- name: Check the version
# Make sure that our tag is our version number (i.e. vX.YYYYMMDD.Z for version X.YYYYMMDD.Z), both for OpenCOR
# and for OpenCOR as a component, so that we never release or publish a version that is not the one we tagged.
# Note: there is no tag to check if we are run manually from a branch.
run: |
if [ "${GITHUB_REF_TYPE}" != "tag" ]; then
echo "::notice::Not run from a tag, so not checking the version."

exit 0
fi

for PACKAGE_JSON in package.json src/renderer/package.json; do
VERSION=$(jq -r .version "${PACKAGE_JSON}")

if [ "${GITHUB_REF_NAME}" != "v${VERSION}" ]; then
echo "::error::Tag ${GITHUB_REF_NAME} doesn't match version ${VERSION} in ${PACKAGE_JSON} (expected v${VERSION})."

exit 1
fi
done
releases:
if: ${{ github.repository == 'opencor/webapp' }}
needs: version
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -23,9 +51,9 @@ jobs:
- name: Windows (ARM)
os: windows-11-arm
- name: Linux (Intel)
os: ubuntu-22.04
os: ubuntu-26.04
- name: Linux (ARM)
os: ubuntu-22.04-arm
os: ubuntu-26.04-arm
- name: macOS (Intel)
os: macos-15-intel
- name: macOS (ARM)
Expand Down Expand Up @@ -67,23 +95,13 @@ jobs:
echo -n $DEVELOPER_ID_APPLICATION_CERTIFICATE_BASE64 | base64 -d > $MACOS_CSC_LINK
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: Install GCC 16
if: ${{ runner.os == 'Linux' }}
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-16 g++-16
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-16 100
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-16 100
echo "CC=gcc-16" >> "$GITHUB_ENV"
echo "CXX=g++-16" >> "$GITHUB_ENV"
- name: Install libopenjp2-tools (Linux ARM only)
if: ${{ matrix.name == 'Linux (ARM)' }}
run: |
sudo apt update
sudo apt install libopenjp2-tools
- name: OpenCOR dependencies
run: bun install
run: bun install --frozen-lockfile
- name: Build OpenCOR
env:
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
Expand All @@ -95,8 +113,9 @@ jobs:
run: bun release
web_app:
if: ${{ github.repository == 'opencor/webapp' }}
needs: version
name: Web app
runs-on: ubuntu-22.04
runs-on: ubuntu-26.04
concurrency:
group: web-app-deployment-app
cancel-in-progress: false
Expand All @@ -110,7 +129,7 @@ jobs:
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: OpenCOR dependencies
run: bun install
run: bun install --frozen-lockfile
- name: Build OpenCOR's Web app
env:
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
Expand Down Expand Up @@ -168,7 +187,9 @@ jobs:
# src/renderer/scripts/prune.web.ts).
npm:
if: ${{ github.repository == 'opencor/webapp' }}
runs-on: ubuntu-22.04
needs: version
name: npm
runs-on: ubuntu-26.04
steps:
- name: Set the timezone to New Zealand
run: sudo timedatectl set-timezone Pacific/Auckland
Expand All @@ -188,7 +209,7 @@ jobs:
- name: OpenCOR dependencies
run: |
cd src/renderer
bun install
bun install --frozen-lockfile
- name: Build OpenCOR as a component
env:
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cddev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
web_app:
if: ${{ github.repository == 'opencor/webapp' }}
name: Web app
runs-on: ubuntu-22.04
runs-on: ubuntu-26.04
concurrency:
group: web-app-deployment-appdev
cancel-in-progress: false
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: OpenCOR dependencies
run: bun install
run: bun install --frozen-lockfile
- name: Build OpenCOR's Web app
env:
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
Expand Down
26 changes: 8 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ jobs:
- name: Windows (ARM)
os: windows-11-arm
- name: Linux (Intel)
os: ubuntu-22.04
os: ubuntu-26.04
- name: Linux (ARM)
os: ubuntu-22.04-arm
os: ubuntu-26.04-arm
- name: macOS (Intel)
os: macos-15-intel
- name: macOS (ARM)
os: macos-15
- name: Code formatting
os: ubuntu-22.04
os: ubuntu-26.04
- name: Linting
os: ubuntu-22.04
os: ubuntu-26.04
- name: Type checking
os: ubuntu-22.04
os: ubuntu-26.04
steps:
- name: Set the timezone to New Zealand
shell: bash
Expand All @@ -46,18 +46,8 @@ jobs:
uses: lukka/get-cmake@latest
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: Install GCC 16
if: ${{ runner.os == 'Linux' }}
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-16 g++-16
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-16 100
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-16 100
echo "CC=gcc-16" >> "$GITHUB_ENV"
echo "CXX=g++-16" >> "$GITHUB_ENV"
- name: OpenCOR dependencies
run: bun install
run: bun install --frozen-lockfile
- name: Build OpenCOR
if: ${{ matrix.name != 'Code formatting' && matrix.name != 'Linting' && matrix.name != 'Type checking' }}
run: bun run build
Expand All @@ -73,14 +63,14 @@ jobs:
if: ${{ matrix.name != 'Code formatting' && matrix.name != 'Linting' && matrix.name != 'Type checking' }}
run: |
cd src/renderer
bun install
bun install --frozen-lockfile
bun build:lib
- name: Code formatting
if: ${{ matrix.name == 'Code formatting' }}
run: bun format:check
- name: Linting
if: ${{ matrix.name == 'Linting' }}
run: bun lint
run: bun lint:check
- name: Type checking
if: ${{ matrix.name == 'Type checking' }}
run: bun typecheck
Expand Down
5 changes: 5 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,18 @@
| `format` | Format the code |
| `format:check` | Check code's formatting |
| `lint` | Lint and automatically fix issues |
| `lint:check` | Check the code for linting issues |
| `release` | Release OpenCOR for the current platform |
| `release:local` | Release OpenCOR for the current platform without code signing |
| `start` | (Build and) start the production version of OpenCOR |
| `start:web` | (Build and) start the production version of OpenCOR's Web app |
| `typecheck` | Check the code for type errors |
| `version:new` | Update the version of OpenCOR |

# Releasing

To release a new version of OpenCOR, update its version (`bun version:new`), commit it, and create a [GitHub release](https://github.com/opencor/webapp/releases) with a tag named after it (i.e. `vX.YYYYMMDD.Z` for version `X.YYYYMMDD.Z`). Our [CD workflow](.github/workflows/cd.yml) then builds and releases OpenCOR for all our platforms, deploys its Web app, and publishes it as a component to [npm](https://www.npmjs.com/package/@opencor/opencor). It fails if the tag doesn't match the version in `package.json` and `src/renderer/package.json`.

# Notes

- OpenCOR does not, by default, work on [Ubuntu 24.04 LTS](https://en.wikipedia.org/wiki/Ubuntu_version_history#2404) and later (see [here](https://github.com/opencor/webapp/issues/68) for more information), although it can be made to work by running the following command:
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ There are two versions of OpenCOR:
1. **OpenCOR:** a desktop application that can be run on [Intel](https://en.wikipedia.org/wiki/List_of_Intel_processors)-based and [ARM](https://en.wikipedia.org/wiki/ARM_architecture_family)-based [Windows](https://en.wikipedia.org/wiki/Microsoft_Windows), [Linux](https://en.wikipedia.org/wiki/Linux), and [macOS](https://en.wikipedia.org/wiki/MacOS) machines; and
2. **OpenCOR's Web app:** a [Web app](https://en.wikipedia.org/wiki/Web_application) that can be run on a Web browser.

[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/opencor/webapp)
![Repobeats analytics](https://repobeats.axiom.co/api/embed/d0a1f79856e596650302d182fea50cdccfed853a.svg)
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
}
},
{
"includes": ["src/assets/logo.svg"],
"includes": ["tests/models/celldl/*.svg"],
"formatter": {
"enabled": false
},
Expand Down
Loading
Loading