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

Refactor object attributes #3362

Merged
merged 6 commits into from
Apr 4, 2024
Merged

Refactor object attributes #3362

merged 6 commits into from
Apr 4, 2024

Conversation

aadcg
Copy link
Member

@aadcg aadcg commented Mar 20, 2024

Description

Fixes #2782

Found and fixed a bug upstream in the process, see atlas-engineer/prompter@0038eb2.

Checklist:

  • Git branch state is mergable.
  • Changelog is up to date (via a separate commit).
  • New dependencies are accounted for.
  • Documentation is up to date.
  • Compilation and tests ((asdf:test-system :nyxt/<renderer>))
    • No new compilation warnings.
    • Tests are sufficient.

@aadcg aadcg added the 4-series Related to releases whose major version is 4. label Mar 20, 2024
(sera:and-let* ((suggestions (prompter:suggestions source))
(fourth-attributes
(mapcar #'fourth (prompter:active-attributes (first suggestions) :source source)))
(coefficients (substitute 1 nil fourth-attributes)))
Copy link
Member Author

Choose a reason for hiding this comment

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

🤡

@aadcg aadcg force-pushed the refactor-object-attributes branch from 30c7733 to ca58459 Compare March 20, 2024 15:54
@jmercouris
Copy link
Member

Please let me know when this is ready for review!

Copy link
Member

@jmercouris jmercouris left a comment

Choose a reason for hiding this comment

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

A huge simplification to the API. Thanks.

@aadcg aadcg mentioned this pull request Mar 26, 2024
5 tasks
@aadcg aadcg force-pushed the refactor-object-attributes branch 2 times, most recently from 01bd4fb to e9b013d Compare March 27, 2024 11:08
@aadcg aadcg marked this pull request as ready for review March 27, 2024 11:09
@aadcg
Copy link
Member Author

aadcg commented Mar 27, 2024

Please let me know when this is ready for review!

Please always wait until I change the draft status. Ready for review now.

@jmercouris
Copy link
Member

I shall review this tomorrow!

For each of the attribute lists, ATTRIBUTE-VALUE is always interpreted as a
valid HTML string.

(ATTRIBUTE-KEY ATTRIBUTE-VALUE ...)
Deprecate dynamic-attribute-width-p slot.

Fix logic of width allocation.

Minor review of all prompter:object-attributes methods, namely the order of
attributes and their visibility state.
@aadcg aadcg force-pushed the refactor-object-attributes branch from e9b013d to 738bdd1 Compare April 4, 2024 14:02
@aadcg aadcg merged commit 523d036 into master Apr 4, 2024
3 checks passed
@aadcg aadcg deleted the refactor-object-attributes branch April 4, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4-series Related to releases whose major version is 4.
Development

Successfully merging this pull request may close these issues.

API Bug for Prompter object attributes
2 participants