Skip to content

Commit

Permalink
Merge branch 'main' into slider-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jackTabsCode committed Jan 31, 2024
2 parents f824a64 + 9d438f6 commit 8de01ea
Show file tree
Hide file tree
Showing 19 changed files with 559 additions and 26 deletions.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: bug
assignees: ""
---

## Description

A clear and concise description of what the bug is. Be sure this isn't a
[duplicate report](https://github.com/matter-ecs/plasma/issues) (if it is,
contribute to the already opened bug report).

## Steps to reproduce

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error

## Expected behavior

A clear and concise description of what you expected to happen.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: feature
assignees: ""
---

## Problem

A clear and concise description of what the problem is or what you would like to
do differently. If there is a related
[issue](https://github.com/matter-ecs/plasma/issues), let us know here.

## Proposed solution

A clear and concise description of what you want to happen.

## Alternatives

A clear and concise description of any alternative solutions or features
you've considered or are currently using.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/improvement_suggestion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Improvement suggestion
about: A minor enhancement or quality of life improvement
title: ""
labels: improvement
assignees: ""
---

## Current behavior

A clear and concise description of the current behavior, and why you think it
can be enhanced. If there is a related
[issue](https://github.com/matter-ecs/plasma/issues), let us know here.

## Proposed improvement

A clear and concise description of what you want to happen.

## Additional context

Provide any additional context or examples that can help us understand the
importance of this improvement.
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Proposed changes

A clear and concise description of what your changes are. Explain to
maintainers why we should accept your solution. Be sure to adhere to our
[contribution guidelines](https://github.com/matter-ecs/plasma/blob/main/CONTRIBUTING.md).

## Related issues

Explain how this pull request relates to any relevant
[issues](https://github.com/matter-ecs/plasma/issues). Bugs and features should
always have related issues.

## Additional comments

If the changes are particularly complex, elaborate here. You can start off
discussion by addressing any foreseen issues or questions with the changes,
and by explaining why you chose this solution.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
pull_request:
push:
branches:
- main

jobs:
format:
name: Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Install Aftman
uses: ok-nick/setup-aftman@v0.3.0

- name: Check Formatting
run: stylua --check .

lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Install Aftman
uses: ok-nick/setup-aftman@v0.3.0

- name: Check Linting
run: selene src tests

build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Install Aftman
uses: ok-nick/setup-aftman@v0.3.0

- name: Install Dependencies
run: wally install

- name: Build
run: rojo build --output build.rbxm default.project.json

- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: build
path: build.rbxm
47 changes: 47 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Docs

on:
pull_request:
push:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install Moonwave
run: npm install -g moonwave

- name: Generate Docs
run: moonwave build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build

deploy:
name: Deploy
if: github.event_name == 'push'
needs:
- build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/deploy-pages@v4
65 changes: 65 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Release

on:
push:
tags: ["v*"]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Install Aftman
uses: ok-nick/setup-aftman@v0.3.0

- name: Install Dependencies
run: wally install

- name: Build
run: rojo build --output build.rbxm default.project.json

- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: build
path: build.rbxm

release:
name: Release
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Download Build
uses: actions/download-artifact@v3
with:
name: build
path: plasma.rbxm

- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: Plasma ${{ github.ref }}
body: |
Plasma ${{ github.ref }} is now available!
files: |
plasma.rbxm
publish:
name: Publish
needs: [release]
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Install Aftman
uses: ok-nick/setup-aftman@v0.3.0

- name: Publish
run: wally publish --token ${{ secrets.WALLY_AUTH_TOKEN }}
49 changes: 47 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,46 @@
# Changelog
# Plasma Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog][kac], and this project adheres to
[Semantic Versioning][semver].

[kac]: https://keepachangelog.com/en/1.1.0/
[semver]: https://semver.org/spec/v2.0.0.html

## [Unreleased]

### Added

- The context functions are now exposed in `init.lua`

### Fixed

- automaticSize helper should now set minSize attribute correctly
- Fixed the window position reseting when another input state update is processed while the window is being dragged

## [0.4.2] - 2022-07-10

### Fixed

- Fixed Slider not firing event callback for drag connection (Fixes using slider on the server in Matter debugger)

## [0.4.1] - 2022-07-08

### Added

- Added highlight widget
- table now supports a `hovered` method in its handle

## [0.4.0] - 2022-07-05

### Added

- Table widget
- Added font option to heading

### Changed

- `useInstance` no longer returns the root instance. Instead, it returns a `ref` table, which is also created and passed to the `useInstance` function itself as a first parameter. You can create keys in the table to access instances in the widget body.
- The `create` function now has special behavior if a key is passed in the props table. It will set a value in the table to the instance that's being created at the key specified by the value in the props table. E.g., `[ref] = "button"` will set the key "button" in the `ref` table to the button that was created.
- `automaticSize` now covers more cases, including text objects and objects with no UIGridStyleLayout within them.
Expand All @@ -24,22 +50,41 @@
- Buttons are appropriately sized to their text contents

## [0.3.0] - 2022-07-01

### Added

- Added `hydrateAutomaticSize` function

### Changed

- `automaticSize` no longer applies automatic sizing on the server. Instead, it configures the instance to be compatible with `hydrateAutomaticSize` from the client.
- `automaticSize` now accepts a UDim2 as a `maxSize` for use with Scale

### Fixed

- Fixed `automaticSize` with scrolling frames sometimes causing an infinite content reflow loop.

## [0.2.0] - 2022-06-30

### Added

- Added `useKey`
- Added heading, label, slider, and space widgets
- Add multi-phase frame API with `beginFrame`, `continueFrame`, and `finishFrame`
- Add event callback injection

### Fixed

- Widget state now resets if the widget in the slot changed from last frame

## [0.1.0] - 2021-12-13
- Initial release

- Initial release

[unreleased]: https://github.com/matter-ecs/plasma/compare/v0.4.2...HEAD
[0.4.2]: https://github.com/matter-ecs/plasma/releases/tag/v0.4.2
[0.4.1]: https://github.com/matter-ecs/plasma/releases/tag/v0.4.1
[0.4.0]: https://github.com/matter-ecs/plasma/releases/tag/v0.4.0
[0.3.0]: https://github.com/matter-ecs/plasma/releases/tag/v0.3.0
[0.2.0]: https://github.com/matter-ecs/plasma/releases/tag/v0.2.0
[0.1.0]: https://github.com/matter-ecs/plasma/releases/tag/v0.1.0
Loading

0 comments on commit 8de01ea

Please sign in to comment.