Repository navigation
Refactor TimelineToolbar related componnents - #573
Merged
kyasbal merged 9 commits intoApr 1, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the timeline toolbar by introducing a "smart" component (TimelineToolbarSmartComponent) to handle service interactions and converting the ToolbarComponent into a presentational component using Angular Signals (input, model, output). The RegexInputComponent was also updated to use signals and modern Angular syntax. Feedback indicates that the ToolbarComponent unit tests require updates to match the new architecture and suggests further simplifying the component class by moving basic event logic into the template.
* Moved all service dependency to timeline-toolbar-smart.component.ts * Moved all child components under components/ * Use `model()` as much as possible for elements processing input and output *
kyasbal
force-pushed
the
chore/refactor-timeline-toolbar
branch
from
March 31, 2026 03:08
d40a30c to
98fe0a5
Compare
renamoo
approved these changes
Apr 1, 2026
renamoo
left a comment
Collaborator
There was a problem hiding this comment.
1 nit, but LGTM overall
* Moved all service dependency to timeline-toolbar-smart.component.ts * Moved all child components under components/ * Use `model()` as much as possible for elements processing input and output *
- In `toolbar.component.ts`, replace `ToolbarPopupStatus` union type with an exported enum with the same string values. - In `toolbar.component.ts`, change `popupStatus` and `setPopupState` visibility from public to protected. - In `toolbar.component.ts`, add a protected property `ToolbarPopupStatus` to expose the enum to the template. - In `toolbar.component.ts`, update `popupStatus` initialization and `setPopupState` logic to use enum values instead of string literals. - In `toolbar.component.html`, replace hardcoded strings for popup states with references to the `ToolbarPopupStatus` enum.
…khi into chore/refactor-timeline-toolbar
kyasbal
added a commit
that referenced
this pull request
Apr 1, 2026
* Improve contexts used for Antigravity (#576) * chore(agent): migrate coding rules and standards from GEMINI.md Migrates coding standards and rules from GEMINI.md into dedicated markdown files under `.agents/rules/` and a new skill at `.agents/skills/`. - Extract Angular coding rules to `.agents/rules/angular-coding-rule.md` - Extract Go coding rules to `.agents/rules/go-coding-rule.md` - Extract KHI task rules to `.agents/rules/khi-task-rule.md` - Create `neutral-commit-crafter` skill in `.agents/skills/neutral-commit-crafter/SKILL.md` - Clean up GEMINI.md by removing the migrated content * docs(agents): add subagent review guidelines to coding rules Update Angular and Go coding rules to include a mandatory subagent review step. Add a "Subagent Review Guidelines" section to both rule files, specifying the review process, checklists, and example tool calls. - Add mandatory subagent review before user verification. - Provide guidelines for defining and invoking review subagents. - Include checklists for code simplicity, modern API usage, and test coverage. - Require re-review if modifications are made based on previous review results. * Update .agents/rules/angular-coding-rule.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> * Update .agents/rules/angular-coding-rule.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> * Update .agents/rules/angular-coding-rule.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> * Apply suggestions from code review Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> * docs(rules): add markdown standards and update angular rule indentation - Add .agents/rules/markdown-coding-rule.md file. - Change indentation of list items under 'Verifications' in .agents/rules/angular-coding-rule.md. --------- Signed-off-by: kyasbal <kyasbal1994@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Refactor TimelineToolbar related componnents (#573) * Refactor TimelineToolbar related componnents * Moved all service dependency to timeline-toolbar-smart.component.ts * Moved all child components under components/ * Use `model()` as much as possible for elements processing input and output * * Fix failed tests * Remove unused handlers * Refactor TimelineToolbar related componnents * Moved all service dependency to timeline-toolbar-smart.component.ts * Moved all child components under components/ * Use `model()` as much as possible for elements processing input and output * * Fix failed tests * Remove unused handlers * refactor(timeline-toolbar): use enum for ToolbarPopupStatus - In `toolbar.component.ts`, replace `ToolbarPopupStatus` union type with an exported enum with the same string values. - In `toolbar.component.ts`, change `popupStatus` and `setPopupState` visibility from public to protected. - In `toolbar.component.ts`, add a protected property `ToolbarPopupStatus` to expose the enum to the template. - In `toolbar.component.ts`, update `popupStatus` initialization and `setPopupState` logic to use enum values instead of string literals. - In `toolbar.component.html`, replace hardcoded strings for popup states with references to the `ToolbarPopupStatus` enum. --------- Signed-off-by: kyasbal <kyasbal1994@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
kyasbal
added a commit
that referenced
this pull request
Apr 5, 2026
* Bump flatted from 3.4.1 to 3.4.2 in /web Bumps [flatted](https://github.com/WebReflection/flatted) from 3.4.1 to 3.4.2. - [Commits](WebReflection/flatted@v3.4.1...v3.4.2) --- updated-dependencies: - dependency-name: flatted dependency-version: 3.4.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Bump handlebars from 4.7.8 to 4.7.9 in /web Bumps [handlebars](https://github.com/handlebars-lang/handlebars.js) from 4.7.8 to 4.7.9. - [Release notes](https://github.com/handlebars-lang/handlebars.js/releases) - [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/v4.7.9/release-notes.md) - [Commits](handlebars-lang/handlebars.js@v4.7.8...v4.7.9) --- updated-dependencies: - dependency-name: handlebars dependency-version: 4.7.9 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Bump handlebars from 4.7.8 to 4.7.9 in /scripts/msdf-generator Bumps [handlebars](https://github.com/handlebars-lang/handlebars.js) from 4.7.8 to 4.7.9. - [Release notes](https://github.com/handlebars-lang/handlebars.js/releases) - [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/v4.7.9/release-notes.md) - [Commits](handlebars-lang/handlebars.js@v4.7.8...v4.7.9) --- updated-dependencies: - dependency-name: handlebars dependency-version: 4.7.9 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Bump serialize-javascript from 7.0.4 to 7.0.5 in /web Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) from 7.0.4 to 7.0.5. - [Release notes](https://github.com/yahoo/serialize-javascript/releases) - [Commits](yahoo/serialize-javascript@v7.0.4...v7.0.5) --- updated-dependencies: - dependency-name: serialize-javascript dependency-version: 7.0.5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Improve contexts used for Antigravity (#576) * chore(agent): migrate coding rules and standards from GEMINI.md Migrates coding standards and rules from GEMINI.md into dedicated markdown files under `.agents/rules/` and a new skill at `.agents/skills/`. - Extract Angular coding rules to `.agents/rules/angular-coding-rule.md` - Extract Go coding rules to `.agents/rules/go-coding-rule.md` - Extract KHI task rules to `.agents/rules/khi-task-rule.md` - Create `neutral-commit-crafter` skill in `.agents/skills/neutral-commit-crafter/SKILL.md` - Clean up GEMINI.md by removing the migrated content * docs(agents): add subagent review guidelines to coding rules Update Angular and Go coding rules to include a mandatory subagent review step. Add a "Subagent Review Guidelines" section to both rule files, specifying the review process, checklists, and example tool calls. - Add mandatory subagent review before user verification. - Provide guidelines for defining and invoking review subagents. - Include checklists for code simplicity, modern API usage, and test coverage. - Require re-review if modifications are made based on previous review results. * Update .agents/rules/angular-coding-rule.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> * Update .agents/rules/angular-coding-rule.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> * Update .agents/rules/angular-coding-rule.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> * Apply suggestions from code review Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> * docs(rules): add markdown standards and update angular rule indentation - Add .agents/rules/markdown-coding-rule.md file. - Change indentation of list items under 'Verifications' in .agents/rules/angular-coding-rule.md. --------- Signed-off-by: kyasbal <kyasbal1994@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Refactor TimelineToolbar related componnents (#573) * Refactor TimelineToolbar related componnents * Moved all service dependency to timeline-toolbar-smart.component.ts * Moved all child components under components/ * Use `model()` as much as possible for elements processing input and output * * Fix failed tests * Remove unused handlers * Refactor TimelineToolbar related componnents * Moved all service dependency to timeline-toolbar-smart.component.ts * Moved all child components under components/ * Use `model()` as much as possible for elements processing input and output * * Fix failed tests * Remove unused handlers * refactor(timeline-toolbar): use enum for ToolbarPopupStatus - In `toolbar.component.ts`, replace `ToolbarPopupStatus` union type with an exported enum with the same string values. - In `toolbar.component.ts`, change `popupStatus` and `setPopupState` visibility from public to protected. - In `toolbar.component.ts`, add a protected property `ToolbarPopupStatus` to expose the enum to the template. - In `toolbar.component.ts`, update `popupStatus` initialization and `setPopupState` logic to use enum values instead of string literals. - In `toolbar.component.html`, replace hardcoded strings for popup states with references to the `ToolbarPopupStatus` enum. * feat: add comment guideline * feat(reporter): add reporter system and error handler integration - Add Reporter abstract class and implementations (ConsoleReporter, HierarchicalReporter) in reporter.ts. - Add provideReporterContext function in reporter.ts to create localized reporter contexts. - Add tests for Reporter and HierarchicalReporter. - Register ConsoleReporter as the provider for Reporter in PublicKHIExtension module. - Register ReporterErrorHandler as the provider for ErrorHandler in RootModule. - Add comments to RootModule. - Added files: README.md, reporter-error-handler.spec.ts, reporter-error-handler.ts, reporter.spec.ts, and reporter.ts. * fix(reporter): handle null and undefined errors - Update handleError in reporter-error-handler.ts to use optional chaining for message and stack properties on error. - Update handleError in reporter-error-handler.ts to use String(error) instead of error.toString(). - Add tests in reporter-error-handler.spec.ts for handling null and undefined errors. * feat(inspection): add label-based task selector for flexible task filtering (#570) Introduce `LabelSelector` and `ScopedTaskRegistry` to enable task filtering based on InspectionType labels. This provides a more flexible alternative to legacy, hardcoded InspectionType ID lists. Tasks can now be filtered by InspectionTypes with flexibility and matched against target InspectionTypes using superset conditions. This new way to select inspection type allows forked repository to contain inspection type referencing to tasks defined in OSS. - Implement `LabelSelector` evaluation with legacy fallback in runner. - Introduce `ScopedTaskRegistry` for shared label injection at registration. - Refactor `typedmap.Merge` to use internal iteration for cleaner code. - Update concept documentation (Japanese/English) to document the selector. * docs: standardize rule files and clean up GEMINI.md * Apply suggestions from code review Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> * fix(server): correct field name for memory usage and add gopsutil dependency * fix(server): respond to PR review comments * chore(agents): remove run_command constraints, update tool_names, and add PR drafter skill (#582) - In .agents/rules/angular-coding-rule.md: Removed constraints prohibiting run_command and added list_dir and grep_search to tool_names. - In .agents/rules/go-coding-rule.md: Removed constraints prohibiting run_command and updated tool_names to include list_dir and grep_search (and search_web/read_url_content where missing). - In .agents/rules/markdown-coding-rule.md: Added read_url_content and grep_search to tool_names. - Added .agents/skills/pull-request-drafter/SKILL.md file. * chore(reference-generator): remove reference generator and related files (#578) - Delete `cmd/reference-generator/main.go`. - Delete files under `docs/en/reference/` and `docs/template/reference/`. - Delete files under `pkg/document/generator/` and `pkg/document/model/`. - Modify `pkg/model/enum/parent_relationship.go` and `pkg/model/enum/parent_relationship_test.go` for cleanup. - Modify `scripts/make/codegen.mk` to remove the `generate-reference` target. * ci: enable merge queue with branch restrictions * ci: restrict merge_group to main and epic branches * Bump lodash from 4.17.23 to 4.18.1 in /web Bumps [lodash](https://github.com/lodash/lodash) from 4.17.23 to 4.18.1. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.23...4.18.1) --- updated-dependencies: - dependency-name: lodash dependency-version: 4.18.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: kyasbal <kyasbal1994@gmail.com> Signed-off-by: kyasbal <ikakeru@google.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
10 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
model()as much as possible for elements processing input and outputThis PR is addressing for #537 in the timeline toolbar part.