Skip to content

Enhancement/96-Improve-View-Functionality-For-Room#104

Open
PIPetkova19 wants to merge 4 commits into
mainfrom
enhancement/96-improve-view-functionality-for-room
Open

Enhancement/96-Improve-View-Functionality-For-Room#104
PIPetkova19 wants to merge 4 commits into
mainfrom
enhancement/96-improve-view-functionality-for-room

Conversation

@PIPetkova19

Copy link
Copy Markdown
Contributor

Changes made:

  • Added the roomType and capacity category fields to the room view.

@PIPetkova19 PIPetkova19 self-assigned this Jul 23, 2026
@PIPetkova19
PIPetkova19 requested a review from a team as a code owner July 23, 2026 08:05
@PIPetkova19 PIPetkova19 changed the title Include category to room view Enhancement/96-Improve-View-Functionality-For-Room Jul 23, 2026
facultyId: room.facultyId,
roomNumber: room.roomNumber,
categoryId: room.categoryId,
position: index + 1,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

position is not in room-elm.ts,

@@ -0,0 +1,5 @@
export interface CategoryElm {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

apply the naming convention

id: category.id,
roomType: category.roomType,
capacity: category.capacity,
position: index + 1,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

position is not in category-elm.ts

id: string;
facultyId: string;
roomNumber: string;
roomNumber: string,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

" ; " instead of " , "

startWith(void 0),
switchMap(() => this.roomService.getRooms())
);
data$ = this.roomService.getRooms();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Dropping the refreshNeeded step from the data$ pipeline will cause a problem, since RoomAddForm still calls refreshNeeded.next() after creating a room, the table wont pick up new rooms until a manual refresh.

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.

2 participants