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

SourceData Inspector #151

Merged
merged 27 commits into from
Aug 27, 2024
Merged

SourceData Inspector #151

merged 27 commits into from
Aug 27, 2024

Conversation

johannes-wolf
Copy link
Contributor

@johannes-wolf johannes-wolf commented Aug 16, 2024

Changes

  • Added a new common Inspector panel that contains all Feature & SourceData inspectors
  • Moved the old inspector panel to FeatureInspector
  • Fetching data now forwards the future so you can pipe it through then and friends
  • Added a new ng directive to tailor PrimeNGs table view filtering to our needs
  • Added a new ng pipe to highlight text
  • Upgraded Angular to version 18.*

UI Changes

  • The scrollbar of tree views is now on the right
  • We now use PrimeNGs virtual scrolling
  • Upgraded PrimeNG to a patched 17.18.19, that includes our fixes for virtual scrolling

Yet Missing & Bugs

  • The inspector title does not show the current feature
  • Inspecting source data does not get reflected in the windows URL
  • PrimeNGs table scrolling is broken and needs some workaround to not randomly hide rows
  • Setting a column size for tree tables does not work at all, horizontal scrolling also does not work (won't fix)
  • Listening for feature selection changes should (maybe) be moved out of the FeatureInspector (should be done separately)

@johannes-wolf johannes-wolf added Model This issue concerns the erdblick frontend model. UI This issue concerns the HTML parts of the frontend. labels Aug 16, 2024
@johannes-wolf johannes-wolf marked this pull request as draft August 16, 2024 11:11
@johannes-wolf johannes-wolf changed the title Sourcedata inspector SourceData Inspector Aug 16, 2024
@johannes-wolf johannes-wolf force-pushed the sourcedata-inspector branch 2 times, most recently from f8de129 to c4a2f80 Compare August 16, 2024 14:12
@josephbirkner josephbirkner marked this pull request as ready for review August 16, 2024 15:11
@johannes-wolf johannes-wolf linked an issue Aug 26, 2024 that may be closed by this pull request
@johannes-wolf johannes-wolf self-assigned this Aug 26, 2024
Copy link
Collaborator

@josephbirkner josephbirkner left a comment

Choose a reason for hiding this comment

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

Awesome changes, added some suggestions 👍

erdblick_app/app/feature.panel.component.ts Show resolved Hide resolved
erdblick_app/app/map.panel.component.ts Outdated Show resolved Hide resolved
libs/core/src/bindings.cpp Outdated Show resolved Hide resolved
libs/core/src/parser.cpp Show resolved Hide resolved
@johannes-wolf johannes-wolf merged commit 8b8e036 into main Aug 27, 2024
1 check passed
@johannes-wolf johannes-wolf deleted the sourcedata-inspector branch August 27, 2024 09:47
@Pipe({
name: 'highlight'
})
export class HighlightSearch implements PipeTransform {
Copy link
Contributor

Choose a reason for hiding this comment

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

The name is a bit unclear since we only use this for tree data filtering but not with any search options. Should be either more generic or more precise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you have an idea? Maybe HighlightMatchingString?

})
export class InspectionPanelComponent implements OnInit {
export class InspectionPanelComponent implements OnInit
Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably become RightPanelComponent

erdblick_app/app/inspection.service.ts Show resolved Hide resolved
erdblick_app/app/inspection.service.ts Show resolved Hide resolved
return fetch.go()
.then(_ => {
if (!layer)
throw new Error(`Error loading layer.`);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could add more information to the error message. Maybe IDs?

erdblick_app/app/inspection.service.ts Show resolved Hide resolved
.resizable-container-expanded {
height: calc(100vh - 3em);;
styles: [
`@layer erdblick {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we necessarily need layers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Model This issue concerns the erdblick frontend model. UI This issue concerns the HTML parts of the frontend.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source Model Traceability
3 participants