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

refactor(frontend): refactor tests and stories for sidebar #1188

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

ogerly
Copy link
Contributor

@ogerly ogerly commented Jun 19, 2024

No description provided.

@ogerly ogerly self-assigned this Jun 21, 2024
@ogerly ogerly changed the title 709 6 toggle in top menu feat(frontend): 709 6 toggle in top menu Jun 27, 2024
@ogerly
Copy link
Contributor Author

ogerly commented Jun 27, 2024

Bildschirmfoto vom 2024-06-27 11-11-57
letzter stand

@ogerly
Copy link
Contributor Author

ogerly commented Jun 28, 2024

I have the ListWithNavigationDrawer component in the top and bottom menus. at this point it only needs to be filled.

@ogerly
Copy link
Contributor Author

ogerly commented Jun 28, 2024

2024-06-2808-49-50-ezgif.com-crop-video.mp4

@ogerly ogerly requested a review from Mogge June 28, 2024 08:14
frontend/src/components/menu/BottomMenu.vue Outdated Show resolved Hide resolved
frontend/src/components/menu/BottomMenu.vue Outdated Show resolved Hide resolved
frontend/src/components/menu/BottomMenu.vue Outdated Show resolved Hide resolved
frontend/src/pages/silent-refresh/+Page.vue Outdated Show resolved Hide resolved
@ogerly
Copy link
Contributor Author

ogerly commented Jul 3, 2024

i have added jsdom which fixes our error in the frontend/src/components/buttons/CreateButtonMobile.test.ts. the tests should now throw fewer warnings.

Copy link
Contributor

@roschaefer roschaefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we please pair-program on this one @ogerly?

Here's a quick review already.

frontend/scripts/tests/setup-jsdom.ts Outdated Show resolved Hide resolved
backend/src/index.ts Outdated Show resolved Hide resolved
frontend/src/components/menu/BottomMenu.test.ts Outdated Show resolved Hide resolved
@Bettelstab
Copy link
Contributor

Bettelstab commented Jul 3, 2024 via email

@ogerly ogerly requested a review from roschaefer July 4, 2024 05:17
@Bettelstab Bettelstab force-pushed the 709-6-Toggle-In-TopMenu branch from 9d684b7 to bf9400a Compare July 10, 2024 11:04
Merge branch 'master' into 709-6-Toggle-In-TopMenu
resolve review - robert

resolve review - robert

fix eslint in backend

fix unit update after rebase

fix storybook error jsdom

fix lint

resolve conclict from - git rebase origin/master

fix lint

Update frontend/src/components/menu/BottomMenu.vue
Update frontend/src/components/menu/BottomMenu.vue
Update frontend/src/components/menu/BottomMenu.vue
fix test:lint add @typescript-eslint/no-unsafe-argument

fix test:unit

fix test:lint

fix stories

remove unused code

camera button position in percent

fix lint eslint, test update

add cursor:pointer an camera icon in top und bottom menu

add changes ListWithNavigationDrawer saved

fix update, lint, test

add ListWithNavigationDrawer in bottom menu and topmenu

remove MessageIndicator NewsIndicator file in bottom menu

fix eslint

resolve conclict from - git rebase origin/master

all tests, lint fix

test drawer buttom menu, commented out

resolve conclict from - git rebase origin/master

resolve conclict from - git rebase origin/master

resolve conclict from - git rebase origin/master

remove timeout for refetch rooms

more logs, use setRooms to update state

delay refetch open rooms 1 min, more console to debug

console to debug

linting

error handling refetch open rooms

handle click event on open room

type startTime in Room/OpenRoom is string

resolve conclict from - git rebase origin/master

Add rooms store.

resolve conclict from - git rebase origin/master

Fix linting

resolve conclict from - git rebase origin/master

resolve conclict from - git rebase origin/master

fix style

fix eslint

remove space

lint fix

resolve conclict from - git rebase origin/master

remove render files

remove only from test

resolve conclict from - git rebase origin/master

change classname

resolve conclict from - git rebase origin/master

resolve conclict from - git rebase origin/master

fix test and lint and update

add snapshot

resolve conflicts, remove Navigatin Drawer Component

remove unused prop

Update frontend/src/components/vuetify/NavigationDrawer.vue

Co-authored-by: Moriz Wahl <[email protected]>
Update frontend/src/components/vuetify/NavigationDrawer.vue

Co-authored-by: Moriz Wahl <[email protected]>
add snapshots

remove unused file

add locale, change tsconfig

coverage to 96%

fix lint

add snapshots, ??render config???

resolve conclict from - git rebase origin/master

fix lint, fix test

clear imports

Add Snapshots

clear imports

Add Snapshot, fix lint

Add SearchField Component

fix clear imports

 change files and folders for atomic design

add ListWithNavigationDrawer Component, change files and folders for atomic design

fix test

add snapshot

fix lint

NavigationDrawer Component

fix test and lint

Add ListElement Component
@Bettelstab Bettelstab force-pushed the 709-6-Toggle-In-TopMenu branch from bf9400a to 2eaa8ca Compare July 10, 2024 11:20
@Bettelstab Bettelstab enabled auto-merge (squash) July 10, 2024 11:21
Elweyn
Elweyn previously approved these changes Jul 10, 2024
Copy link
Member

@Elweyn Elweyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the rebase

@Elweyn Elweyn changed the title feat(frontend): 709 6 toggle in top menu feat(frontend): add tests and stories for sidebar Jul 10, 2024
Merge branch 'master' into 709-6-Toggle-In-TopMenu
resolve review - robert

resolve review - robert

fix eslint in backend

fix unit update after rebase

fix storybook error jsdom

fix lint

resolve conclict from - git rebase origin/master

fix lint

Update frontend/src/components/menu/BottomMenu.vue
Update frontend/src/components/menu/BottomMenu.vue
Update frontend/src/components/menu/BottomMenu.vue
fix test:lint add @typescript-eslint/no-unsafe-argument

fix test:unit

fix test:lint

fix stories

remove unused code

camera button position in percent

fix lint eslint, test update

add cursor:pointer an camera icon in top und bottom menu

add changes ListWithNavigationDrawer saved

fix update, lint, test

add ListWithNavigationDrawer in bottom menu and topmenu

remove MessageIndicator NewsIndicator file in bottom menu

fix eslint

resolve conclict from - git rebase origin/master

all tests, lint fix

test drawer buttom menu, commented out

resolve conclict from - git rebase origin/master

resolve conclict from - git rebase origin/master

resolve conclict from - git rebase origin/master

remove timeout for refetch rooms

more logs, use setRooms to update state

delay refetch open rooms 1 min, more console to debug

console to debug

linting

error handling refetch open rooms

handle click event on open room

type startTime in Room/OpenRoom is string

resolve conclict from - git rebase origin/master

Add rooms store.

resolve conclict from - git rebase origin/master

Fix linting

resolve conclict from - git rebase origin/master

resolve conclict from - git rebase origin/master

fix style

fix eslint

remove space

lint fix

resolve conclict from - git rebase origin/master

remove render files

remove only from test

resolve conclict from - git rebase origin/master

change classname

resolve conclict from - git rebase origin/master

resolve conclict from - git rebase origin/master

fix test and lint and update

add snapshot

resolve conflicts, remove Navigatin Drawer Component

remove unused prop

Update frontend/src/components/vuetify/NavigationDrawer.vue

Co-authored-by: Moriz Wahl <[email protected]>
Update frontend/src/components/vuetify/NavigationDrawer.vue

Co-authored-by: Moriz Wahl <[email protected]>
add snapshots

remove unused file

add locale, change tsconfig

coverage to 96%

fix lint

add snapshots, ??render config???

resolve conclict from - git rebase origin/master

fix lint, fix test

clear imports

Add Snapshots

clear imports

Add Snapshot, fix lint

Add SearchField Component

fix clear imports

 change files and folders for atomic design

add ListWithNavigationDrawer Component, change files and folders for atomic design

fix test

add snapshot

fix lint

NavigationDrawer Component

fix test and lint

Add ListElement Component
@Bettelstab Bettelstab changed the title feat(frontend): add tests and stories for sidebar refactor(frontend): refactor tests and stories for sidebar Jul 10, 2024
@Elweyn Elweyn dismissed roschaefer’s stale review July 10, 2024 11:46

Done with ogerly and bettelstab

@Bettelstab Bettelstab merged commit ce3cd41 into master Jul 10, 2024
36 checks passed
Mogge added a commit that referenced this pull request Jul 10, 2024
roschaefer added a commit that referenced this pull request Jul 10, 2024
Motivation
----------
When I `npm install` and `npm run dev` in `frontend/` I see:
```
(node:4820) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
✘ [ERROR] Cannot start service: Host version "0.21.5" does not match binary version "0.20.2"

1 error
failed to load config from /home/robert/Development/dreammall/dreammall.earth/frontend/vite.config.ts
/home/robert/Development/dreammall/dreammall.earth/frontend/node_modules/vite/node_modules/esbuild/lib/main.js:968
      if (error) return callback(new Error(error), null);
                                 ^
```

The PR #1188 has unrelated code. The `package-lock.json` was merged
although it has nothing to do with the changes in the PR.

When I `git checkout ce3cd41^ -- frontend/package-lock.json`
the error is gone locally.

How to test
-----------
1. `cd frontend/`
2. `npm install`
3. `npm run dev`
4. Server running at http://localhost:3000/
mahula pushed a commit that referenced this pull request Jul 10, 2024
* fix(frontend): revert to old `package-lock.json`

Motivation
----------
When I `npm install` and `npm run dev` in `frontend/` I see:
```
(node:4820) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
✘ [ERROR] Cannot start service: Host version "0.21.5" does not match binary version "0.20.2"

1 error
failed to load config from /home/robert/Development/dreammall/dreammall.earth/frontend/vite.config.ts
/home/robert/Development/dreammall/dreammall.earth/frontend/node_modules/vite/node_modules/esbuild/lib/main.js:968
      if (error) return callback(new Error(error), null);
                                 ^
```

The PR #1188 has unrelated code. The `package-lock.json` was merged
although it has nothing to do with the changes in the PR.

When I `git checkout ce3cd41^ -- frontend/package-lock.json`
the error is gone locally.

How to test
-----------
1. `cd frontend/`
2. `npm install`
3. `npm run dev`
4. Server running at http://localhost:3000/

* trigger ci
@mahula mahula deleted the 709-6-Toggle-In-TopMenu branch July 25, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

5 participants