Skip to content

Feat/recordbrowser#33

Merged
Julesboul merged 42 commits intoPharo-XP-Tools:P14from
nicolasp025:feature/recordbrowser
Mar 6, 2026
Merged

Feat/recordbrowser#33
Julesboul merged 42 commits intoPharo-XP-Tools:P14from
nicolasp025:feature/recordbrowser

Conversation

@nicolasp025
Copy link

No description provided.

feat: adding records to browser
feat: displaying history on tree table
feat: open history when adding a file
feat: DSSpy button & start/stop buttons on toolbar
fix: using now only one instance of browser
refactor: renaming package
fix: error when opening timeline with not enough data
fix: timer that was not counting the seconds
refactor: DSRecordBrowserPresenter => DSRecordBrowser
refactor: some methods from browser going into the browser class
doc: updating the documentation for browser
@Julesboul Julesboul requested review from Julesboul and StevenCostiou and removed request for StevenCostiou February 20, 2026 15:07
@nicolasp025 nicolasp025 marked this pull request as ready for review February 23, 2026 14:31
@nicolasp025 nicolasp025 marked this pull request as draft February 23, 2026 15:46
@nicolasp025 nicolasp025 marked this pull request as ready for review February 24, 2026 10:31
Copy link
Contributor

@Julesboul Julesboul left a comment

Choose a reason for hiding this comment

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

Don't be affraid with the number of comments: many are repeated and it is common in reviews!

In general, this is a good code and this browser will be a great feature to add.

Pay attention to segmentation: the more your code is segmented, the best it is for testing and finding bugs.

feat: adding more tests for each browser feature
refactor: removing ColoredRecord class; refactoring
comment: adding more comments where needed
@nicolasp025 nicolasp025 requested a review from Julesboul March 2, 2026 15:06
Copy link
Contributor

@Julesboul Julesboul left a comment

Choose a reason for hiding this comment

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

That's good to see more tests and the way of generating a testing file is really better than before!

There are still few things to change and some careless mistakes.

test: adding more tests for timerWindow | generating random records for tests
refactor: recorderWindow -> timerWindow
comment: adding comments where needed
refactor: getRecordColorAssociationsFrom now uses a collection of associations
@nicolasp025 nicolasp025 requested a review from Julesboul March 4, 2026 10:31
Copy link
Contributor

@Julesboul Julesboul left a comment

Choose a reason for hiding this comment

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

Good job in general, just try to make your tests on the browser more simple: with less algorithms for the setup and building more things "by hand".

Comment on lines +26 to +40
{ #category : 'accessing' }
DSAbstractEventRecord class >> getLeafSubClasses [
"Returns a list of all non-abstract subclasses, representing all record classes."

| classes |
classes := OrderedCollection new.
self subclasses do: [ :subclass |
subclass subclasses isEmpty
ifTrue: [ classes add: subclass ]
ifFalse: [
subclass = DSDoItRecord ifTrue: [ classes add: subclass ].
classes addAll: subclass getLeafSubClasses ] ].

^ classes
]
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to add this class method in the Browser package? And so to add a test?

You can create a testing class for Records in the Debugging Spy package, there is no unit tests on records for now but I will work on this later.

@nicolasp025 nicolasp025 requested a review from Julesboul March 5, 2026 09:45
Copy link
Contributor

@Julesboul Julesboul left a comment

Choose a reason for hiding this comment

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

Some very little things and after that it should be good !

@nicolasp025 nicolasp025 requested a review from Julesboul March 5, 2026 15:42
@Julesboul Julesboul merged commit bda9b23 into Pharo-XP-Tools:P14 Mar 6, 2026
1 check passed
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