Page MenuHomePhorge
Feed All Stories

Feb 15 2024

bekay updated the diff for D25536: Implements copy button in clone repo modal.
  • Ignores async jshint
Feb 15 2024, 08:35
valerio.bozzolan added a comment to D25536: Implements copy button in clone repo modal.

First of all, I tested this, and this is super-lovely, really better than I thought, I love this. Thanks.

Feb 15 2024, 08:11

Feb 14 2024

avivey added a comment to D25536: Implements copy button in clone repo modal.

oh, for this one we can just ignore it. arc only shows these for new lines

Feb 14 2024, 18:42
bekay edited the content of Organizations Using Phorge.
Feb 14 2024, 17:36
bekay requested review of D25538: Separate repository home and browse view in tab menu.
Feb 14 2024, 17:27
bekay added a revision to T15728: Repo home view and browse view share the same menu tab: D25538: Separate repository home and browse view in tab menu.
Feb 14 2024, 17:27 · Discussion Needed, Diffusion
bekay added a comment to D25536: Implements copy button in clone repo modal.

I'll try to see if there's config for the jshint to allow async.

Feb 14 2024, 16:36
avivey accepted D25536: Implements copy button in clone repo modal.

I'm happy about the JS stuff, and I'm ok with any UI solution here.
I'll try to see if there's config for the jshint to allow async.

Feb 14 2024, 16:32
bekay added a comment to D25536: Implements copy button in clone repo modal.

Well, now I have tried to satisfy every wish.

Feb 14 2024, 16:05
bekay updated the diff for D25536: Implements copy button in clone repo modal.
  • use async/await for copy promise hell
  • make the io button to just a type icon
  • select entire text when clicking inside the input field
  • patch JsShrink to shrink await/async syntax
Feb 14 2024, 16:01
bekay updated the summary of D25536: Implements copy button in clone repo modal.
Feb 14 2024, 15:49
avivey added a comment to D25536: Implements copy button in clone repo modal.

We can probably just pull the JsShrink fix in for now, and later replace both it and jsxmin (which I'll bet nobody have) with something else that is maintained, like JShrink.

Feb 14 2024, 12:41
bekay added a comment to D25536: Implements copy button in clone repo modal.

(This Quickfix would help: https://github.com/vrana/JsShrink/pull/6/commits/5b2dd500d25b29ace2fbd76fc95b4518ef22abfc 😆 )

Feb 14 2024, 12:39
bekay added a comment to D25536: Implements copy button in clone repo modal.

await/async won't go through the shrink process without destroying the entire syntax. And if it will go through this jsxmin binary, who can know? Note for the future: Maybe replace the entire shrink process with a new and used php shrinker like JShrink.

Feb 14 2024, 12:13
avivey added a comment to D25536: Implements copy button in clone repo modal.

(Just to clarify, and sorry if late comment again - I was proposing to avoid to add buttons, and simply auto-select and auto-copy the input text the first time it receives a click. Bonus: with "copied" message feedback - I have untested this sorry)

Feb 14 2024, 11:20
bekay added a comment to D25536: Implements copy button in clone repo modal.

@avivey worst case is a syntax error because the operators are not known. Even that could be wrapped inside a try/catch.
@valerio.bozzolan could be done with the current behavior but this kind of implicit actions seems not the phorge way...?

Feb 14 2024, 10:10
valerio.bozzolan added a comment to D25536: Implements copy button in clone repo modal.

(Just to clarify, and sorry if late comment again - I was proposing to avoid to add buttons, and simply auto-select and auto-copy the input text the first time it receives a click. Bonus: with "copied" message feedback - I have untested this sorry)

Feb 14 2024, 09:37
avivey added a comment to D25536: Implements copy button in clone repo modal.

Our policy in general is "support things way after the go EOL", but with the cost of supporting IE 11 (this kind of hell), I think we can make an exception and throw it under the bus. Worst case, we're talking about an error in the logs and "nothing happening" from the user POV, right?

Feb 14 2024, 09:29
sirocyl edited the content of Organizations Using Phorge.
Feb 14 2024, 09:26
valerio.bozzolan added a comment to Organizations Using Phorge.

I've successfully updated our Phabricator instance to Phorge today. After paying very careful attention to everything it went smoothly without any issues. Glad that this project has not died. Phabricator grew on me as well.

Feb 14 2024, 09:24
bekay added a comment to D25536: Implements copy button in clone repo modal.

Yes, I insist on using the absolute required minimum of Promise-style coding.

Feb 14 2024, 08:56
sirocyl added a comment to Organizations Using Phorge.

Should we add FreeBSD to this list? It uses Phorge now (as of June 2023) and has many users.
(Much of their documentation still refers to it as "Phabricator", despite this.)

Feb 14 2024, 00:52
sirocyl updated the answer details for Q18: Lowest and Highest supported PHP (Answer 141).
Feb 14 2024, 00:10
sirocyl added Q18: Lowest and Highest supported PHP (Answer 141).
Feb 14 2024, 00:09

Feb 13 2024

20after4 added a comment to T15705: Lower the search ranking of disabled user accounts.

I agree, disabled users should be hidden in the global search typeahead results.

Feb 13 2024, 23:22 · Spam mitigation, UX
20after4 added a comment to T15736: JavaScript modernization (umbrella task).
In T15736#15681, @bekay wrote:
  • Get rid of the JX namespace and the the require comments - use import and export like it is done in modern js
Feb 13 2024, 23:21 · UX, Discussion Needed
aklapper closed T15720: Improve messages when no image formats are supported (due to GD not installed) as Resolved by committing rPe2bec4c1f58b: Improve messages when no image formats are supported (due to GD not installed).
Feb 13 2024, 16:07
aklapper closed D25525: Improve messages when no image formats are supported (due to GD not installed).
Feb 13 2024, 16:07
aklapper committed rPe2bec4c1f58b: Improve messages when no image formats are supported (due to GD not installed).
Improve messages when no image formats are supported (due to GD not installed)
Feb 13 2024, 16:07
aklapper updated the diff for D25502: Make PhabricatorSearchIntField validate its input.

Remove unreached return call as pointed out by speck

Feb 13 2024, 15:58
aklapper added a comment to D25502: Make PhabricatorSearchIntField validate its input.
In D25502#15384, @speck wrote:

Is it possible to check if anything is relying on this not working with negative numbers?

Feb 13 2024, 15:56
valerio.bozzolan added a comment to D25536: Implements copy button in clone repo modal.

Sorry for my late comment

Feb 13 2024, 14:28
avivey added a comment to D25536: Implements copy button in clone repo modal.

Yes, I insist on using the absolute required minimum of Promise-style coding.
I don't know if we have any other example of a Promise-based API used - there might be an example somewhere on how to break away from it and go back to sane code.

Feb 13 2024, 09:53
bekay added a comment to D25536: Implements copy button in clone repo modal.

I have to wait for the success or failure of the copy action, so I think this ui example makes no sense for my case. The notification should not be triggered by a button click.

Feb 13 2024, 09:42
bekay added a comment to D25536: Implements copy button in clone repo modal.
Feb 13 2024, 09:35
avivey added a comment to D25536: Implements copy button in clone repo modal.
try {
  if (new_copy) {
    new_copy(text);
  } else {
    old_copy(text);
  } 
  show_message(good);
} catch (ex) {
  show_message(bad);
}
Feb 13 2024, 09:34
avivey requested changes to D25536: Implements copy button in clone repo modal.

Don't do that thing to the JS file. To add a notification, use the existing notification feature we already have - see https://we.phorge.it/uiexample/view/PhabricatorNotificationUIExample/ (https://we.phorge.it/source/phorge/browse/master/src/applications/uiexample/examples/PhabricatorNotificationUIExample.php).

Feb 13 2024, 09:21
avivey added a comment to T15739: Replace celerity postprocessors with real css variables.

I'm not against replacing the mechanism - It's just that the original task description doesn't specify why that would be good (i.e., what the benefit would be).
That's clear from the discussion now, but should generally be included in the ticket description - the "describe "what", not "how"" principle.

Feb 13 2024, 07:57 · Discussion Needed
sirocyl added a comment to T15739: Replace celerity postprocessors with real css variables.

A big benefit of using client-side variables in CSS, is that one can use the browser's prefers-color-scheme media query to select light or dark mode based on the user's browser or system setting, automatically, and that the transition from light to dark mode, or to other accent/highlight color schemes, requires no reload.

Feb 13 2024, 04:02 · Discussion Needed
sirocyl closed T15737: Include information for installing required PHP version in Diviner docs as Wontfix.
Feb 13 2024, 03:34 · PHP 8 support, Good Starter Task, Documentation

Feb 12 2024

speck added a comment to D25502: Make PhabricatorSearchIntField validate its input.

Is it possible to check if anything is relying on this not working with negative numbers?

Feb 12 2024, 22:56
bekay added a comment to T15739: Replace celerity postprocessors with real css variables.

Well, I see a tremendous critism and scepticism concerning modern client side techniques here. The world of frontend tooling has changed tremendously in the last 5 years. And I understand concerns, but nobody has to write JavaScript for certain browsers anymore. Javelin for example tries to solve so many problems that Babel solves with one config entry. But that's okay and I like the architecture here and know we can't change everything at once.

Feb 12 2024, 21:05 · Discussion Needed
avivey requested review of D25537: Update PHP versions in install guide: Remove 5, Add 8..
Feb 12 2024, 20:35
avivey added a revision to T15047: Officially raise minimum required PHP version to 7.2: D25537: Update PHP versions in install guide: Remove 5, Add 8..
Feb 12 2024, 20:35 · Phorge
avivey added a revision to T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4: D25537: Update PHP versions in install guide: Remove 5, Add 8..
Feb 12 2024, 20:35 · PHP 8 support
avivey added a revision to T15554: Handling PHP deprecations: convert to Setup Issues: D25537: Update PHP versions in install guide: Remove 5, Add 8..
Feb 12 2024, 20:35 · Phorge
avivey added a revision to T15737: Include information for installing required PHP version in Diviner docs: D25537: Update PHP versions in install guide: Remove 5, Add 8..
Feb 12 2024, 20:35 · PHP 8 support, Good Starter Task, Documentation
avivey added a comment to T15739: Replace celerity postprocessors with real css variables.

Ok, I don't understand the specifics of css-vars, but if they're better, they're better.

Feb 12 2024, 20:18 · Discussion Needed
bekay added a comment to T15739: Replace celerity postprocessors with real css variables.

The overwriting of variables with media queries could be configured inside the theming class. So possible breakpoints can be part of a theming API.

Feb 12 2024, 20:16 · Discussion Needed
bekay added a comment to T15739: Replace celerity postprocessors with real css variables.

And my general approach is: when the client can do something (and that even better), why should the server do it?

Feb 12 2024, 20:04 · Discussion Needed
bekay added a comment to T15739: Replace celerity postprocessors with real css variables.

@avivey CSS vars are a vital part of modern modularized theming. They are versatile, can be overwritten with media queries or per class/element basis. They are editable in browser dev tools. If you would ask me: this step is pretty important.

Feb 12 2024, 20:01 · Discussion Needed
bekay added a comment to T15736: JavaScript modernization (umbrella task).

to have a working dev server when developing js - at the moment I have to ./bin/celerity map after every change to js and css to see my changes...

Are you sure about that? I thought celerity map was only needed when adding a file (in dev mode).

Feb 12 2024, 19:47 · UX, Discussion Needed
avivey added a comment to T15736: JavaScript modernization (umbrella task).

also, adding this file in src/extensions/ will let you have css/js files from src/extensions/rsrc/ loaded automatically:

Feb 12 2024, 19:46 · UX, Discussion Needed
avivey created P31 CelerityStuffFromExtensions.
Feb 12 2024, 19:45
avivey added a comment to T15736: JavaScript modernization (umbrella task).

to have a working dev server when developing js - at the moment I have to ./bin/celerity map after every change to js and css to see my changes...

Feb 12 2024, 19:44 · UX, Discussion Needed
avivey added a comment to T15739: Replace celerity postprocessors with real css variables.

Looks to me that the existing system is better at providing Themes? It allows real code, inheritance, etc. to set variable values.
That is, I think Extension Themes are better off writing PHP Post-Processor rather then CSS vars.

Feb 12 2024, 19:36 · Discussion Needed
bekay updated the task description for T15739: Replace celerity postprocessors with real css variables.
Feb 12 2024, 17:27 · Discussion Needed
bekay added a comment to T15039: Add a button to copy key information.
In T15039#1358, @bekay wrote:

The clone repo modal could really use some copy buttons.

image.png (282×854 px, 20 KB)

Preferably replacing the Read / Write Button.

Feb 12 2024, 16:50 · Differential
bekay updated the task description for T15735: Fix the various CSS inconsistencies of phui tags.
Feb 12 2024, 16:49
bekay renamed T15735: Fix the various CSS inconsistencies of phui tags from Fix the various inconsistenies of phui tags to Fix the various inconsistencies of phui tags.
Feb 12 2024, 16:49
bekay added a comment to T15705: Lower the search ranking of disabled user accounts.

I don't know if that is part of this task, but the global typeahead search should hide all disabled users, wikis and repos, shouldn't it? This is nothing you want as a fast suggestion...

Feb 12 2024, 16:46 · Spam mitigation, UX
bekay updated the task description for T15734: CSS modernization (umbrella task).
Feb 12 2024, 16:42
bekay updated the task description for T15739: Replace celerity postprocessors with real css variables.
Feb 12 2024, 16:40 · Discussion Needed
bekay updated the task description for T15739: Replace celerity postprocessors with real css variables.
Feb 12 2024, 16:32 · Discussion Needed
bekay updated the task description for T15739: Replace celerity postprocessors with real css variables.
Feb 12 2024, 16:31 · Discussion Needed
valerio.bozzolan awarded T15739: Replace celerity postprocessors with real css variables a Like token.
Feb 12 2024, 16:31 · Discussion Needed
bekay created T15739: Replace celerity postprocessors with real css variables.
Feb 12 2024, 16:24 · Discussion Needed
valerio.bozzolan added a comment to T15152: MFA: Avoid to having to wait a minute so often, for example right after login.

I've better triaged my root problem.

Feb 12 2024, 16:16 · User-valerio.bozzolan
valerio.bozzolan updated the task description for T15152: MFA: Avoid to having to wait a minute so often, for example right after login.
Feb 12 2024, 16:09 · User-valerio.bozzolan
bekay updated the task description for T15734: CSS modernization (umbrella task).
Feb 12 2024, 15:40
valerio.bozzolan added a comment to T15410: Discussion: stacked diffs / dependent revisions.

So maybe this is just a matter of parsing that commit part "Depends-on:" since everything else seem already implemented to me. Partially related quiz in T15738

Feb 12 2024, 13:49 · Differential
valerio.bozzolan triaged T15738: "parent"/"child" relationship for "Related Revisions" is different to "Related Tasks" as Wishlist priority.
Feb 12 2024, 13:43 · UX, Differential
bekay added a comment to T15735: Fix the various CSS inconsistencies of phui tags.

Just as a reminder for me: Using a css variable for the height of the tags would be best. I could be overwritten at any point.

Feb 12 2024, 13:06
bekay updated the task description for T15734: CSS modernization (umbrella task).
Feb 12 2024, 13:03
bekay added a comment to T15736: JavaScript modernization (umbrella task).

Well, my idea would be:

Feb 12 2024, 12:56 · UX, Discussion Needed
bekay updated the diff for D25536: Implements copy button in clone repo modal.
  • Updates map
Feb 12 2024, 12:45
bekay updated the diff for D25536: Implements copy button in clone repo modal.
  • Fixes some js linting warnings
Feb 12 2024, 12:44
bekay attached a referenced file: F1360344: image.png.
Feb 12 2024, 12:37
bekay attached a referenced file: Unknown Object (File).
Feb 12 2024, 12:37
deric added a comment to D25491: Improve contrast of Links in Dark Mode.

@aklapper Yeah, that would be great. Sorry, I don't have a working dev instance right now.

Feb 12 2024, 12:35 · UX, Accessibility
bekay requested review of D25536: Implements copy button in clone repo modal.
Feb 12 2024, 12:33
aklapper added a comment to D25491: Improve contrast of Links in Dark Mode.

@deric: Hi, would you like to arc land your patch, or do you need any help? Thanks in advance!

Feb 12 2024, 12:29 · UX, Accessibility
aklapper added a comment to D25502: Make PhabricatorSearchIntField validate its input.

For the records, adding public function getValueForQuery($value) is needed because otherwise Expected a numeric scalar or null for %d conversion. Query: project.projectDepth >= %d

Feb 12 2024, 12:28
aklapper added a comment to D25502: Make PhabricatorSearchIntField validate its input.

Would anyone fancy reviewing this? :)

Feb 12 2024, 12:27
aklapper closed T15685: Fix PHP 8.1 "strlen(null)" exception rendering dashboard panel with latest tasks when custom int field configured, a subtask of T15064: Make Phorge compatible with PHP 8.1/8.2/8.3/8.4, as Resolved.
Feb 12 2024, 12:26 · PHP 8 support
aklapper closed T15685: Fix PHP 8.1 "strlen(null)" exception rendering dashboard panel with latest tasks when custom int field configured as Resolved by committing rP052b5f41c705: Fix PHP 8.1 "strlen(null)" exception rendering dashboard panel with latest….
Feb 12 2024, 12:26 · PHP 8 support
aklapper closed D25489: Fix PHP 8.1 "strlen(null)" exception rendering dashboard panel with latest tasks when custom int field configured.
Feb 12 2024, 12:26
aklapper committed rP052b5f41c705: Fix PHP 8.1 "strlen(null)" exception rendering dashboard panel with latest….
Fix PHP 8.1 "strlen(null)" exception rendering dashboard panel with latest…
Feb 12 2024, 12:26
speck accepted D25489: Fix PHP 8.1 "strlen(null)" exception rendering dashboard panel with latest tasks when custom int field configured.

whoops

Feb 12 2024, 12:23
valerio.bozzolan edited the content of Next Up.
Feb 12 2024, 11:11
aklapper closed T15129: Unmark Audit as a required application as Resolved by committing rP821708414eec: Allow to uninstall (hide) Audit application.
Feb 12 2024, 11:10 · Diffusion, User-Cigaryno
aklapper closed D25503: Allow to uninstall (hide) Audit application.
Feb 12 2024, 11:10
aklapper committed rP821708414eec: Allow to uninstall (hide) Audit application.
Allow to uninstall (hide) Audit application
Feb 12 2024, 11:10
aklapper updated the diff for D25525: Improve messages when no image formats are supported (due to GD not installed).

Make code more readable

Feb 12 2024, 11:01
aklapper added a comment to D25525: Improve messages when no image formats are supported (due to GD not installed).

Maybe simplify if (empty($v)) { to just if ($v) { and swapping the case

Feb 12 2024, 11:00
valerio.bozzolan closed T15706: Phorge/auth/config/view/3/ Call to phutil_nonempty_string() expected null or a string, got: PhutilSafeHTML. as Resolved by committing rPb445e1d80df9: Fix config transaction rendering error on auth page by allowing PhutilSafeHTML.
Feb 12 2024, 10:52 · Auth, Bug Reports
valerio.bozzolan closed D25512: Fix config transaction rendering error on auth page by allowing PhutilSafeHTML.
Feb 12 2024, 10:52
valerio.bozzolan committed rPb445e1d80df9: Fix config transaction rendering error on auth page by allowing PhutilSafeHTML (authored by doommius).
Fix config transaction rendering error on auth page by allowing PhutilSafeHTML
Feb 12 2024, 10:52
sirocyl added a comment to D25512: Fix config transaction rendering error on auth page by allowing PhutilSafeHTML.

@sirocyl Does this fix your issue? if yes, I can help in landing

Feb 12 2024, 10:52
sirocyl added a comment to T15706: Phorge/auth/config/view/3/ Call to phutil_nonempty_string() expected null or a string, got: PhutilSafeHTML..

Heck yeah, changing phutil_nonempty_string() to phutil_nonempty_stringlike() there fixed the issue I had mentioned in a comment in T15737: Include information for installing required PHP version in Diviner docs.

Feb 12 2024, 10:50 · Auth, Bug Reports