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

Templex exploration #189

Closed
wants to merge 49 commits into from
Closed

Templex exploration #189

wants to merge 49 commits into from

Commits on Oct 14, 2023

  1. Add some padding for pattern lab tempalte display

    It's just nicer to look at components when they don't touch the window border, which
    they never will in a real use.
    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    a49012c View commit details
    Browse the repository at this point in the history
  2. Create template not dependent on project

    This is better for reuse
    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    871877c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fd62c1b View commit details
    Browse the repository at this point in the history
  4. Move gap margin to conditionally existing element

    This is so that a title without an image will not use the margin that is used to create
    the gap between the image and the text
    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    b085bc5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    12047b4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b7627ec View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3c87b22 View commit details
    Browse the repository at this point in the history
  8. Point from class to template

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    eb408c0 View commit details
    Browse the repository at this point in the history
  9. Fix pattern lab context file

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    9b20f00 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0c5dfed View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    37a2a48 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    37351e9 View commit details
    Browse the repository at this point in the history
  13. Replace the custom template tag with a decorator

    The decorator now adds a method to the dataclass that handles the rendering logic. This
    is only done when no rendering method exists yet.
    
    This allows for completely custom rendering logic to be added.
    
    I find, this also reduces the logic and the complexity of the "templex" pattern, because
    we can work with fewer moving pieces.
    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    fe6a783 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    119df8c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    0e733c7 View commit details
    Browse the repository at this point in the history
  16. Extend comments

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    5bfdecf View commit details
    Browse the repository at this point in the history
  17. Create teaser grid templex

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    fe2b5df View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    4dbad07 View commit details
    Browse the repository at this point in the history
  19. Bring back the tempalte tag

    This is just for testing things. I am currently no using it.
    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    6beae8f View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    64d6161 View commit details
    Browse the repository at this point in the history
  21. Update test to recent changes

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    43a4e94 View commit details
    Browse the repository at this point in the history
  22. Update variable name

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    21f3679 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    06dfd66 View commit details
    Browse the repository at this point in the history
  24. Add heading templex

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    e535e25 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    21abb03 View commit details
    Browse the repository at this point in the history
  26. Change property name

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    7c4d69e View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    398718f View commit details
    Browse the repository at this point in the history
  28. Reuse heading templex

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    011059c View commit details
    Browse the repository at this point in the history
  29. Add type hints to decorator

    It does not really help... the dataclass decorator needs to be added to the specific
    class to make mypy understand the arguments.
    
    See also:
    https://mypy.readthedocs.io/en/stable/additional_features.html#caveats-known-issues
    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    c8482ce View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    2500c5f View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    a45cf20 View commit details
    Browse the repository at this point in the history
  32. Further attempt to get typing to work...

    This is still not it.
    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    6c78783 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    2ff702a View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    5e30253 View commit details
    Browse the repository at this point in the history
  35. Fix format

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    c6f9f24 View commit details
    Browse the repository at this point in the history
  36. Use immutable

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    bb5e4a8 View commit details
    Browse the repository at this point in the history
  37. Remove useless variable

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    8be8eaf View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    17177d8 View commit details
    Browse the repository at this point in the history
  39. Remove commented out code

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    4620c89 View commit details
    Browse the repository at this point in the history
  40. Render non-templex object as strings

    This is for interoperability
    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    13d913a View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    9d5411a View commit details
    Browse the repository at this point in the history
  42. Fix type annotations

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    a575141 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    75c5ac4 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    cb15755 View commit details
    Browse the repository at this point in the history
  45. Move code out of init file

    tbrlpld committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    37cb111 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    16e819e View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Test the signature

    tbrlpld committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    8d2b653 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d7e61de View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2143dd3 View commit details
    Browse the repository at this point in the history