Skip to content

Commit ed52dc3

Browse files
pgallinoManuel-Pol
andauthored
Add Element Selection and Highlighting with Enhanced RightBar Interface (#30)
Element Selection Functionality: - Implemented a selection mechanism for devices and edges. - Selected edges are highlighted with a distinct color for improved visual feedback. - Selected devices are now highlighted with a frame, making it easier to identify them. Refactoring of Edge and ViewGraph Classes: - Improved separation of concerns between Edge and ViewGraph. Refactored RightBar with Interface Implementation: - Introduced an interface for RightBar to display information and add buttons more easily. - Simplified the process of updating RightBar content Closes #29 Closes #28 --------- Co-authored-by: Manuel <[email protected]> Co-authored-by: Manuel Pol <[email protected]>
1 parent 79fd9b3 commit ed52dc3

File tree

19 files changed

+932
-665
lines changed

19 files changed

+932
-665
lines changed

.github/workflows/ci.yml

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
1-
name: CI
2-
3-
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ '**' ]
8-
9-
concurrency:
10-
group: ${{ github.workflow }}-${{ github.ref }}
11-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
12-
13-
env:
14-
NODE_VERSION: 20
15-
16-
jobs:
17-
build:
18-
runs-on: ubuntu-latest
19-
steps:
20-
- name: Checkout
21-
uses: actions/checkout@v4
22-
23-
- name: Use Node.js 20
24-
uses: actions/setup-node@v4
25-
with:
26-
node-version: ${{ env.NODE_VERSION }}
27-
28-
- name: Install dependencies
29-
run: npm ci
30-
31-
- name: Build project
32-
run: npm run build
33-
34-
lint:
35-
runs-on: ubuntu-latest
36-
steps:
37-
- name: Checkout
38-
uses: actions/checkout@v4
39-
40-
- name: Use Node.js 20
41-
uses: actions/setup-node@v4
42-
with:
43-
node-version: ${{ env.NODE_VERSION }}
44-
45-
- name: Install dependencies
46-
run: npm ci
47-
48-
- name: Lint project
49-
run: npm run lint
50-
51-
test:
52-
runs-on: ubuntu-latest
53-
steps:
54-
- name: Checkout
55-
uses: actions/checkout@v4
56-
57-
- name: Use Node.js 20
58-
uses: actions/setup-node@v4
59-
with:
60-
node-version: ${{ env.NODE_VERSION }}
61-
62-
- name: Install dependencies
63-
run: npm ci
64-
65-
- name: Lint project
66-
run: npm run test
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ '**' ]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
12+
13+
env:
14+
NODE_VERSION: 20
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Use Node.js 20
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ env.NODE_VERSION }}
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Build project
32+
run: npm run build
33+
34+
lint:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
40+
- name: Use Node.js 20
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: ${{ env.NODE_VERSION }}
44+
45+
- name: Install dependencies
46+
run: npm ci
47+
48+
- name: Lint project
49+
run: npm run lint
50+
51+
test:
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Checkout
55+
uses: actions/checkout@v4
56+
57+
- name: Use Node.js 20
58+
uses: actions/setup-node@v4
59+
with:
60+
node-version: ${{ env.NODE_VERSION }}
61+
62+
- name: Install dependencies
63+
run: npm ci
64+
65+
- name: Lint project
66+
run: npm run test

.github/workflows/deploy.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
# Simple workflow for deploying to GitHub Pages
2-
name: Deploy to Pages
3-
4-
on:
5-
# Runs on pushes targeting the default branch
6-
push:
7-
branches: ["main"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
11-
12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13-
permissions:
14-
contents: read
15-
pages: write
16-
id-token: write
17-
18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20-
concurrency:
21-
group: "pages"
22-
cancel-in-progress: false
23-
24-
env:
25-
NODE_VERSION: 20
26-
27-
jobs:
28-
# Single deploy job since we're just deploying
29-
deploy:
30-
runs-on: ubuntu-latest
31-
steps:
32-
- name: Checkout
33-
uses: actions/checkout@v4
34-
35-
- name: Use Node.js 20
36-
uses: actions/setup-node@v4
37-
with:
38-
node-version: ${{ env.NODE_VERSION }}
39-
40-
- name: Build
41-
run: |
42-
npm ci
43-
npm run build
44-
45-
- name: Upload artifact
46-
uses: actions/upload-pages-artifact@v3
47-
with:
48-
path: './dist'
49-
50-
- name: Deploy to GitHub Pages
51-
id: deployment
52-
uses: actions/deploy-pages@v4
1+
# Simple workflow for deploying to GitHub Pages
2+
name: Deploy to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
env:
25+
NODE_VERSION: 20
26+
27+
jobs:
28+
# Single deploy job since we're just deploying
29+
deploy:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
35+
- name: Use Node.js 20
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: ${{ env.NODE_VERSION }}
39+
40+
- name: Build
41+
run: |
42+
npm ci
43+
npm run build
44+
45+
- name: Upload artifact
46+
uses: actions/upload-pages-artifact@v3
47+
with:
48+
path: './dist'
49+
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)