Skip to content

Conversation

@breity
Copy link
Member

@breity breity commented Jan 22, 2026

Changes

Notes launcher and Chatbot toggle buttons were previously not show when unit uses the Tabbed navigation mode (making the tools inaccessible :
Screenshot 2026-01-22 at 2 39 21 PM

These changes show the Notes launcher and Chatbot toggle buttons next to the navigation tabs:
Screenshot 2026-01-22 at 2 40 44 PM

Test

  • Make sure you can access the Notes dialog and toggle visibility of the Chatbot for units in both Default navigation mode and Tabbed navigation mode.

@breity breity self-assigned this Jan 22, 2026
@qltysh
Copy link

qltysh bot commented Jan 22, 2026

❌ 1 blocking issue (1 total)

Tool Category Rule Count
qlty Duplication Found 22 lines of similar code in 7 locations (mass = 85) 1

it('should create', () => {
expect(component).toBeTruthy();
});
});
Copy link

@qltysh qltysh bot Jan 22, 2026

Choose a reason for hiding this comment

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

Found 22 lines of similar code in 7 locations (mass = 85) [qlty:similar-code]

@qltysh
Copy link

qltysh bot commented Jan 22, 2026

Qlty

Coverage Impact

Unable to calculate total coverage change because base branch coverage was not found.

Modified Files with Diff Coverage (2)

RatingFile% DiffUncovered Line #s
New file Coverage rating: A
src/app/chatbot/chatbot-launcher/chatbot-launcher.component.ts87.5%17
New file Coverage rating: A
src/assets/wise5/directives/group-tabs/group-tabs.component.ts100.0%
Total92.3%
🤖 Increase coverage with AI coding...

In the `access-notebook-and-chatbot-in-tabbed-view` branch, add test coverage for this new code:

- `src/app/chatbot/chatbot-launcher/chatbot-launcher.component.ts` -- Line 17

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

Copy link
Member

@hirokiterashima hirokiterashima left a comment

Choose a reason for hiding this comment

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

Seems to work for except for on a unit with many lessons? I don't see the buttons for notes and chatbot. Instead, I see a blank bar below the tabs, like this:
Image

I also added some comments inline.

@@ -0,0 +1,22 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

selector: 'chatbot-launcher',
imports: [MatButtonModule, MatIconModule, MatTooltipModule],
templateUrl: './chatbot-launcher.component.html',
styleUrl: './chatbot-launcher.component.scss'
Copy link
Member

Choose a reason for hiding this comment

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

Remove line and empty file?

export class ChatbotLauncherComponent {
@Output() toggleChatbot = new EventEmitter<void>();

emitToggleChatbot(): void {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
emitToggleChatbot(): void {
protected emitToggleChatbot(): void {

Copy link
Member

@hirokiterashima hirokiterashima left a comment

Choose a reason for hiding this comment

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

Discussed in person. Good to merge after changes. 👍

@breity breity merged commit 3114b26 into develop Jan 23, 2026
4 checks passed
@breity breity deleted the access-notebook-and-chatbot-in-tabbed-view branch January 23, 2026 21:43
@hirokiterashima
Copy link
Member

🎉 This PR is included in version 5.203.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants