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

BC-7796 - Room Details, Create, Update, Delete #3386

Merged
merged 94 commits into from
Oct 7, 2024

Conversation

odalys-dataport
Copy link
Contributor

@odalys-dataport odalys-dataport commented Aug 30, 2024

Short Description

User story

As a teacher, I want to have a room page for all my room content (boards etc), to have a starting point for my lessons or whatever the room is for.

Acceptance criteria

  • I can create a new room via a new FAB at /rooms
  • On the following page (rooms/add) I can adjust the room settings:
    • title (input)
    • color (swatches vs. radio-btn vs. dropdown)
    • 2x date fields (v-date-picker)
  • I can save the changes > directs to new room (/rooms/:id)
  • I can cancel the settings > directs back to /rooms
  • On the room page I can
    • delete the room via a 3-dot menu > directs back to /rooms
    • go back to the rooms overview page via breadcrumbs
  • On rooms I can see a new tile that leads to room page

Links to Ticket and related Pull-Requests

BC-7796

Changes

Data-security

Deployment

New Repos, NPM packages or vendor scripts

Screenshots of UI changes

Checklist before merging

  • QA: In addition to review, the code has been manually tested (if manual testing is possible)
  • PO: Any deviation from requirements was agreed with Product-Owner / ticket author / support-team
  • DEV: Every new component is implemented having accessibility in mind (e.g. aria-label, role property)

Notice: Please keep this Pull-Request as a Draft (or add WIP label), until it is ready to be reviewed

@odalys-dataport odalys-dataport added the WIP someone is working on that label Aug 30, 2024
@odalys-dataport odalys-dataport self-assigned this Aug 30, 2024
@odalys-dataport odalys-dataport changed the title Bc 7796 room details BC-7796 - Room Details, Create, Update, Delete Sep 3, 2024
EzzatOmar
EzzatOmar previously approved these changes Sep 30, 2024
Copy link
Contributor

@EzzatOmar EzzatOmar left a comment

Choose a reason for hiding this comment

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

I could not add much in this review. The code works.
There are several pieces missing and marked with TODOs (e.g. No content) which are known and out of scope.

API are implemented. Room create/delete/edit is working.
Breadcrumbs are working.
Needs more testing from QA.

Some e2e tests are failing and sonarcloud wants some metrics to be met.
I'm approving the code as it's functional and don't have any heavy defects.

Only problem I might found is that the rooms tab is not hidden behind a feature flag. But that was introduced before. Must double check.

const roomApi = RoomApiFactory(undefined, "/v3", $axios);
const isLoading = ref(true);

const roomData = ref<RoomCreateParams>({
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe you can clarify why we would use a ref instead of reactive?
https://blog.logrocket.com/reactivity-vue-3-composition-api-ref-reactive/

In my limited understanding it seems that we are using an object and this is the typical use case for using reactive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refs are generally easier to use and work just as well. Afaik a while back when I was wondering about this as well a lot of blogs recommend to just use refs for everything as it's simpler and more versatile.

@odalys-dataport odalys-dataport removed the WIP someone is working on that label Oct 7, 2024
@odalys-dataport odalys-dataport enabled auto-merge (squash) October 7, 2024 08:38
Copy link

sonarcloud bot commented Oct 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
27.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@odalys-dataport odalys-dataport merged commit 19ae394 into main Oct 7, 2024
70 of 71 checks passed
@odalys-dataport odalys-dataport deleted the BC-7796-room-details branch October 7, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants