Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
2da6e0c
fix eslint config.
Sharmaz Dec 18, 2025
2abe41c
fix eslint config.
Sharmaz Dec 18, 2025
4d7dab3
fix dependencies vulnerabilities and lint erros at src level.
Sharmaz Dec 19, 2025
cbc41bc
fix i18n lint errors and improve it.
Sharmaz Dec 19, 2025
5e2f83f
add relative imports beyond @components.
Sharmaz Dec 19, 2025
39b8fbf
add relative imports in tests.
Sharmaz Dec 19, 2025
4be034e
add tests for SelectBusiness component.
Sharmaz Dec 20, 2025
27a363a
fix lint issues at onboarding locales, utils, and tests.
Sharmaz Dec 20, 2025
855644b
fix linter errors and improve Onboarding components.
Sharmaz Dec 20, 2025
e77f9bd
Merge branch 'development' into fix/onboarding
Sharmaz Dec 20, 2025
106deea
Merge pull request #301 from Sharmaz/fix/onboarding
Sharmaz Dec 20, 2025
1a7a9eb
Solve lint problems in users, and add tests for users
Vidarte-Alberto Dec 20, 2025
bd3ca81
refactor: update server tests workflow and add phoenixd installation …
JordyPirata Dec 23, 2025
8fe6043
chore: update E2E tests trigger and enhance test logging in build con…
JordyPirata Dec 24, 2025
dc58926
chore: add workflow_dispatch trigger to client unit tests and E2E tests
JordyPirata Dec 24, 2025
45bf191
chore: remove redundant RoutingTest and TestServer classes
JordyPirata Dec 24, 2025
5ad0c24
chore: rename workflow to 'Server Unit Tests' for clarity
JordyPirata Dec 24, 2025
7d6237e
chore: remove verify.sh script as it is no longer needed
JordyPirata Dec 24, 2025
b9c52cc
Merge pull request #305 from olympus-btc/feature/update-install
JordyPirata Dec 24, 2025
63f9b74
fix all comment resquested
Vidarte-Alberto Dec 25, 2025
4a51636
chore: refactor installation scripts and enhance logging for Ambrosia…
JordyPirata Dec 25, 2025
3284667
Merge pull request #306 from olympus-btc/feature/update-install
JordyPirata Dec 26, 2025
488d3be
Merge pull request #302 from olympus-btc/fix/store-users
Vidarte-Alberto Dec 26, 2025
968f4c0
Solve lint problems in products, and add tests for products
Vidarte-Alberto Dec 20, 2025
cdd94a1
fix all comment resquested
Vidarte-Alberto Dec 26, 2025
0362675
remove unnecessary comments on onboarding components.
Sharmaz Dec 20, 2025
666c5de
fix settings linter errors.
Sharmaz Dec 26, 2025
cd36f2f
added tests for Settings and EdditSettingsModal.
Sharmaz Dec 26, 2025
02ac4e1
refactor useCurrency hook and fix linter errors.
Sharmaz Dec 26, 2025
79e81ae
add test with coverage script, increase Store Settings coverage.
Sharmaz Dec 26, 2025
14555a9
Increase product test coverage to 80%.
Vidarte-Alberto Dec 27, 2025
df332ba
Merge pull request #307 from Sharmaz/fix/store-settings
Sharmaz Dec 27, 2025
792068e
Merge pull request #303 from olympus-btc/fix/store-products
Vidarte-Alberto Dec 27, 2025
80f9b9e
Increase user test coverage to 100%.
Vidarte-Alberto Dec 30, 2025
be2cae2
improve store cart coverage
Vidarte-Alberto Dec 30, 2025
c13f49c
solve import on cart test
Vidarte-Alberto Dec 30, 2025
0e43af1
Merge pull request #308 from olympus-btc/fix/store-users
Vidarte-Alberto Dec 30, 2025
34de671
chore: enhance uninstall script by clarifying symlink removal messages
JordyPirata Dec 30, 2025
c3294de
solve lint issues and implement more test to coverage 80%
Vidarte-Alberto Dec 30, 2025
efa4d87
Merge pull request #309 from olympus-btc/feature/update-install
JordyPirata Dec 30, 2025
50e1fdf
solve translate message
Vidarte-Alberto Dec 30, 2025
294b457
solve translate test in tests
Vidarte-Alberto Dec 31, 2025
849e8bb
solve orders in lint
Vidarte-Alberto Dec 31, 2025
c42655a
Merge pull request #310 from olympus-btc/fix/store-cart
Vidarte-Alberto Dec 31, 2025
3a30129
add alphabetic sort for payment methods, change title for btcpaymentm…
Vidarte-Alberto Dec 31, 2025
32f9ee8
add test for coverage tests 80%
Vidarte-Alberto Dec 31, 2025
538b0d5
solve lint problems
Vidarte-Alberto Jan 1, 2026
47a41e5
Merge pull request #311 from olympus-btc/fix/store-cart
Vidarte-Alberto Jan 2, 2026
878543d
Merge pull request #312 from olympus-btc/fix/store-orders
Vidarte-Alberto Jan 3, 2026
f14cc1c
Authenticate logout route; make token expiration configurable
sip-21 Nov 25, 2025
f3abb3c
Update packages
sip-21 Dec 3, 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
2 changes: 2 additions & 0 deletions .github/workflows/client_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
pull_request:
branches: '**'

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: E2E Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches: '**'

workflow_dispatch:

jobs:
e2e-tests:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Server Tests
name: Server Unit Tests

on:
pull_request:
Expand All @@ -23,20 +23,6 @@ jobs:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: install ambrosia
run: curl -fsSL https://raw.githubusercontent.com/olympus-btc/ambrosia/master/scripts/ambrosia.sh | bash

- name: Check Ambrosia POS installation
run: command -v ambrosia

- name: install phoenixd
run: curl -fsSL https://raw.githubusercontent.com/olympus-btc/ambrosia/master/scripts/phoenixd.sh | bash

- name: Check phoenixd installation
run: command -v phoenixd

- name: Run phoenixd
run: phoenixd --chain=testnet --seed=${{ env.CISEED }} &

- name: Make Gradle wrapper executable
run: chmod +x ./server/gradlew
Expand Down
80 changes: 80 additions & 0 deletions .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Test Installer Script

on:
pull_request:
branches: '**'

workflow_dispatch:

permissions:
contents: read

jobs:
test-install:
strategy:
matrix:
# Test on Linux (x64) and macOS (ARM64/x64)
os: [ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Make install script executable
run: chmod +x scripts/install.sh

- name: Run install script
# Using --no-service because CI runners often lack systemd or we don't want background services
run: ./scripts/install.sh --yes --no-service

- name: Verify phoenixd binary
run: |
export PATH="/usr/local/bin:$PATH"
echo "Checking phoenixd in PATH..."
which phoenixd
phoenixd --version || echo "phoenixd executed (exit code may be non-zero for version flag)"

- name: Verify Ambrosia Server
run: |
export PATH="$HOME/.local/bin:$PATH"
echo "Checking ambrosia symlink..."
which ambrosia
ls -l $(which ambrosia)

echo "Checking server files..."
if [ ! -f "$HOME/.local/ambrosia/ambrosia.jar" ]; then
echo "Error: ambrosia.jar not found"
exit 1
fi

- name: Verify Ambrosia Client
run: |
export PATH="$HOME/.local/bin:$PATH"
echo "Checking ambrosia-client symlink..."
which ambrosia-client
ls -l $(which ambrosia-client)

echo "Checking client files and dependencies..."
if [ ! -f "$HOME/.local/ambrosia/run-client.sh" ]; then
echo "Error: run-client.sh not found"
exit 1
fi

# Verify npm install ran (node_modules should exist)
if [ ! -d "$HOME/.local/ambrosia/client/node_modules" ]; then
echo "Error: node_modules not found in client directory"
exit 1
fi
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Environment variables
.env
.DS_Store
# AI generated files
CLAUDE.md
4 changes: 4 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# AI generated files
CLAUDE.md
AGENTS.md
28 changes: 28 additions & 0 deletions client/__tests__/__mocks__/framer-motion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from "react";

const cleanMotionProps = (props) => {
const sanitized = { ...props };
[
"initial",
"animate",
"exit",
"variants",
"transition",
"whileTap",
"whileHover",
"onAnimationComplete",
"onAnimationStart",
].forEach((key) => delete sanitized[key]);
return sanitized;
};

const Mock = React.forwardRef(({ children, ...props }, ref) => (
<div ref={ref} {...cleanMotionProps(props)}>{children}</div>
));
Mock.displayName = "FramerMotionMock";

export const AnimatePresence = ({ children }) => children;
export const LazyMotion = ({ children }) => children;
export const domAnimation = {};
export const motion = new Proxy({}, { get: () => Mock });
export const m = new Proxy({}, { get: () => Mock });
10 changes: 10 additions & 0 deletions client/__tests__/__mocks__/globals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
if (typeof global.localStorage === "undefined") {
const store = {};
global.localStorage = {
getItem: jest.fn((key) => store[key]),
setItem: jest.fn((key, value) => { store[key] = String(value); }),
clear: jest.fn(() => {
Object.keys(store).forEach((k) => delete store[k]);
}),
};
}
2 changes: 1 addition & 1 deletion client/__tests__/__mocks__/svgMock.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
__esModule: true,
default: 'SvgMock',
default: "SvgMock",
};
Loading