Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
1b4eb8f
fix: update component radix-ui, DialogContent requires DialogTitle
tophackr May 30, 2025
bcdbe75
fix: update app root context error, destructive context before init
tophackr May 30, 2025
4c8c818
Merge pull request #1 from tophackr/fix/bugs
tophackr May 30, 2025
560a6a1
refactor: update typescript target, eslint rules and components
tophackr May 30, 2025
b304f40
refactor: switch to pnpm and switch from concurrently to turbo
tophackr May 30, 2025
1d2e2a9
chore: update build dependency
tophackr May 30, 2025
b1bc3c0
refactor: add stricted package for css files and generate declaration
tophackr May 30, 2025
83f03a7
fix: update eslint rules
tophackr May 30, 2025
0c8ec9f
fix: remove unused styles
tophackr May 30, 2025
d5977e9
refactor: use more stricted typescript rules
tophackr May 30, 2025
a3d5895
feat: add check workflow and setup cache
tophackr May 30, 2025
8a13404
fix: remove pnpm node cache
tophackr May 30, 2025
c3ea644
refactor: make more strict because of eslint
tophackr May 31, 2025
7c4be19
fix: update swc outputs paths
tophackr May 31, 2025
2afe741
chore: we explicitly specify which files to monitor
tophackr May 31, 2025
7949fa6
Merge branch 'main' into feat/strict
tophackr May 31, 2025
3f294f2
reverb: return back Component
tophackr May 31, 2025
7c70405
Merge pull request #2 from tophackr/feat/strict
tophackr May 31, 2025
bde0230
feat: add storybook deploy
tophackr May 31, 2025
b994789
fix: update pnpm version
tophackr May 31, 2025
ef8e986
fix: add empty install command
tophackr May 31, 2025
a6ea045
fix: add github perms to make gh-pages
tophackr May 31, 2025
d6d9511
fix: remove unused environment
tophackr May 31, 2025
3dd65c4
chore: rename package
tophackr May 31, 2025
4c6bf38
fix: update swc build
tophackr May 31, 2025
a477af1
fix: update export path
tophackr May 31, 2025
aa105b7
feat: bump react version and update components
tophackr May 31, 2025
784c2bc
chore: bump version
tophackr May 31, 2025
5ef028c
refactor: update vaul version
tophackr May 31, 2025
d231fc5
chore: bump version
tophackr May 31, 2025
8bbf607
Merge pull request #3 from tophackr/bump/react
tophackr May 31, 2025
6899103
chore: bump version
tophackr May 31, 2025
638b0c2
chore: bump version
tophackr May 31, 2025
e22dd8a
fix: update ref prop components
tophackr May 31, 2025
2c10386
chore: remove pull request trigger
tophackr May 31, 2025
b195da0
Merge pull request #4 from tophackr/fix/react-ref
tophackr May 31, 2025
72be9f3
feat: add auto version generator
tophackr Jun 1, 2025
b657891
refactor: inject sub components in cell component
tophackr Jun 1, 2025
db334d7
fix: update icon size and view box
tophackr Jun 1, 2025
afed73d
feat: add color wrapper and platformed styles
tophackr Jun 1, 2025
4d1d8ea
refactor: add link color and remove chevron for base platform
tophackr Jun 1, 2025
8ab6cc1
feat: add navigation cell
tophackr Jun 1, 2025
9e6ab27
refactor: define component as button and fix styles
tophackr Jun 2, 2025
ab408cf
fix: update box shadow input in section for ios platform
tophackr Jun 2, 2025
84ca61e
fix: update section border
tophackr Jun 2, 2025
00f5b4e
refactor: add separator color from telegram theme
tophackr Jun 2, 2025
68b38b9
fix: update icon size and view box
tophackr Jun 2, 2025
7ef5e31
refactor: add ref
tophackr Jun 2, 2025
ec05a61
revert: return back forward ref
tophackr Jun 3, 2025
66f43f3
refactor: remove floating-ui deps and moved functions from library
tophackr Jun 3, 2025
b69f46d
refactor: moved type to a separate line
tophackr Jun 3, 2025
f18d102
feat: add icon pack
tophackr Jun 4, 2025
b7fb63d
feat: export icons in ui and add iconography page
tophackr Jun 4, 2025
3bda0a6
fix: update wrapper size
tophackr Jun 4, 2025
07a7cde
refactor: add icon color
tophackr Jun 4, 2025
37038e3
fix: remove icon color
tophackr Jun 4, 2025
f1ac6f9
refactor: update gif image
tophackr Jun 4, 2025
e435ef4
refactor: update links
tophackr Jun 4, 2025
e45337d
chore: add other triggers
tophackr Jun 5, 2025
4653df5
revert: return back divider
tophackr Jun 5, 2025
7a55b26
chore: add patch release message
tophackr Jun 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
27 changes: 27 additions & 0 deletions .changeset/blue-kids-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
"tmaui": patch
---

New components, icons and minor improvements

**Added:**
- Icon Pack and [Iconography page](https://tophackr.com/tmaui/?path=/docs/iconography--documentation).
- Separator color to divider from `tg-theme`.
- Platformed color to `IconContainer`.
- `NavigationCell` for navigation links.
- `Info`, `Navigation` to `Cell` subcomponents.
- Ref to `Tabbar` and `FixedLayout` ([#91](https://github.com/Telegram-Mini-Apps/TelegramUI/issues/91)).

**Updated:**
- `Navigation` for base platform according to the telegram design.

**Fixed:**
- UI icon size.
- Section border style ([#94](https://github.com/Telegram-Mini-Apps/TelegramUI/issues/94)).
- Cell box shadow ([#97](https://github.com/Telegram-Mini-Apps/TelegramUI/pull/97)).
- Return back `forwardRef` for components with ref.

<details>
<summary>Why forwardRef?</summary>
Although forwardRef is specified as [deprecated](https://react.dev/reference/react/forwardRef) it works as it should, by deleting it, some visual bugs were received, so it was returned back.
</details>
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "tophackr/tmaui" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
111 changes: 0 additions & 111 deletions .eslintrc.js

This file was deleted.

12 changes: 12 additions & 0 deletions .github/changeset-version.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// ORIGINALLY FROM CLOUDFLARE WRANGLER:
// https://github.com/cloudflare/wrangler2/blob/main/.github/changeset-version.js

import { exec } from 'child_process';

// This script is used by the `release.yml` workflow to update the version of the packages being released.
// The standard step is only to run `changeset version` but this does not update the package-lock.json file.
// So we also run `npm install`, which does this update.
// This is a workaround until this is handled automatically by `changeset version`.
// See https://github.com/changesets/changesets/issues/421.
exec('npx changeset version');
exec('npm install');
21 changes: 21 additions & 0 deletions .github/version-script-beta.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// ORIGINALLY FROM CLOUDFLARE WRANGLER:
// https://github.com/cloudflare/wrangler2/blob/main/.github/version-script.js

import { exec } from 'child_process';
import fs from 'fs';

const pkgJsonPath = 'package.json';
try {
const pkg = JSON.parse(fs.readFileSync(pkgJsonPath));
exec('git rev-parse --short HEAD', (err, stdout) => {
if (err) {
console.log(err);
process.exit(1);
}
pkg.version = '0.0.0-beta.' + stdout.trim();
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, '\t') + '\n');
});
} catch (error) {
console.error(error);
process.exit(1);
}
21 changes: 21 additions & 0 deletions .github/version-script-next.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// ORIGINALLY FROM CLOUDFLARE WRANGLER:
// https://github.com/cloudflare/wrangler2/blob/main/.github/version-script.js

import { exec } from 'child_process';
import fs from 'fs';

const pkgJsonPath = 'package.json';
try {
const pkg = JSON.parse(fs.readFileSync(pkgJsonPath));
exec('git rev-parse --short HEAD', (err, stdout) => {
if (err) {
console.log(err);
process.exit(1);
}
pkg.version = '0.0.0-next.' + stdout.trim();
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, '\t') + '\n');
});
} catch (error) {
console.error(error);
process.exit(1);
}
36 changes: 36 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Code check - test, lint and typecheck

on: [push, workflow_dispatch]

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Cache turbo
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 10.8.0
run_install: true

- name: Check Code
run: pnpm run check
112 changes: 112 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# Adapted from create-t3-app.

name: Release - Beta

on:
pull_request:
types: [labeled]
branches:
- main

permissions:
pull-requests: write
issues: write

jobs:
prerelease:
if: |
github.repository_owner == 'tophackr' &&
contains(github.event.pull_request.labels.*.name, 'autorelease')
name: Build & Publish a beta release to NPM
runs-on: ubuntu-latest
environment: Preview

steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use PNPM
uses: pnpm/action-setup@v4
with:
version: 10.8.0

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'

- name: Install NPM Dependencies
run: pnpm install

- name: Modify package.json version
run: node .github/version-script-beta.mjs

- name: Authenticate to NPM
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish Beta to NPM
run: pnpm pub:beta

- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main

- name: Upload packaged artifact
uses: actions/upload-artifact@v4
with:
name: npm-package-tmaui@${{ steps.package-version.outputs.current-version }}-pr-${{ github.event.number }} # encode the PR number into the artifact name
path: dist/index.js

- name: 'Comment on PR'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId,
});

for (const artifact of allArtifacts.data.artifacts) {
// Extract the PR number and package version from the artifact name
const match = /^npm-package-tmaui@(.*?)-pr-(\d+)/.exec(artifact.name);

if (match) {
require("fs").appendFileSync(
process.env.GITHUB_ENV,
`\nBETA_PACKAGE_VERSION=${match[1]}` +
`\nWORKFLOW_RUN_PR=${match[2]}` +
`\nWORKFLOW_RUN_ID=${context.runId}`
);
break;
}
}

- name: 'Comment on PR with Link'
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ env.WORKFLOW_RUN_PR }}
message: |
A new prerelease is available for testing:

```sh
pnpm add tmaui@${{ env.BETA_PACKAGE_VERSION }}
```

- name: 'Remove the autorelease label once published'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: '${{ env.WORKFLOW_RUN_PR }}',
name: 'autorelease',
});
Loading