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

Release/3.2.0 #365

Merged
merged 89 commits into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
ab33325
feat: implemented button and initial modal
jose-carlos-sousa Aug 30, 2024
cafecb2
update : changed play icon to play circular icon
jose-carlos-sousa Aug 30, 2024
d314f41
mend
jose-carlos-sousa Aug 30, 2024
13e7106
mend
jose-carlos-sousa Sep 3, 2024
600b900
created session type
jose-carlos-sousa Sep 4, 2024
8e5a82e
feature: iniciar sessao modal and improved copy button
jose-carlos-sousa Sep 7, 2024
47acebc
fix: major results are scrollable
tomaspalma Sep 7, 2024
2927db2
Merge pull request #290 from NIAEFEUP/fix/major-results-scrollable
tomaspalma Sep 7, 2024
ca2ff30
fix: sometimes class options were not always shown
tomaspalma Sep 8, 2024
3efd3cd
Merge pull request #291 from NIAEFEUP/fix/sometimes-options-now-shown
tomaspalma Sep 9, 2024
b7f5ada
feat: random fill warns if no valid schedule found and if no classes …
tomaspalma Sep 9, 2024
3f87efd
Merge pull request #293 from NIAEFEUP/feat/random-fill-warn-if-no-sch…
tomaspalma Sep 9, 2024
6160724
fix: app crashing sometimes after refresh course unit hashes
tomaspalma Sep 9, 2024
c951fc4
Merge pull request #294 from NIAEFEUP/fix/app-crashing-sometimes-afte…
tomaspalma Sep 9, 2024
5b5a787
chore: remove class item consolelogs
tomaspalma Sep 9, 2024
5e34321
Merge pull request #295 from NIAEFEUP/chore/remove-classitem-consolelogs
tomaspalma Sep 9, 2024
eaf350a
fix : improved mobile responsiveness regarding the session table
jose-carlos-sousa Sep 7, 2024
1a9f839
fix : now picked class id is updated
jose-carlos-sousa Sep 10, 2024
2eb4756
fix : now picked class id is updated
jose-carlos-sousa Sep 10, 2024
eabcb90
Merge branch '298-improve-refresh-logic-by-removing-picked-class-id-i…
jose-carlos-sousa Sep 10, 2024
3055e8b
Merge pull request #299 from NIAEFEUP/298-improve-refresh-logic-by-re…
jose-carlos-sousa Sep 12, 2024
f6ba707
fix: random fill scroll
tomaspalma Sep 9, 2024
d5be22c
Merge pull request #296 from NIAEFEUP/fix/random-fill-scroll
tomaspalma Sep 12, 2024
21b2963
chore: change default app title from timetablescheduler to timetables…
tomaspalma Sep 13, 2024
68a3e20
feature : more colors for participants and user icon is now responsive
jose-carlos-sousa Sep 14, 2024
b90bf1e
mend
jose-carlos-sousa Sep 14, 2024
db71f40
fix : update collab button to CollaborativeSession button
jose-carlos-sousa Sep 14, 2024
6279f09
Merge pull request #302 from NIAEFEUP/chore/change-default-app-title
tomaspalma Sep 14, 2024
ee6f778
fix : changed text tone and dont display collab button in prod
jose-carlos-sousa Sep 15, 2024
51b9e2e
mend
jose-carlos-sousa Sep 15, 2024
9092376
chore: created DevMode component
jose-carlos-sousa Sep 15, 2024
952e090
Merge pull request #305 from NIAEFEUP/251-create-collaborative-sessio…
jose-carlos-sousa Sep 16, 2024
c467232
fix: filtered teachers remain put
tomaspalma Sep 16, 2024
b6c2e6b
Merge pull request #306 from NIAEFEUP/fix/filtered-teachers-remain-put
tomaspalma Sep 16, 2024
59448b8
chore(deps): bump vite from 5.4.0 to 5.4.6
dependabot[bot] Sep 17, 2024
46678c6
Merge pull request #309 from NIAEFEUP/dependabot/npm_and_yarn/vite-5.4.6
tomaspalma Sep 18, 2024
ea1db5c
chore: setup linter
tomaspalma Sep 16, 2024
4fa0ce3
ci: added workflow to run linter
tomaspalma Sep 16, 2024
e365519
chore: add lint --fix command to package.json
tomaspalma Sep 16, 2024
b019db0
ci: linter action not running on draft prs
tomaspalma Sep 19, 2024
8db09ed
Merge pull request #307 from NIAEFEUP/chore/linter
tomaspalma Sep 20, 2024
7076ccb
fix: collab session duplicate definition
tomaspalma Sep 22, 2024
7fe89f1
Merge pull request #311 from NIAEFEUP/fix/collab-session-duplicate-de…
tomaspalma Sep 22, 2024
31a64ec
chore(deps): bump rollup
dependabot[bot] Sep 29, 2024
b3d9150
Merge pull request #315 from NIAEFEUP/dependabot/npm_and_yarn/multi-6…
tomaspalma Oct 1, 2024
5951cbd
fix: class shown on schedule is now always the selected ones
tomaspalma Sep 22, 2024
9e10cf2
Merge pull request #310 from NIAEFEUP/fix/class-preview-sometimes-wrong
tomaspalma Oct 1, 2024
8f96157
Sentry setup: errors, performance monitoring and session replays
thePeras Aug 14, 2024
cd23b92
fix: missing React import was causing sentry not to initialize
tomaspalma Sep 17, 2024
29f18ec
refactor: removed duplicate import
tomaspalma Oct 8, 2024
013b7a2
Merge pull request #246 from NIAEFEUP/feature/sentry-setup
tomaspalma Oct 8, 2024
b3d31af
chore(deps): bump @sentry/browser and @sentry/react
dependabot[bot] Oct 8, 2024
8a15ab2
Merge pull request #320 from NIAEFEUP/dependabot/npm_and_yarn/multi-2…
tomaspalma Oct 9, 2024
7561ad6
ci: sentry release and source map uploads
thePeras Oct 9, 2024
d9a4c3f
fix: class conflict between T and two TPs
vitormpp Oct 15, 2024
813c2cb
Merge pull request #326 from NIAEFEUP/fix/class-conflict
vitormpp Oct 15, 2024
e4eb8bc
fix: lock option
vitormpp Oct 15, 2024
4ff80eb
Merge branch 'develop' into fix/lock-option
thePeras Oct 15, 2024
9a13f45
Merge pull request #327 from NIAEFEUP/fix/lock-option
vitormpp Oct 15, 2024
39115ab
chore: sentry tracing report disabled by default in dev mode
tomaspalma Oct 17, 2024
24fb9b0
Merge pull request #329 from NIAEFEUP/chore/sentry-disabled-dev-default
tomaspalma Oct 31, 2024
b7328db
Update sentry workflow to use the marketplace action
thePeras Nov 1, 2024
90bb518
Merge branch 'develop' into ci/sentry
thePeras Nov 1, 2024
019a7a8
Create sentry environment
thePeras Nov 2, 2024
999b48a
Merge branch 'ci/sentry' of github.com:NIAEFEUP/tts-revamp-fe into ci…
thePeras Nov 2, 2024
4a7ec54
Merge pull request #323 from NIAEFEUP/ci/sentry
thePeras Nov 2, 2024
5c26622
fix: class item conflict indicator correct severity
tomaspalma Oct 17, 2024
3ca1d9f
Merge pull request #330 from NIAEFEUP/fix/conflict-triangle-not-showi…
tomaspalma Nov 4, 2024
d797946
enhancement: Remover seleção should appear only when there is a major…
ghRodrigo Nov 6, 2024
24453e4
Merge branch 'develop' into enhancement/removerselecao
thePeras Nov 6, 2024
41f7b7e
Merge pull request #336 from NIAEFEUP/enhancement/removerselecao
thePeras Nov 6, 2024
8800b38
chore(deps): bump rollup from 4.20.0 to 4.25.0
dependabot[bot] Nov 9, 2024
dc4cdba
Merge pull request #338 from NIAEFEUP/dependabot/npm_and_yarn/rollup-…
Process-ing Nov 9, 2024
2032e24
Add WebSocket integration
Process-ing Nov 9, 2024
49b1afa
Remove console logs
Process-ing Nov 9, 2024
807da66
Fix Socket.IO client dependency
Process-ing Nov 9, 2024
020dbc8
Make WebSocket URL schema dynamic
Process-ing Nov 9, 2024
5edb800
Merge pull request #337 from NIAEFEUP/feature/websockets
Process-ing Nov 10, 2024
8cb93ac
feat: added erase button design
racoelhosilva Nov 17, 2024
c097e49
feat: added eraseClasses logic
racoelhosilva Nov 17, 2024
c8cd03b
fix: reset locked state on class erase
racoelhosilva Nov 18, 2024
40c0da4
Merge pull request #341 from NIAEFEUP/feature/erase-classes
racoelhosilva Nov 18, 2024
694657f
chore(deps): bump cross-spawn from 7.0.3 to 7.0.6
dependabot[bot] Nov 19, 2024
cc3ff6f
Merge pull request #344 from NIAEFEUP/dependabot/npm_and_yarn/cross-s…
tomaspalma Dec 16, 2024
9084b75
chore(deps): bump nanoid from 3.3.7 to 3.3.8
dependabot[bot] Dec 16, 2024
bf4fbcd
Merge pull request #352 from NIAEFEUP/dependabot/npm_and_yarn/nanoid-…
tomaspalma Dec 16, 2024
f92f843
fix: sentry action could not find version
tomaspalma Nov 23, 2024
2202a73
Merge pull request #347 from NIAEFEUP/fix/sentry-action
tomaspalma Dec 17, 2024
992fe39
Merge branch 'main' into release/3.2.0
tomaspalma Jan 25, 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: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ VITE_APP_PLAUSIBLE_HOST=
VITE_APP_SEMESTER=
VITE_APP_SITE_TITLE=
VITE_APP_BACKEND_URL=

VITE_APP_SENTRY_DSN=https://[email protected]/4507775325437952
VITE_APP_SENTRY_TRACING=0

# To upload source maps to Sentry (Optional)
APP_SENTRY_AUTH_TOKEN=
42 changes: 42 additions & 0 deletions .github/workflows/codeanalysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Code analysis

on:
pull_request:
branches:
- develop
- main
types: [ready_for_review, synchronize, opened, reopened]

jobs:
lint:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: Lint

strategy:
matrix:
node-version: [21.x]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3

- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: npm install

- name: Build site
run: npm run build

- name: Lint Code
run: npm run lint

50 changes: 50 additions & 0 deletions .github/workflows/release_version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Check Package Version

on:
pull_request:
branches:
- main

jobs:
check_version:
runs-on: ubuntu-latest

steps:
- name: Checkout PR branch code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Get PR package version
id: pr_version
run: |
PR_VERSION=$(jq -r .version < package.json)
echo "::set-output name=pr_version::$PR_VERSION"

- name: Fetch and checkout the main branch
run: |
git fetch origin main
git checkout origin/main

- name: Compare PR versions
run: |
PR_VERSION=${{ steps.pr_version.outputs.pr_version }}
MAIN_VERSION=$(jq -r .version < package.json)
echo "Main branch version: $MAIN_VERSION"
echo "PR version: $PR_VERSION"

version_greater() {
printf '%s\n%s' "$1" "$2" | sort -V | head -n1 | grep -q "$2"
}

if version_greater "$PR_VERSION" "$MAIN_VERSION"; then
echo "Version is correct!"
else
echo "Error: PR version ($PR_VERSION) is not greater than main version ($MAIN_VERSION)."
exit 1
fi
54 changes: 54 additions & 0 deletions .github/workflows/sentry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Sentry Release

on:
push:
branches:
- main
- develop

jobs:
release:
runs-on: ubuntu-latest
environment:
name: sentry

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: yarn install

- name: Build project
run: yarn build

- name: Determine release version (default to commit hash)
id: get_version
run: |
VERSION=$(git rev-parse --short HEAD)

# Override version if on main branch to use package.json version
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
VERSION=$(jq -r .version < package.json)
fi

echo "Version to be released: $VERSION"
echo "::set-output name=release_version::$VERSION"

- name: Create and Finalize Sentry Release
uses: getsentry/action-release@v1
with:
environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'staging' }}
version: ${{ steps.get_version.outputs.release_version }}
ignore_missing: true
sourcemaps: ./build
finalize: true
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<h3 align="center"> TimeTableScheduler - Frontend </h3>
<h3 align="center"> Time Table Selector - Frontend </h3>
<p align="center"> A platform where students can experiment with the possible combination of schedule options they can pick at the start of the semester </p>
<p align="center">
<a href="https://reactjs.org/">
Expand Down
40 changes: 40 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";

export default [
{
files: ["src/*.{js,mjs,cjs,ts,jsx,tsx}"],
},
{
languageOptions:
{
globals: { ...globals.browser, ...globals.node }
},
},
{
settings: {
react: {
version: '18.2',
},
},
},
{
ignores: ["src/components/ui/*", "src/components/svgs/*", "build/"],
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
rules: {
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-require-imports': 'off',
'no-console': ['error', { allow: ["error", "warn", "debug"] }]
}
},
];
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#b33636" />
<meta name="description" content="NIAEFEUP | TimeTableScheduler" />
<meta name="description" content="NIAEFEUP | Time Table Selector" />
<link rel="apple-touch-icon" href="/logo192.png" />

<!-- Fonts -->
Expand All @@ -21,7 +21,7 @@
/>

<link rel="manifest" href="/manifest.json" />
<title>NIAEFEUP | TimeTableScheduler</title>
<title>NIAEFEUP | Time Table Selector</title>
</head>

<body>
Expand Down
Loading
Loading