WIP: Feature Rewrite #87

Draft
thepaperpilot wants to merge 35 commits from feat/ure-rewrite into main
Collaborator
  • Removed jsx() and JSXFunction. You can now use JSX.Element like any other Computable value
  • joinJSX now always requires a joiner. Just pass the array of elements or wrap them in <> and </> if there's no joiner
  • Removed coerceComponent, computeComponent, and computeOptionalComponent; just use the render function now
  • It's recommended to now do <MyComponent /> instead of <component :is="myComponent" />
  • All features no longer take the options as a type parameter, and all generic forms have been removed as a result
  • Fixed forceHideGoBack not being respected
  • Removed deepUnref as now things don't get unreffed before being passed into vue components by default
  • Moved MarkNode to new wrapper, and removed existing mark properties
  • Moved Tooltip to new wrapper, and made it take an options function instead of raw object
  • VueFeature component now wraps all vue features, and applies styling, classes, and visibility in the wrapping div. It also adds the Node component so features don't need to
  • mergeAdjacent now works with grids (perhaps should've used scss to reduce the amount of css this took)
  • CoercableComponent renamed to Renderable since it should be used with render
  • Replaced isCoercableComponent with isJSXElement
  • Replaced Computable and ProcessedComputable with the vue built-ins MaybeRefOrGetter and MaybeRef
  • convertComputable renamed to processGetter
  • Also removed GetComputableTypeWithDefault and GetComputableType, which can similarly be replaced
  • dontMerge is now a property on rows and columns rather than an undocumented css class you'd have to include on every feature within the row or column
  • Fixed saves manager not being imported in addiction warning component
  • Created vueFeatureMixin for simplifying the vue specific parts of a feature. Passes the component's properties in explicitly and directly from the feature itself
  • All features should now return an object that includes props typed to omit the options object and satisfies the feature. This will ensure type correctness and pass-through custom properties. (see existing features for more thorough examples of changes)
  • Replaced decorators with mixins, which won't require casting. Bonus amount decorators converted into generic bonus amount mixin. Removed effect decorator
  • All render functions now return JSX.Element. The JSX variants (e.g. renderJSX) (except joinJSX) have been removed
  • Moved all features that use the clickable component into the clickable folder
  • Removed small property from clickable, since its a single css rule (min-height: unset) (you could add a small css class and pass small to any vue feature's classes property, though)
  • Upgrades now use the clickable component
  • Added ConversionType symbol
  • Removed setDefault, just use ??=
  • Added isType function that uses a type symbol to check
  • General cleanup
- Removed `jsx()` and `JSXFunction`. You can now use `JSX.Element` like any other `Computable` value - `joinJSX` now always requires a joiner. Just pass the array of elements or wrap them in `<>` and `</>` if there's no joiner - Removed `coerceComponent`, `computeComponent`, and `computeOptionalComponent`; just use the `render` function now - It's recommended to now do `<MyComponent />` instead of `<component :is="myComponent" />` - All features no longer take the options as a type parameter, and all generic forms have been removed as a result - Fixed `forceHideGoBack` not being respected - Removed `deepUnref` as now things don't get unreffed before being passed into vue components by default - Moved MarkNode to new wrapper, and removed existing `mark` properties - Moved Tooltip to new wrapper, and made it take an options function instead of raw object - VueFeature component now wraps all vue features, and applies styling, classes, and visibility in the wrapping div. It also adds the Node component so features don't need to - `mergeAdjacent` now works with grids (perhaps should've used scss to reduce the amount of css this took) - `CoercableComponent` renamed to `Renderable` since it should be used with `render` - Replaced `isCoercableComponent` with `isJSXElement` - Replaced `Computable` and `ProcessedComputable` with the vue built-ins `MaybeRefOrGetter` and `MaybeRef` - `convertComputable` renamed to `processGetter` - Also removed `GetComputableTypeWithDefault` and `GetComputableType`, which can similarly be replaced - `dontMerge` is now a property on rows and columns rather than an undocumented css class you'd have to include on every feature within the row or column - Fixed saves manager not being imported in addiction warning component - Created `vueFeatureMixin` for simplifying the vue specific parts of a feature. Passes the component's properties in explicitly and directly from the feature itself - All features should now return an object that includes props typed to omit the options object and satisfies the feature. This will ensure type correctness and pass-through custom properties. (see existing features for more thorough examples of changes) - Replaced decorators with mixins, which won't require casting. Bonus amount decorators converted into generic bonus amount mixin. Removed effect decorator - All `render` functions now return `JSX.Element`. The `JSX` variants (e.g. `renderJSX`) (except `joinJSX`) have been removed - Moved all features that use the clickable component into the clickable folder - Removed `small` property from clickable, since its a single css rule (`min-height: unset`) (you could add a small css class and pass small to any vue feature's classes property, though) - Upgrades now use the clickable component - Added ConversionType symbol - Removed setDefault, just use `??=` - Added isType function that uses a type symbol to check - General cleanup
thepaperpilot added 35 commits 2024-11-19 14:35:41 +00:00
This reverts commit 1c7824b550.
Update deps some more
Some checks failed
Run Tests / test (pull_request) Failing after 47s
bd165da264
Fix build issues
Some checks failed
Run Tests / test (pull_request) Failing after 58s
052a01d3f7
Update container version
Some checks failed
Run Tests / test (pull_request) Failing after 1m21s
3eeff40910
Add rollup for linux
Some checks failed
Run Tests / test (pull_request) Failing after 13s
a676829d66
Remove node install
Some checks failed
Run Tests / test (pull_request) Failing after 5s
5ce3e64f5d
Update node
Some checks failed
Run Tests / test (pull_request) Failing after 1m20s
ccd685cb9c
Remove processedPropType and convert all components to composition API
Some checks failed
Run Tests / test (pull_request) Failing after 1m8s
1e5411d279
Remove _props abstraction (fixes #2)
Some checks failed
Run Tests / test (pull_request) Failing after 1m7s
6c8dd66677
Fix last lint issue
All checks were successful
Run Tests / test (pull_request) Successful in 1m10s
4987916900
Feature rewrite
Some checks failed
Run Tests / test (pull_request) Failing after 1m16s
1657dffcfe
- Removed `jsx()` and `JSXFunction`. You can now use `JSX.Element` like any other `Computable` value
- `joinJSX` now always requires a joiner. Just pass the array of elements or wrap them in `<>` and `</>` if there's no joiner
- Removed `coerceComponent`, `computeComponent`, and `computeOptionalComponent`; just use the `render` function now
- It's recommended to now do `<MyComponent />` instead of `<component :is="myComponent" />`
- All features no longer take the options as a type parameter, and all generic forms have been removed as a result
- Fixed `forceHideGoBack` not being respected
- Removed `deepUnref` as now things don't get unreffed before being passed into vue components by default
- Moved MarkNode to new wrapper, and removed existing `mark` properties
- Moved Tooltip to new wrapper, and made it take an options function instead of raw object
- VueFeature component now wraps all vue features, and applies styling, classes, and visibility in the wrapping div. It also adds the Node component so features don't need to
- `mergeAdjacent` now works with grids (perhaps should've used scss to reduce the amount of css this took)
- `CoercableComponent` renamed to `Renderable` since it should be used with `render`
- Replaced `isCoercableComponent` with `isJSXElement`
- Replaced `Computable` and `ProcessedComputable` with the vue built-ins `MaybeRefOrGetter` and `MaybeRef`
- `convertComputable` renamed to `processGetter`
- Also removed `GetComputableTypeWithDefault` and `GetComputableType`, which can similarly be replaced
- `dontMerge` is now a property on rows and columns rather than an undocumented css class you'd have to include on every feature within the row or column
- Fixed saves manager not being imported in addiction warning component
- Created `vueFeatureMixin` for simplifying the vue specific parts of a feature. Passes the component's properties in explicitly and directly from the feature itself
- All features should now return an object that includes props typed to omit the options object and satisfies the feature. This will ensure type correctness and pass-through custom properties. (see existing features for more thorough examples of changes)
- Replaced decorators with mixins, which won't require casting. Bonus amount decorators converted into generic bonus amount mixin. Removed effect decorator
- All `render` functions now return `JSX.Element`. The `JSX` variants (e.g. `renderJSX`) (except `joinJSX`) have been removed
- Moved all features that use the clickable component into the clickable folder
- Removed `small` property from clickable, since its a single css rule (`min-height: unset`) (you could add a small css class and pass small to any vue feature's classes property, though)
- Upgrades now use the clickable component
- Added ConversionType symbol
- Removed setDefault, just use `??=`
- Added isType function that uses a type symbol to check
- General cleanup
Some checks failed
Run Tests / test (pull_request) Failing after 1m16s
Required
Details
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/ure-rewrite:feat/ure-rewrite
git checkout feat/ure-rewrite
Sign in to join this conversation.
No description provided.